Commit graph

339 commits

Author SHA1 Message Date
millerliang
3df55604f5 audio: adjust the latency for compress-offload
Compress-offload also needs to adjust the latency
to meet the av sync result.

Bug: 234104918
Test: Play AV sync video in YTMusic test apk
Change-Id: I45e4b2d2c477ae2eae14d7342e3a81c38ec61cb4
2022-06-09 03:00:40 +00:00
Ray Chi
bd29a01fca conf: remove the command to start usb statemachine
Bug: 233232746
Test: build pass
Change-Id: I5b82e45e656bd8f6794dbfdb94d0a9b54a674851
2022-06-08 14:31:13 +00:00
George Lee
6f90a13c3a thermal: Re-enable soft_ocp_cpu1 monitoring.
Bug: 234707775
Test: Boot and confirm its monitoring
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I531242c67dfc3d5542f15366f464b28fcbdc0c31
2022-06-07 16:55:11 +00:00
Jasmine Cha
d31bca5d0e audio: update c10 p10 RC tuning
For C10_LL_Pt_Ls_mix3500M_volCurve_allModes_Speaker_Safe_ONEAL_V2.mps:
- Non media, update the speaker-safe preset for
  Ringtone/Notification/Alarm stream
- sha1sum:  b813efb994561b71715c075c0d34ad8c1a009ade
  /vendor/etc/waves_preset.mps

For  P10_LL_Pt_Ls_mix2000_volCurve_allModes_Speaker_Safe_ONEAL.mps:
- Non media, update the speaker-safe preset for
  Ringtone/Notification/Alarm stream
- sha1sum: 32a42b5ad6f2c2b3b79b2a33d3f53329edf61047
  /vendor/etc/waves_preset.mps

For audio_policy_volumes_C10_Update.xml:
- Revision for low volume to be compatible with the speaker-safe
  preset mentioned above.
- Revision of full volume curve to be compatible with MIX3500M preset
  for below stream type DTMF, System Sound, Enforced Audible.
- sha1sum: 918ebfef1da80f8caca117cc1da00f0a7eade6c1
  /vendor/etc/audio_policy_volumes.xml

For audio_policy_volumes_P10_Update_V2.xml:
- Revision for low volume to be compatible with the speaker-safe
  preset mentioned above
- Revision of full volume curve to be compatible with MIX2000 preset for
  below stream type DTMF, System Sound, Enforced Audible
- sha1sum: 9333ef3a4359b6c5e5b29a3beb40c677f8961c5d
  /vendor/etc/audio_policy_volumes.xml

Bug: 234590302
Bug: 234464916
Test: manual test
      b/234464916#comment4
      b/234590302#comment8

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I9fcaa0ac6f50af7f0728eb5a686b9866317a49d8
2022-06-07 09:45:02 +08:00
George Lee
b2180f952b thermal: Remove Monitor flag for BCL tzones.
Since all of the BCL tzones are triggered from IRQ, we do not need to
monitor the tzones.

Bug: 197189623
Test: Pts Thermal test passing
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I96a245329e59a19f5baf15992c87a3ea568b7ddf
2022-06-06 18:16:34 +00:00
Carter Hsu
5d30102080 audio: update FM tuning 20220602
FM table change list:
1. HE
    a)  Fine tune HE BB SWB FFP, BVE, NS, ECDT
    b) Fine tune HE BB NB/WB/SWB RX volume curve
2. HA
   1) fine-tune C10 TMOUS tuning for DVT stage
   2) fine-tune P10/C10 NB robustness tuning
   3) fine-tune P10/C10 NB acoustic shock for generic
3. HH
    a)  P10/C10 fine tune NS performance
4. AMS : P10/C10 HA/HH/HE all enable AMS.

