Commit Graph

759 Commits

Author SHA1 Message Date
Kumar Anand
e20d9eda7c wifi: Optimize DP Tracing
Reduce the DP (Data Path) Tracing events in order
to not consume too much CPU cycles unnecessarily. New
configuration helps saves 40% of cycles or 7.7MCycles/s

Bug: 71766704
Change-Id: I98f18aa3373df4e5002daab88c97876e0defda4f
2018-01-31 12:21:12 -08:00
Primiano Tucci
0431963db9 Enable perfetto traced for taimen am: dabdeb782c am: 9e04b2c8a1
am: 50184b1872

Change-Id: If29aaf9a3069595201ca46a222aecac4d7978f54
2018-01-26 20:07:49 +00:00
Primiano Tucci
50184b1872 Enable perfetto traced for taimen am: dabdeb782c
am: 9e04b2c8a1

Change-Id: Id8b018b5726ef8d94b0821c773711ea261124e28
2018-01-26 20:02:02 +00:00
Primiano Tucci
9e04b2c8a1 Enable perfetto traced for taimen
am: dabdeb782c

Change-Id: I9df11a6066d09eaf053a1df507b311e27f63b2a1
2018-01-26 19:59:31 +00:00
Primiano Tucci
dabdeb782c Enable perfetto traced for taimen
Bug: 72484603
Test: builds and run (see go/perfetto-test-spec for test plan)
Change-Id: I2fa1d8aee0661903c8fdd634e16bc24763aa3a87
2018-01-26 17:58:18 +00:00
Kumar Anand
fd9ef4ec45 Merge "wifi: enable Softap ACS and 11ac on Taimen" 2018-01-25 01:23:45 +00:00
Jiyong Park
c6dbc10066 add vndk_package to aosp_taimen am: 9496c4b2d9 am: f3d0e1a1ed
am: 096408b85c

Change-Id: Ic6bc3439424df3c304044a18a92611343649aa65
2018-01-24 15:48:34 +00:00
Jiyong Park
096408b85c add vndk_package to aosp_taimen am: 9496c4b2d9
am: f3d0e1a1ed

Change-Id: I23cebf276b99ccce623d20bd9971878e0b9b99e2
2018-01-24 15:40:58 +00:00
Jiyong Park
f3d0e1a1ed add vndk_package to aosp_taimen
am: 9496c4b2d9

Change-Id: Ide66c62662a359d9d89232bd791301b3900e24dd
2018-01-24 15:38:58 +00:00
Kevin Rocard
6d6d6d5055 Merge "Revert "Audio V4: Split system and vendor Audio.h"" 2018-01-24 06:26:16 +00:00
Kevin Rocard
f71babf8ba Revert "Audio V4: Split system and vendor Audio.h"
This reverts commit eb6964a517.

Reason for revert: Breaks the build of multiple devices

Change-Id: I04f4b79b9e4e12596cb9a875fcef626857e52b7e
2018-01-24 06:13:24 +00:00
Kevin Rocard
d7dd0fc24c Merge "Audio V4: Split system and vendor Audio.h" 2018-01-24 04:04:47 +00:00
TreeHugger Robot
79fa4038a9 Merge "Cellular/Wifi power profile for Taimen" 2018-01-23 02:47:40 +00:00
Nadav Bar
bc1e9db453 Merge "Add incall music to taimen mixer paths" 2018-01-22 23:20:50 +00:00
Kumar Anand
4541e34f8f wifi: enable Softap ACS and 11ac on Taimen
Bug: 72228752
Bug: 72229084
Test: Wifi Regression Test
Change-Id: Iccc644079236d9753176c0a66f2cbc39baa84d23
2018-01-22 15:07:58 -08:00
Marissa Wall
423a5cdeef power profile: Update power profile cpu values
Power profiles will now support active and cluster costs.
Some power profile values have been renamed per b/67752294.

Test: dump battery stats

Change-Id: Id479c233dc7456420dc3da5a80dfe03c51caa906
2018-01-22 13:23:31 -08:00
Nadav Bar
43ef112726 Add incall music to taimen mixer paths
This change adds the paths for taimen for the incall music
use case. The path is which is used is incall-music-uplink.
This change was tested together with a set of additional changes to the
audio framework and the HAL which introduces the ability to
play pcm audio to the uplink stream.

