Commit Graph

1084 Commits

Author SHA1 Message Date
Kumar Anand
91fb541476 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: I128c62afe69229999ca911caad7fb17b59fa9413
2018-01-31 12:27:03 -08:00
Primiano Tucci
dd327e98f3 Enable perfetto traced for walleye am: 0ef1227efc am: 2bce6961e5
am: cffed09316

Change-Id: I0896e22fa276ff1c5dffd4da443e7b8892fb6d83
2018-01-26 20:07:36 +00:00
Primiano Tucci
cffed09316 Enable perfetto traced for walleye am: 0ef1227efc
am: 2bce6961e5

Change-Id: I8c789e135fceaac13ff4737cbd53ac92274a8b31
2018-01-26 19:57:29 +00:00
Primiano Tucci
2bce6961e5 Enable perfetto traced for walleye
am: 0ef1227efc

Change-Id: Idb3ba1a81d9fe33e43468ffc3975a19951e0bf3e
2018-01-26 19:52:59 +00:00
Primiano Tucci
0ef1227efc Enable perfetto traced for walleye
Bug: 72484603
Test: builds and run (see go/perfetto-test-spec for test plan)
Change-Id: I2fa1d8aee0661903c8fdd634e16bc24763aa3a87
2018-01-26 17:59:05 +00:00
Kumar Anand
65c4cb7896 Merge "wifi: enable Softap ACS and 11ac on walleye" 2018-01-25 01:23:27 +00:00
Jiyong Park
f40a458876 add vndk_package to aosp_walleye am: 2012fda373 am: eac6e41fcb
am: 112fa767f2

Change-Id: I64b2a97f6c69ec4ce6e2b670ebaaaf10591956e1
2018-01-24 15:50:04 +00:00
Jiyong Park
112fa767f2 add vndk_package to aosp_walleye am: 2012fda373
am: eac6e41fcb

Change-Id: If6aefb6c86db3e4bb51497105c5540a2522e070e
2018-01-24 15:45:29 +00:00
Jiyong Park
eac6e41fcb add vndk_package to aosp_walleye
am: 2012fda373

Change-Id: If84e6c80e09d71cc8e84829df045430f50a729b5
2018-01-24 15:43:28 +00:00
Kevin Rocard
710aed4391 Merge "Revert "Audio V4: Split system and vendor Audio.h"" 2018-01-24 06:26:15 +00:00
Kevin Rocard
b1021d5483 Revert "Audio V4: Split system and vendor Audio.h"
This reverts commit 3721141909.

Reason for revert: Breaks the build of multiple devices

Change-Id: I094b02b6b59baa107c532fc21fef945eaf2f4161
2018-01-24 06:13:02 +00:00
Kevin Rocard
292649dffc Merge "Audio V4: Split system and vendor Audio.h" 2018-01-24 04:04:47 +00:00
Kevin Rocard
3721141909 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-23 08:51:49 -08:00
TreeHugger Robot
9fd79a4fd1 Merge "Cellular/Wifi power profile for Walleye" 2018-01-23 02:47:40 +00:00
TreeHugger Robot
77852e2a0e Merge "power profile: Update power profile cpu values" 2018-01-22 23:57:22 +00:00
Kumar Anand
0578d6262e wifi: enable Softap ACS and 11ac on walleye
Bug: 72228752
Bug: 72229084
Test: Wifi Regression Test
Change-Id: I2c5de1743f81b3bb8759a96731a0a27fd1957b4d
2018-01-22 15:10:51 -08:00
Marissa Wall
5ba00f6a26 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: Iebfc012fdd6db9801a427d6839165f3af873def2
2018-01-22 13:26:26 -08:00
Nadav Bar
6d56be2343 Add incall music to walleye mixer paths
This change adds the paths for walleye 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: Ic7f3306ba9068daf4f455a627fddb273b04a73ea
2018-01-22 13:41:44 +02:00
Jiyong Park
2012fda373 add vndk_package to aosp_walleye
aosp_walleye 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_walleye boots to the UI
Change-Id: I4f0983298ae87147572f6308c170663edf9cd171
2018-01-22 11:53:19 +09:00
Siddharth Ray
5120e70b2d Cellular/Wifi power profile for Walleye
BUG:67213967
Change-Id: I22e42e626e5cb366b9f114950c70f0ff4bf6613c
2018-01-17 18:10:54 -08:00
TreeHugger Robot
305d4c06b9 Merge "wifi: walleye ini configuration update" 2018-01-14 02:59:30 +00:00
Michael Wright
f0c0a9bc21 Add display calibration info.
Also, move to a nits-based autobrightness curve.

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