Bug: 234676284
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I9328b8c72c9b4799634bf3d6b63db6a4102fe571
2022-06-06 08:38:57 +08:00
Taeju Park
6cf71dd252 Boost Top-App for app launch
Bug: 228243692
Signed-off-by: Taeju Park <taeju@google.com>
Change-Id: I04a89a99a651438057dfe25710f055d54f4477e8
2022-06-02 19:05:10 +00:00
Yanting Yang
b6bdf33b3f Update e-labels for JP SKU of C10 and P10
Bug: 234574270
Test: make -j
Change-Id: I280164b9a88997fde814957c99b6d5234cf95992
2022-06-02 04:29:50 +00:00
jonerlin
870b1dca7c Bluetooth: update C10/P10 BT RC SAR tables for differnt SKUs/countries
Bug: 234377643
Bug: 234376892
Test: make and manual test, RF member verification
Change-Id: I8dda4bbb1c848fac1d1f880236a27635227d1f23
2022-06-02 04:07:26 +00:00
Alice Kuo
933409ce60 Add support LE audio switcher in the developer option
Bug: 233018305
Bug: 233005340
Test: switch LE audio feature, and check LE audio functionality status
Change-Id: I5305f3b2b1fe19f8a1ddb42ee9101bfb64b9bce2
2022-06-01 16:02:45 +00:00
jonerlin
af53662cd4 Bluetooth: Enable BTRT logging for userdebug eng build
Bug: 215487478
Test: Manually
Change-Id: I701262727a5bf656f15577561a9361e58bd59e5c
2022-06-01 07:21:13 +00:00
George Chang
17a923dc37 Switch NFC from HIDL to AIDL
Bug: 216290344
Test: atest NfcNciInstrumentationTests
Test: atest VtsAidlHalNfcTargetTest
Merged-In: Ieb8be71d3ac4e8e187d8fcc2e3843bfd17112a73
Change-Id: Ieb8be71d3ac4e8e187d8fcc2e3843bfd17112a73
2022-06-01 06:19:26 +00:00
TeYuan Wang
d3c9705ecd thermal: bringup charge_mdis PID loop
Bug: 209635028
Bug: 226130317
Test: emul_temp with different power workload
Change-Id: Ic26adbe21450c14569135dd4694083701070df58
2022-05-31 23:23:31 +00:00
TeYuan Wang
4bf5bce6ad thermal: add k_i for CPU GPU PID loop
Bug: 232919952
Test: run manhattan and burn8
Change-Id: I8b0e59b0b32a19b49116240ff01145f9a950ffb6
2022-05-31 17:44:02 +00:00
Cyan_Hsieh
3537df9211 Change padding and height radio for keyboard
Bug: 219397352
Change-Id: Idbecefe6c73966764679dc545dff58dfd220e9e3
2022-05-31 10:56:36 +00:00
millerliang
04cf0e2c32 audio: enable mmap playback and record on BT
AoC can support mmap on BT both playback and recording
after gpar/322484.

Bug: 232205959
Test: Play MMAP games and OboeTester
Change-Id: Id696b578f4a2e3f94d6193e714b6d9f1ace6977a
2022-05-31 08:06:16 +00:00
yixuanjiang
a3e2652c86 audio: enable stereo AAC encoder
Test: local test pass
Bug: 227212413
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ibe27d6ba38f1d349c032194c575a311a923196e4
2022-05-31 11:08:12 +08:00
Jimmy Shiu
0dc4b0d855 ADPF: Skip I signal and set Uclamp init value
Skip I signal by setting kI to 0 and use UClampMinInit as the display
update boost value.

Bug: 198663407
Test: Manual Test
Change-Id: I309ae4f63c4d7f50dc320aec28fffbe1473eb6e5
2022-05-27 22:04:51 +00:00
Richard Hsu
18797cfc14 [Tuning] Performance turning for NNAPI ML benchmarks
Sets the ML_ACC boost value to 650. The medium core's capacity is 763, so this means our benchmark process will always be scheduled onto the medium or big cores. We experimented with different uclamp values, and 650 is a good balance between power and performance.

Measurements:
MLPerf IC model Latency (ms) Power (mW) Energy/inference (mJ) MLPerf Scores
Uclamp = 512 0.981 3539 3.47 826
Uclamp = 600 0.973 3683 3.58 872
Uclamp = 650 0.899 3917 3.52 970 <- good balance
Uclamp = 700 0.892 4067 3.63 976
Uclamp = 800 0.875 4440 3.89 997

https://docs.google.com/presentation/d/1zx7sLkhOClmuRTCrq8-l3N1mZrrv7f-CtcdMuzV0eaI/edit?usp=sharing