Bug: 69973354.
Test: Tested manually.
Change-Id: I5e5b7b4fa1169988f802f9da33e0db97964c73ce
2018-01-22 13:36:51 +02:00
Jiyong Park
9496c4b2d9 add vndk_package to aosp_taimen
aosp_taimen uses prebuilt vendor.img. Therefore, build system cannot
correctly track the dependencies to vndk libs required. Add vndk_package
to install all possible vndk libraries.

Bug: 67002788
Test: aosp_taimen boots to the UI
Change-Id: Ib52a6496cc3f00c7d10788668d841994e91714ba
2018-01-22 11:53:38 +09:00
Kevin Rocard
eb6964a517 Audio V4: Split system and vendor Audio.h
audio.h and its dependencies (audio-effect.h, sound_trigger.h...)
used to be shared between system and vendor code.

This led to multiple problems:

1) Such sharing contradicts the Treble policy of
strict independence of framework and vendor code.

2) When audio.h was changed, every vendor needed to update
its code in the next release. This meant that audio*.h
headers were mostly changed in backward compatible manner.
Nevertheless, for P the HIDL interface and thus the audio.h
interface are changed in backward incompatible way.
(Some enum are becoming 64 bit long).

3) As the headers were common, some API used only by the framework
needed to be visible to the vendors (mostly enum values).

4) Treble policy is to support at least one previous HAL version

As a result the audio*.h headers are now duplicated,
one set for the framework, and one for the vendor.

Each set will evolve independently. After this split,
the framework-only APIs will be removed from the vendor headers
and vice versa.

The split is implements as such:

 + for system code

    - NOT moving the libaudio_system_headers
      Eg: system/audio.h and system/audio_effects/effect_equalizer.h
          are still in system/media/audio

    - the legacy audio HAL API that were in libhardware headers
          are now in libaudiohal_legacy_headers
      Eg: hardware/audio.h and hardware/audio_effect.h
          are now in frameworks/av/media/libaudiohal/legacy/

 + for vendor code

    - moving libaudio_system_headers and the legacy audio HAL API
          that were in libhardware_headers in
          android.hardware.audio.common.legacy@2.0
      Note that those headers are now versioned, so migrating to a @4.0
          HIDL HAL will mean changing the legacy dependency too.
      Eg: system/audio.h, system/audio-effect.h, hardware/audio.h
          are now in hardware/interfaces/audio/common/2.0/legacy

    - the legacy audio effect HAL API that was in libaudioeffects
          is now moved in android.hardware.audio.effect.legacy@2.0
      Eg: audio_effects/effect*.h are now in
          hardware/interfaces/audio/effect/2.0/legacy

    - the legacy sound trigger HAL API that were in libhardware_headers
          is now moved in android.hardware.soundtrigger.legacy@2.0
      Eg: hardware/sound_trigger.h is now in
          hardware/interfaces/audio/effect/2.0/legacy

libaudioutil being used by both system and vendor, had
to be renamed for system to libaudioutil_system.

Vendor libs that now depend on the audio.h of a specific
version and are not extensively referenced in non google code,
append @2.0 to their name.

Note that headers that are not expected to change in the 4.0 HAL are
left in all-versions folder to avoid duplication.
This is an implementation detail as the versioned libraries export
the all-versions headers.

Note that strict vendor-system separation is enforced by the
build-system. The system headers are not available for vendor
libs and vice-versa.

Note that this patch is split between numerous git repository (>10),
all the commits having the same Change-id for searchability.

Note that audio_policy.h is no longer exposed to vendors
as the legacy audio policy HAL API was never officially supported.
As a result the audiopolicy stub implementation has been removed.

Test: compile taimen-userdebug walleye-userdebug
              sailfish-userdebug marlin-userdebug
              gce_x86_phone-userdebug gce_x86_phone
              full-eng aosp_arm aosp_x86-eng
Test: check that the emulator booted and played audio
Test: full QA on sailfish-userdebug and taimen-userdebug
Bug: 38184704
Change-Id: I950f4e0a55613d72e32eba31bd563cb5bafe2d1a
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-20 21:39:40 -08:00
Siddharth Ray
b5e737604f Cellular/Wifi power profile for Taimen
BUG:67213967
Change-Id: I2178baea60d96b05be3f0751e2fe28d9b1c02064
2018-01-17 18:11:31 -08:00
TreeHugger Robot
0be002c592 Merge "Disable seamless transition for taimen" 2018-01-15 18:07:20 +00:00
Lucas Dupin
33746f88ad Disable seamless transition for taimen
config_displayBlanksAfterDoze was removed from wahoo and needs
to be set on the device overlay