Change-Id: I687e43680d5001a2aeefb06d1caabaefcfa0f658
2018-01-08 18:41:36 +00:00
Kumar Anand
f5a29247b4 wifi: walleye 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: Iaa7dc5ca8fba6a20deb7a56079aa0cffb38c2064
2017-12-12 14:24:48 -08:00
Lucas Dupin
66545b0500 Merge "Support seamless transition to AoD" 2017-12-12 06:36:23 +00:00
Xin Li
caae73b2e1 DO NOT MERGE: Merge Oreo MR1 into master am: 8fa6855979 -s ours am: 990bacb60c
am: 5c3f03ed15  -s ours

Change-Id: I48bd7f6ff083b6a498e41e59b899359042024cae
2017-12-07 20:55:29 +00:00
Xin Li
5c3f03ed15 DO NOT MERGE: Merge Oreo MR1 into master am: 8fa6855979 -s ours
am: 990bacb60c

Change-Id: I5076b6b531997636f0addc30ec79f2b0a97cbead
2017-12-07 06:12:13 +00:00
Xin Li
990bacb60c DO NOT MERGE: Merge Oreo MR1 into master
am: 8fa6855979  -s ours

Change-Id: I5f5825f27d2fdb9305c6123c74ee2934f393bed7
2017-12-07 03:47:27 +00:00
Xin Li
8fa6855979 DO NOT MERGE: Merge Oreo MR1 into master
Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: I23299a551ce03dc45d61f774e0bf5f9b608c2ecd
2017-12-06 14:24:44 -08:00
vincent_tew
3a27ca64e6 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: Iadde6e479d2eb7c398b60da8f02455bbfeb7332a
Signed-off-by: vincent_tew <vincent_tew@htc.com>
2017-12-05 13:00:21 -08:00
TreeHugger Robot
2f93402a2d Merge "walleye: add separate charger kernel module config" 2017-12-01 01:21:42 +00:00
Lucas Dupin
cea583160a Support seamless transition to AoD
Bug: 64155983
Test: set breakpoint and look at value
Change-Id: I2ee1eb645ea9c7c367c78a27245318d595110a82
2017-11-29 18:44:51 -05:00
Lorenzo Colitti
9d8bc883b2 walleye: don't pull netutils-wrappers from vendor blobs. am: 6aeff36a6d am: 846ba05a0d
am: 24c23d783e

Change-Id: Iae1747111af9f1b174044ee3aed2e9b95e983860
2017-11-27 23:20:12 +00:00
Lorenzo Colitti
24c23d783e walleye: don't pull netutils-wrappers from vendor blobs. am: 6aeff36a6d
am: 846ba05a0d

Change-Id: Ic43685915ba54c2e9ea109f74f6354c043833c4a
2017-11-27 23:12:12 +00:00
Lorenzo Colitti
846ba05a0d walleye: don't pull netutils-wrappers from vendor blobs.
am: 6aeff36a6d

Change-Id: Ib2674aa826d753fbe4fff260a9d5a1153729e114
2017-11-27 23:09:41 +00:00
Lorenzo Colitti
6aeff36a6d walleye: don't pull netutils-wrappers from vendor blobs.
These should be compiled from source instead.