Bug: 232183574
Test: MLPerf score on P22 improved significantly.

Change-Id: Ib93ecee5af3f1cbe83c5a96dc14b3a537db5abc8
2022-05-27 21:21:41 +00:00
Richard Hsu
2c15fb2a5b [Tuning] Disable CPU Idle in NNAPI workload with PMQoS CPU DMA Latency
To improve the return path latency, we want to keep the CPU at at least WFI state (Idle_1). The PMQos cpu_dma_latency knob prevents the CPU from falling below WFI state. This makes the return path CPU wakeup latency very good. Check with wvw@, the power impact shouldn't be too significant.

The average energy cost per inference dropped from 3.85 to 3.47 mJ. The reason why the power number is lower WITH disable-idle is that, due to better latency, we get to run more inferences given the same amount of time. This makes the average power consumption lower.

Measurement:

MLPerf IC model Latency (ms) Power (mW) Energy/inference (mJ) MLPerf scores
Default 1.35 2837 3.85 560
Disable CPU Idle 0.98 3539 3.47 826

https://docs.google.com/presentation/d/1zx7sLkhOClmuRTCrq8-l3N1mZrrv7f-CtcdMuzV0eaI/edit?pli=1#slide=id.g12dd9e50b4b_0_0

Bug: 232183574
Test: MLPerf on Android T. Performance improved. Verified on Perfetto.
Change-Id: Ia807bf0849e4d9b0b0e8c9510335129ca89e791f
2022-05-27 21:21:41 +00:00
Carter Hsu
ee6a5a5e72 audio: update FM tuning 20220527
FM table change list:
1. HE
    a) Enble BVE for BB on NB,WB, SWB
    b) Fine tune BB RX EQ on NB, WB.
2. HH
    a) Fine Tune RX for dual speaker
    b) Polishing SWB NS performance
3. HA
   a) Update TMOUS tuning for P10/C10 on NB/WB/SWB
   b) Fine tune C10 tuning setting for Generic on NB/WB/SWB
   c) Fine tune P10 tuning setting for Generic on NB
   d) Fine tune NS tuning for P10/C10 on SWB

Bug: 234079372
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: If380495da1e94fff33a2bdc9980f0e546d167e7f
2022-05-27 10:01:49 +00:00
Ching-Sung Li
53d71ce550 Build C10/P10 default CMF color wallpaper
Bug: 193776159
Test: Build pass; Manual
Change-Id: I0b5bd5684420ad5e9b0bca1a328a921b777c78fe
2022-05-26 18:13:39 +00:00
Lucas Wei
192fec00d4 pantah: add requirement for vendor_kernel_boot partition
Bug: 214409109
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: I756d2bbc730b5901bfe30d415bf519937e8b1ab0
2022-05-26 13:51:34 +00:00
Patty Huang
893479de32 BQR: Enable LE Audio Choppy Event Report
Set the Bit 6 to true to enable the LE Audio Choppy Event Report

Bug: 233553754
Tag: #feature
Test: Verified the LE Audio Choppy Event will be reported

Change-Id: I8b193e9d51cde49b8494fa4f0e0a0cea3b77f2ff
2022-05-26 12:56:52 +00:00
edyblin
69136ea87e Update ./DevInfo/Mod model name am: a7e8dbb927
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/18492027

Change-Id: I91e5303db3cec0c875473f07ae0bf9a058ad1fa7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 17:48:17 +00:00
edyblin
a7e8dbb927 Update ./DevInfo/Mod model name
Need to set model name to GE2AE and GQML3
Bug: 232495475
Test: Pass at b/232495475#comment7

Change-Id: I21cc02b2a980f493a34bcfcd40117bb827504075
2022-05-25 17:21:09 +00:00
Sayanna Chandula
2435a0c9cd thermal: update virtual coefficients per v0.7
Update P10 virtual coefficients to v0.7 version. No change for C10
coefficients.

Bug: 232569691
Test: Build and boot on device.
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I8b7b5c2b2f1a20f07925b66697632fdc66bdc644
2022-05-25 15:05:46 +00:00
George Chang
b9c8c28644 Set sereset property every time at boot
Set it to "reset" in order to reset ST54K eSE at NFC hal init.