Bug: 71897888
Test: flash taimen, press power button when in AoD
Change-Id: Ic54a0bd2f951b62726ae5451bfe83132f619af6d
2018-01-13 21:44:13 -08:00
TreeHugger Robot
28cf9b646b Merge "wifi: taimen ini configuration update" 2018-01-14 02:59:30 +00:00
Michael Wright
538997c53f Add display calibration info.
Also, move to a nits-based autobrightness curve.

Bug: 71706239
Test: Boot Taimen device, see we get a PhysicalBrightnessMapper in
      dumpsys display

Change-Id: I01c6cc1d3abe1c3e547556fc04a41225719cd94f
2018-01-08 18:33:09 +00:00
Tri Vo
1999a6e393 Label vendor sys/*/power_supply/* as sysfs_batteryinfo am: 4350dc70e5 am: 1950937d6d
am: 33ae969538

Change-Id: I9eb6c20d19b885dc06aaaa2a46dcb4c17a1dc9dc
2017-12-13 23:21:19 +00:00
Tri Vo
33ae969538 Label vendor sys/*/power_supply/* as sysfs_batteryinfo am: 4350dc70e5
am: 1950937d6d

Change-Id: I2006b37a650130f66536106841465ac3fc63b42f
2017-12-13 23:18:20 +00:00
Tri Vo
1950937d6d Label vendor sys/*/power_supply/* as sysfs_batteryinfo
am: 4350dc70e5

Change-Id: I59e28d362b92197b9fd20776d20c1fb8407835a2
2017-12-13 23:15:50 +00:00
Tri Vo
4350dc70e5 Label vendor sys/*/power_supply/* as sysfs_batteryinfo
Bug: 70623603
Test: taimen boots with no denials to sysfs_batteryinfo or
sysfs_msm_subsys.

Change-Id: I12bfc7c064f0b90cd000e977ee36410907e2bc8e
2017-12-13 11:27:10 -08:00
Kumar Anand
93ed3442cc wifi: taimen ini configuration update
disable_scoring_for_roam=0 ; Enable BSSID scoring logic
for roaming. This is turned off by in the new code drop
and so to keep behavior same as 2017, this INI needs to
turned on.

Set gReportMaxLinkSpeed=0 to report actual link speed

Set gGoForce11NFor11AC=1 for P2P GO

Bug:69846237
Test: Manual Wifi Test
Change-Id: If49bbefa56b4e2b13a7abbd071c7067c769f65f7
2017-12-12 14:28:08 -08:00
hyunho.koh
84d8ff41ae taimen: NFC: update NFC GPIO 5 am: 3b95b339e7
am: 5d32f312a8

Change-Id: I8c9f4bf98b084e618ce616d6efd21e501cf0e449
2017-12-08 04:44:16 +00:00
hyunho.koh
5d32f312a8 taimen: NFC: update NFC GPIO 5
am: 3b95b339e7

Change-Id: Ib66ad0651d6f7dd957f3c406597b1f4a15bae3f1
2017-12-08 01:12:22 +00:00
Xin Li
8606f37d86 DO NOT MERGE: Merge Oreo MR1 into master am: 3a813655bf -s ours am: 0f0e54c73c
am: fdb8c38337  -s ours

Change-Id: I3ba0b06f462fe4f0ab787aa3d79e9ecab13ec91e
2017-12-07 20:55:56 +00:00
Xin Li
fdb8c38337 DO NOT MERGE: Merge Oreo MR1 into master am: 3a813655bf -s ours
am: 0f0e54c73c

Change-Id: If25039ecec79992d7824f467f1c0a5b81d8554bb
2017-12-07 06:12:22 +00:00
Xin Li
0f0e54c73c DO NOT MERGE: Merge Oreo MR1 into master
am: 3a813655bf  -s ours

Change-Id: I62e7357a2eefdea177b8c88b384fa259248b0cee
2017-12-07 03:47:32 +00:00
Xin Li
3a813655bf DO NOT MERGE: Merge Oreo MR1 into master
Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: I98943370a79321148c6446b478c8c6ad7f78cd5a
2017-12-06 14:24:44 -08:00
TreeHugger Robot
bbc5b117dd Merge "audio: add missing path for hifi playback & record" 2017-12-06 00:02:00 +00:00
David Lin
1684b86633 audio: add missing path for hifi playback & record
missing path for usb headset record + voice call concurrency usecase
for example:
1. usb headset recording
2. make a voice call
3. switch to speaker mode
4. unable to find path 'hifi-record'

Bug: 70194145
Change-Id: Ia5e11602dd5f9b98b91c6bf887c3a06252c591cd
Signed-off-by: David Lin <dtwlin@google.com>
2017-12-05 13:07:03 -08:00
Lorenzo Colitti
d6d78a2f0c taimen: don't pull netutils-wrappers from vendor blobs. am: dba65101a6 am: 13cbede6c5
am: 1cb90f41cf

Change-Id: I0876a7854efe1a1e1c5e17aea1c3191beaa24899
2017-11-27 23:09:41 +00:00
Lorenzo Colitti
1cb90f41cf taimen: don't pull netutils-wrappers from vendor blobs. am: dba65101a6
am: 13cbede6c5

Change-Id: I9b5e9b5d4464c663f5b97e9ca39c41ec07129ff5
2017-11-27 23:06:10 +00:00
Lorenzo Colitti
13cbede6c5 taimen: don't pull netutils-wrappers from vendor blobs.
am: dba65101a6

Change-Id: I20b5e5b47795c3ac4e6078d2ff3acde6b6d32610
2017-11-27 23:03:11 +00:00
Lorenzo Colitti
dba65101a6 taimen: don't pull netutils-wrappers from vendor blobs.
These should be compiled from source instead.

Bug: 69718172
Test: Identical to ag/546442, tested on walleye
Change-Id: I2b579a952d0374c5e34c5296f227f638d3630aea
2017-11-24 12:59:58 +09:00
Vishwath Mohan
ef7aece760 Add support for taimen_kcfi targets.
Adds support for a kernel CFI enabled target for Taimen.

Bug: 67506682
Test: lunch taimen_kcfi && m -j50
Change-Id: I79519e229e8186532425b69860b70f0b51d716ec
2017-11-21 14:35:17 -08:00
Bill Yi
7091f5172e Add system/framework/qcrilhook.jar
am: a2bea547be

Change-Id: Id4d3b4e2cbe7b51b8bf10160f0ead61b54f83396
2017-11-20 20:33:49 +00:00
Bill Yi
a2bea547be Add system/framework/qcrilhook.jar
BUG:69427786

TEST: built and flashed taimen
Change-Id: Ie6bf521c14244651d81bbb849c3019936bd2eb05
2017-11-20 10:50:16 -08:00
Xin Li
8172ac312b Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: 29894c4431

Change-Id: I9e371e5ca4677ea03fb1d0955a1a4b87c2893f63
2017-11-15 01:25:43 +00:00
Xin Li
29894c4431 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Change-Id: I9233eaf819b926ae51ea4cee02c33429cd382059
2017-11-14 16:38:07 -08:00
Xin Li
141c122ec7 Merge commit '58ad113c10a6dd77b5cc3a554baa76246514f34f' into HEAD
Change-Id: I53697bf4d92ff987d91bfdf388155419574d38d6
2017-11-13 14:35:16 -08:00
hyunho.koh
3b95b339e7 taimen: NFC: update NFC GPIO 5
In NXP_CORE_CONF_EXTN
add value A0, 08, 02, 00, 81

To be set the Port define as Output/Low by NFC’s GPIO5

Test: NFC Tag read, HCE
Bug:68832228
Change-Id: Ia284e2f302395348937ec6e5b0f973e9f77f1278
2017-11-08 16:24:18 +00:00
hyunho.koh
8869af60e6 taimen: NFC: update NFC GPIO 5
In NXP_CORE_CONF_EXTN
add value A0, 08, 02, 00, 81

To be set the Port define as Output/Low by NFC’s GPIO5

Test: NFC Tag read, HCE
Bug:68832228
Change-Id: Ia284e2f302395348937ec6e5b0f973e9f77f1278
2017-11-07 18:30:45 -08:00
Chih-Hung Hsieh
5e7c3598b3 Use -Werror in device/google/taimen am: f64195ffdd am: 59bff86f15
am: 20a71b833a

Change-Id: I6c18f188b0e06d8a7eadf09a41bf47da664d17fb
2017-11-07 02:20:58 +00:00