Bug: 69718172
Test: aosp_walleye-eng builds and boots, cell data works
Change-Id: I2b579a952d0374c5e34c5296f227f638d3630aea
2017-11-24 12:56:17 +09:00
Vishwath Mohan
94b472eac0 Add support for walleye_kcfi targets.
Bug: 67506682
Test: lunch walleye_kcfi && m -j50
Change-Id: If97a15e03fa3db684d212da0633e6bbec01c2f47
2017-11-21 14:34:08 -08:00
Steve Pfetsch
8ffcefd27e walleye: add separate charger kernel module config
Bug: 69498902
Change-Id: I521483b17255705487dbf51f8b9f266de0ec4b78
2017-11-20 17:12:49 -08:00
Bill Yi
f08d4f61d7 Add system/framework/qcrilhook.jar
am: bbef82c017

Change-Id: I775ed8fd917e6e7c883c9994354405c5cefa60e7
2017-11-20 20:33:32 +00:00
Bill Yi
bbef82c017 Add system/framework/qcrilhook.jar
BUG:69427786

TEST: built and flashed walleye
Change-Id: I6eb59bc4afa7416720c60fc76b5d25c412de77e9
2017-11-20 10:48:43 -08:00
Xin Li
5c5a87f541 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: 2a5e1005f2

Change-Id: Ib4b1068c0659eab9fda1979a35db0426df72753c
2017-11-15 01:45:11 +00:00
Xin Li
2a5e1005f2 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Change-Id: I69dedcd319d3b02e892ceb3d2e3ce0bdc73fc6ec
2017-11-14 16:38:07 -08:00
Xin Li
47433aa889 Merge commit 'b8389e025058accedcdbf68ae90651883f2786f2' into HEAD
Change-Id: I5ba7ac9b01056f9045c42b757e5e83aa9b94bd48
2017-11-13 14:35:16 -08:00
Siqi Lin
304cb6d6fa Add walleye_kernel_debug_* targets
Set paths for kernel modules for the new debug targets.
The kernel to use for each target is specified in the lunch
target Makefile.

Bug: 68266758
Test: lunch new targets and make
Change-Id: I19966b9c3f85c52a6f140ad6e761c5580d28ef55
2017-11-03 14:18:41 -07:00
Mohan Srinivasan
13d574492c Merge "Switch to deadline IO scheduler post boot." 2017-10-30 18:52:40 +00:00
Mohan Srinivasan
ae780bce59 Switch to deadline IO scheduler post boot.
The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I94b90ac09e921fdf01564bd4c6e1a1b809f3f8ec
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
2017-10-27 16:27:13 -07:00
Ruchi Kandoi
6ec3dac195 Merge "Disable DCDC bypass for NFC Reader mode." into oc-mr1-dev am: b88c086211
am: 2eee201145

Change-Id: I6ab0440e9ece9885536bcebe087210a722362107
2017-10-25 21:06:05 +00:00
Ruchi Kandoi
2eee201145 Merge "Disable DCDC bypass for NFC Reader mode." into oc-mr1-dev
am: b88c086211

Change-Id: If2c65bd3294c468a40f72f0819cdffd9f5cc8773
2017-10-25 21:04:41 +00:00
TreeHugger Robot
b88c086211 Merge "Disable DCDC bypass for NFC Reader mode." into oc-mr1-dev 2017-10-25 21:01:07 +00:00
Ruchi Kandoi
eb22da8dbc Disable DCDC bypass for NFC Reader mode.
Test: Push the config file. Toggle NFC.
Bug: 67959484
Change-Id: Ie8c73299b2b5e041dc246f6a154bc77bbf876b2d
2017-10-25 08:43:09 -07:00
Bill Yi
718c95027a Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD am: d86f50b8bc am: 42a3e21677
am: c1daa1e717

Change-Id: I466f20c6ec30049880aa4c031c61796e0f7e0dd4
2017-10-24 20:24:36 +00:00