Bug: 232204531
Test: check eSE reset process starts at boot
Change-Id: I9f5863f963716ddceabbd540fbde32abec0a38b4
2022-05-25 12:02:16 +00:00
SianyiHuang
099addb63d Config: Update Auto Brightness debounce and ambient threshold setting
Bug: 233283720
Test: adb shell dumpsys display and check debounce and ambien threshold
seting

Change-Id: I36cc5cf257869c37304c6525d1965a61da5bd037
2022-05-25 05:39:18 +00:00
Sayanna Chandula
14edfc76be thermal: add tpu/aur power hints for emergency severity
Add power hints handling for EMERGENCY severity. Control temperature
and switchon temperature are lowered when the pwoerhint is received.
Remove power hint handling for isp thermal zones as PID control loop
is not enabled for isp as of now.

Bug: 229014824
Test: Build and boot on device. Check control/switchon temp when
thermal severity reaches EMERGENCY level

Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I2e4bab9495d76e231df8277f3bf4ef68d5a141af
2022-05-24 23:22:08 +00:00
Yichi Chen
493be28f05 RRS: Apply the default config from persist prop
vendor_config plays as another role to control the display config during
the boot time. To change the default configuration of the user selected
mode, we use persist config to store the value.

Bug: 232721840
Test: Boot w/ and w/o user selected configs and check the resolution
Change-Id: I8e6f551817e9b7cb747a7f5351430dd2ac9b4624
2022-05-24 13:06:41 +00:00
Jasmine Cha
2a027324f2 audio: improve mute duration.
- preview of notification will be cut off slightly becuase of mute
  duration in framework is 160ms (40*40)
- set mute duration of primary output from 160 ms to 40 ms.

Bug: 233176336
Test: preview notification/end call sound on voice/VoIP(Line)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I7f5225372c265cb22e74311b0805d16b1c68fd3d
2022-05-24 08:39:17 +00:00
linpeter
46546e2e2c display: update the indoor auto-brightness curve
Modified the indoor range mapping in
the indoor auto-brightness curve.

Bug: 200227638
Test: check the default curve
Change-Id: I7b9219023fabdefe05cb910666c0e0ff998ed06c
2022-05-24 07:21:14 +00:00
Darren Hsu
3c30a321f7 powerstats: update display resolution setting
Since runtime resolution switching is enabled, the specific device
supports to run QHD displays at lower FHD resolutions. So we should
support both QHD/FHD resolution settings in PowerStats HAL.

Bug: 232313626
Test: dump power stats at QHD/FHD resolutions
Change-Id: I46a45c078da146a8ecbeb49af4765771a2c0b651
Signed-off-by: Darren Hsu <darrenhsu@google.com>
2022-05-23 17:29:33 +08:00
Sayanna Chandula
6d769090c0 thermal: update virtual coefficients per v0.6
Update C10 virtual coefficients as per v0.6. No changes for P10

Bug: 232303785
Test: Build and boot on device
Signed-off-by: Sayanna Chandula <sayanna@google.com>
Change-Id: I2662aba527265d67acb1f5237e550eff75347ca8
2022-05-20 18:58:12 +00:00
chungkai
a51ef227dc powerhal: add uclamp_threshold and reduce_prefer_idle node
we need disable uclamp_threshold and reduce_prefer_idle
under launch scenarios.

Bug: 232593932
Test: build pass
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I4b1f1fa04ee7c89f25500df74db49ad2fb67b2cb
2022-05-20 18:19:35 +00:00
Rick Yiu
9890703eea Boost foreground group when app launch
To improve app launch time.

Bug: 233236422
Test: build pass
Change-Id: I308aaf3133136b13fd71cdc3a60a1665e3483654
2022-05-20 17:26:34 +00:00
jonerlin
bb92719a89 Add IBluetoothExt interface and hci_inject tool in user debug build am: 9170bc5507
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/17525124

Change-Id: I9fcb2c5bbfea339ebb70a24f589baace72bad09d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 12:20:48 +00:00
Bill Lin
fdf0d5d091 Add quickpickup sensor to config.xml am: 21240c5ca5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/18401597

Change-Id: Id1a42287c84ddb275dcc259ce2d1214b349a0e8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-20 12:20:20 +00:00
jonerlin
9170bc5507 Add IBluetoothExt interface and hci_inject tool in user debug build
Bug: 228943442
Test: manually
Change-Id: Ib3ca868ce4d3eebe7c9a5f9e33ceab3f9a9b9a41
2022-05-20 05:06:29 +00:00
George Chang
bb799dac25 Reset ST54K eSE every time at boot
Bug: 232204531
Test: check eSE reset process starts at boot
Change-Id: I874a3d5dbf50167aa02e57362dd2cd8a4a79cfe2
2022-05-19 17:55:33 +00:00
Andy Hsu
e0a1e92653 Create the GPU powerhint settings for streaming.
Bug: 229794313

Test: Updated Lyrics in ag/18192655, updated the powerhint files on local C10 (EVT1.0f, ab/8559183), switched to video bokeh prewview and saw 572000 in /sys/devices/platform/28000000.mali/hint_min_freq.

Test: Checked the latency in video bokeh preview. the total latency of video bokeh node improved from 33.96ms to 26.93ms.

- tested scene: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/PXL_20220512_035931033.mp4?user=pixel-camera-data-readers.
- timer after: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/timer_after.txt?user=pixel-camera-data-readers.
- timer before: https://cnsviewer2.corp.google.com/cns/qj-d/home/pixel-camera-data-readers/acat/hwandy/ag/18192655/timer_before.txt?user=pixel-camera-data-readers.

Change-Id: I6272f9769441702004299060808b0ccfc18b1caa
2022-05-19 16:36:42 +00:00
Victor Liu
438c0854bb uwb: calibration file update
Fix C10 AoA polarity by modifying LUT in config file

Bug: 233072004
Change-Id: Ic163f03efa14f3af38fff92902241cd09516546f
Signed-off-by: Victor Liu <victorliu@google.com>
2022-05-18 20:24:09 +00:00
Wei Wang
af0111f5ef Remove FPS based hints for TA boost
Bug: 205369368
Test: Build
Change-Id: I063f8aa6d77b966d50d11c0135880ff787870e07
Signed-off-by: Wei Wang <wvw@google.com>
2022-05-17 16:06:14 +00:00
Bill Lin
21240c5ca5 Add quickpickup sensor to config.xml
Test: manual enable AOD and verify quick pick up gesture
Bug: 232717890
Change-Id: I5ae6f871168368e351a64a9f4337c83d14f4ecca
2022-05-17 17:41:02 +08:00
Jimmy Shiu
392b34f0f1 ADPF: remove UclampMin_Granularity
No need to prevent uclamp.min update rate by Granularity.
There is no perf impact.

Bug: 232336917
Test: /data/nativetest64/libperfmgr_test/libperfmgr_test
Change-Id: I535a57b68da9e9b37f4126e46d0410ccb410be46
2022-05-16 16:33:38 +00:00
Wei Wang
f7db19164e Add FGPreferIdle to app launch
Bug: 178016953
Test: boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I2e1a2ad5b412825f306c44e80946a1086afd7571
2022-05-14 03:00:49 +00:00
Yichi Chen
5f25a289f7 [RRS] Enable RRS in FHD+ by default
The impact of the change only aims to users who have never configed RRS
and those who do factory reset themselves.

Bug: 232536153
Test: factory reset the device and check RRS setting in FHD+
Test: configure RRS and check the config is stored after rebooting
Test: disable smooth display and check the expected refresh rate
Change-Id: I01c46ac2566f0b060fcf23a092601f05bbf568cb
2022-05-14 00:34:22 +00:00
Jing Ji
97125e45f9 Turn on auto restricted bucket on abusive bg battery usage am: 0496799caa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/18337180

Change-Id: I6f6b08e87745df739ded6a62b61802eb2cf0ffd0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 18:21:08 +00:00
Jing Ji
0496799caa Turn on auto restricted bucket on abusive bg battery usage
For devices with ODPM support only.
Bug: 203105544
Test: dumpsys activity -a

Change-Id: I1c841edbbcea6cd37e1495abd95a9b55ead5babc
2022-05-13 18:01:56 +00:00