Commit graph

308 commits

Author SHA1 Message Date
Ted Wang
1e8d0d77d8 Bluetooth: Oriole BT SAR tables for US for FRC
Bug: 197871408
Test: make
Change-Id: I577e5ba00956fe843118886f66260c51908cc996
2021-08-27 12:17:47 +00:00
David Li
b82bc02526 audio: update Media Record Tuning Files
R4O6
Update camcorder tunings files for FRC

Reason:
- The SA-lite pipeline is used for 3rd party camcorder/recorder and
    need to be updated tuning for audio quality (b/185293492)
- There is e-Noise issue could be noticed when using 3rd party
    camcorder/recorder

Change list:
Update audio_platform_configuration.xml file so that parameters in
    SA-lite pipeline can be loaded correctly
Update template.xml file to enable feature swapping microphone
    assessment in SA-lite pipeline
Update recording.gatf file for modifing tuning parameters

Validation:
3rd party camcorder/recorder function are good and validation was
    used SD1A.210817.007 (7665414)

Bug: 197492283
Test: forrest build passed
Change-Id: Ifc66519c92935dc4bd14d68a85a491f96429272a
2021-08-27 01:57:46 +00:00
Jasmine Cha
254cdef7be audio: update FM tables (20210729_v540)
///R4
1. HHNB/WB/SWB double talk fine tune with v5.3.11 lib fix
2. Headset TTY VCO: sync the latest of HH TX
3. Headset Headphone : sync the latest of HH TX
4. BT HAC : sync the latest of HH TX
5. Headset FB tuning for NS

///O6
1. HHNB/WB/SWB double talk fine tune with v5.3.11 lib fix
2. Headset TTY VCO: sync the latest of HH TX
3. Headset Headphone : sync the latest of HH TX
4. BT HAC : sync the latest of HH TX
5. Headset FB tuning for NS

Bug: 197716271
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6376ce7da579dcda09c6077182cd82c6fb2c2efb
2021-08-26 08:31:05 +00:00
Jasmine Cha
f21fa1b132 audio: update tuning tables (20210826)
Release Notes (R4):
- Retune top volumes for more balanced sound, less harsh
- Heavy emphasis on vocals, both depth and clarity
- DTMF volume curve reduced to better align w/ O6, F2, C2, B9
- SYSTEM volume curve reduced to better align touch sounds
- SYSTEM volume curve copied into AUDIBLE volume curve

Release notes (O6):
- Camera shutter (system sound) decreased volume curve to better align w/ R4/B9 and F2/C2
- Slight adjustment at min vol point for DTMF
- SYSTEM volume curve reduced to mitigate loud camera shutter
- SYSTEM volume curve copied into AUDIBLE volume curve

Bug:190960105
Test: High level tuning validation (b/190960105#comment15)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Icf0c9e921017b5e06ec950452a78a9d89acf86f2
2021-08-26 01:15:23 +00:00
George Chang
675c8f7b6e Allow NFC polling disable by system apps
Bug: 195429557
Test: manual
Change-Id: Ib2a67580ffd5716e6b6b371c4502b8d377952568
2021-08-25 05:50:10 +00:00
Robert Lee
40b3941f80 init.raviole.rc: remove world writable on speaker.cal
Bug: 197039088
Test: do re-calibration and check the speaker.cal is updated.
adb shell crus_sp_cal -d -s -a --device 5 --ambient 27 --num-speaker 2 --verbosity 7

Change-Id: I7d8c43c5feaab4d0337590f268f0b59aa7f3e6fd
2021-08-24 03:35:33 +00:00
Ted Wang
e540f7b737 Bluetooth: Raven BT SAR tables for JP (mmwave) and ROW
Rename raven BT SAR tables for US and EU

Bug: 197368550
Test: make
Change-Id: I1a69308be75ffe8c40232cebfc428392075e988e
2021-08-23 14:33:49 +00:00
Yanting Yang
7a754f9f30 Update regulation e-label for Oriole
Update the e-label of GR1YH and add the e-labels for GB7N6 and G9S9B.

Fixes: 187845531
Test: visual
Change-Id: I82bc0468167f9734442e90790ffe1b78d5e5979e
2021-08-23 11:29:54 +00:00
Yanting Yang
c1583a90f6 Update regulation e-label for Raven
Update the e-label of GF5KQ and add the e-labels for GLU0G and G8V0U.

Fixes: 187846268
Test: visual
Change-Id: I76bf53297abf4d00051beda670d847477444f7b6
2021-08-23 13:34:59 +08:00
Bill Lin
9b61605560 Adjust 0.5dp padding for KeyguardStatusBarView
There's still 2px offset when transitioning from
KeyguardStatusBarView to PhoneStatusBarView.
To make the visual perfect, we can adjust more 0.5dp.

Test: Visual
Test: atest SystemUITests
Bug: 195670442
Change-Id: I84d10f2dad665fcbdb01665f5056d08b3c20e0d7
2021-08-23 00:37:20 +00:00
Robert Lee
bedf39fb89 init.raviole.rc: chmod for speaker.cal
The speaker calibration step is changed in factory and the speaker
calibration file's permission is incorrect. Then audio hal cannot read
speaker.cal file to apply it and only apply default cal value.

Correct the file mode when init.

Bug: 197039088
Test: push the script into device and check file mode after rebooting device

Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: I1339f006f4477288cb41d07cb32caba0921b6e09
2021-08-20 04:17:17 +00:00
wenchangliu
0e8a67f822 oriole: enable media performance class 12
Bug: 196768374
Test: atest CtsMediaPerformanceClassTestCases
Test: atest android.hardware.camera2.cts.ExtendedCameraCharacteristicsTest
Test: atest android.filesystem.cts.RandomRWTest
Test: atest android.filesystem.cts.SequentialRWTest
Test: atest CtsVideoQualityFloorHostTestCases
Change-Id: I9eaa78c23b6e9645ea5a344b9da0de3cacf21e17
2021-08-18 11:02:49 +08:00
George Lee
d337a06e1b bcl: Put OCP_WARN back to original level
Bug: 196833426
Test: Boot and confirm proper level set
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Iff9e77c39de546c53fd2404d3a0e15408b0e856d
2021-08-17 16:21:12 +00:00
TeYuan Wang
b7b48bb1e9 thermal: optimize CPU thermal throttling
1. Avoid integral and derivative computation when thermal > MODERATE
2. Adjust cdev weight to make LC throttling become more aggressive

Bug: 195459720
Test: test burn8

Change-Id: I2d40e8cd95f6c67ff48574b2b8405c9545a67611
2021-08-17 01:18:38 +00:00
Robert Lee
09c3fd343f audio: update audio_policy_volumes.xml
Update below stream's volume curves to refine system sound output
from speaker too loud in the lowest volume.

  <volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
  <volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
  <volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
  <volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
  <volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">

Refine audio-tables.mk location to make sure the xml is updated.

Bug: 195387287
Test: QMC verified
Test: Local built and verified vendor/etc/audio_policy_volumes.xml is correct one

Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: I13188d7470092448a2660f89d43cf13a56c22edc
2021-08-16 11:27:19 +00:00
wenchangliu
a768e6f4ae raven: enable media performance class 12
Bug: 187191316
Test: atest CtsMediaPerformanceClassTestCases
Test: atest android.hardware.camera2.cts.ExtendedCameraCharacteristicsTest
Test: atest android.filesystem.cts.RandomRWTest
Test: atest android.filesystem.cts.SequentialRWTest
Test: atest CtsVideoQualityFloorHostTestCases
Change-Id: Ia6f335e81f6157a5abde7d33a5576762303b2379
2021-08-16 03:52:17 +00:00
Beverly
a7db0950b2 Don't have an alpha-in fade for the auth ripple
Since R4O6 ripple comes from UDFPS, we don't need
to fade it in.

Test: manual
Bug: 196006323
Change-Id: If7e41bfe87823a763a8247a9125f8cc54ba769a6
2021-08-13 20:41:18 +00:00
TeYuan Wang
7a9216673c thermal: optimize CPU/GPU throttling
Bug: 195459720
Test: test burn8 and manhattan
Change-Id: Icb65cda2f9370069ac701cc1d15c6cc8661af0ba
2021-08-13 20:00:42 +00:00
linpeter
2d18527195 display: disable hbm dimming
Bug: 194656170
test: no panel dimming
Change-Id: I5907697c546bd11d6e8ca67b4fde2a67b3ab8764
2021-08-13 14:04:28 +00:00
Daniel Solomon
7494ecc094 display: override Oriole set_idle_timer_ms
Bug: 195699802
Change-Id: I6d707b1630d26e0c2018c12566f2a294c4dadd10
2021-08-13 05:26:26 +00:00
samou
f1820dbcbd powerstats: correct display odpm rail name
Bug: 194651088
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I40b1ab79c64a26008746933fd293064ff69eeebd
2021-08-13 00:33:00 +00:00
George Lee
4a6d0b7b8e bcl: change tpu_cooling state from 3 to 2 ocp_tpu
Per quality testing of Face Auth, noticed 2 failures out of 30 tries of
Face Auth.  Per thermal log, tpu_cooling state changed 2 times.  Over
throttling on TPU by setting tpu_cooling state to 3 may cause Face Auth
to fail.  Changing it to 3.

Bug: 181348043
Bug: 196315467
Test: Local test and verify Face Auth
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I535f0734c247b2041af0f7cc69ef8e6706c9a909
2021-08-12 20:30:53 +00:00
Yanting Yang
157a9cb111 Update MIC e-label for JP SKU of Raven
Bug: 195376206
Test: visual
Change-Id: I112fe850da9e4765c251866a98d69f3f6d8f60b9
2021-08-12 13:17:20 +00:00
George Lee
8fadec702c bcl: lower ocp_warn for tpu and gpu
Bug: 181348043
Test: Local test and verify trip point
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ifea3ea71e658b1ca0d9d87c2ca1cdb16b290a6b9
2021-08-11 01:32:04 +00:00
George Lee
f7e42d69e0 bcl: Update soft_ocp cooling device
Add cooling device for soft_ocp_warn.

Bug: 188701596
Test: Local test and check trip point
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ife680d79467d9a07e14cc890d60f35aba02c0b65
2021-08-10 23:27:13 +00:00
TeYuan Wang
3f4c1166f6 thermal: add TPU throttling for SKIN thermal optimization
Bug: 188701596
Test: Verified by emul temp
Change-Id: I37300afd1aa9678b22e7108c918b515f83347f37
2021-08-10 23:18:01 +00:00
YiHo Cheng
773ca4e2ae thermal: Update thermal table
Update pid related settings to get thermal pid control work for o6
proto.

Bug: 195617178
Test: run burn8 and emul_temp to check if pid thermal control work
Change-Id: I82e1a9271cef480b7a4cf33fe0d827316521e93c
2021-08-10 01:59:26 +00:00
YiHo Cheng
6f960da38c thermal: Update thermal table
There are two addtional OPPs for MID cpu so update power table to keep
align with dvt power table dump data to kick off MID cpu throttling in
time for thermal protection.

Bug: 195617178
Test: use emul_temp and burn8 to check throttling worked as expected
Change-Id: I2b9b3549ab97409920acdd7d0e9f1946bcf0678b
2021-08-09 18:03:09 +00:00
Bill Lin
73e2784392 Fix system icons container x-axis shift between Keyguard/Home StatusBar
Adjust the system_icons_keyguard_padding_end for O6/R4

Consider below scenario:
1. Enable/Disable multi-user: This case must have x-asix shift due to
   home StatusBar did not designed to show avator icon
2. Keyguard/Home StatusBar alignment
3. w/ & w/o privacy dot
4. w/ & w/o plug-in USB cable
5. w/ & w/o show battery percentage

Test: build and check the visual
Bug: 195670442
Change-Id: I783c026e46d7cc01839a4e56fed9fdb89ca6b194
2021-08-07 09:26:58 +00:00
jonerlin
c2e47893cb power_profile: add bluetooth power data
Bug: 195157251
Test: manual
Change-Id: I2de092b8a244d2b6e4debe4ab5590c4a6f7bf930
2021-08-07 01:58:57 +00:00
Carter Hsu
7ca7fc2c5c audio: dynamic/runtime audio capture switch
Bug: 193042612
Test: build pass and audio capture
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ief7d8137a6c636d0c71c7c7ab732dc38d4601a45
2021-08-06 20:54:48 +00:00
Roger Fang
cfaa3174c3 audio: Add command to set PCM steam wait time for voice and audio.
This control is from this patch: https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/1962616/

Bug: 194454077
Test: Playing a music then removing the USB headset
Change-Id: Ie9dbf9df13ffaee80c61e2d5da529878fde0b740
Signed-off-by: Roger Fang <rogerfang@google.com>
2021-08-06 17:14:07 +00:00
Beverly
faf942fb1d Update lock icon padding
This should not scale with density size increases b/c the
sensor size is fixed.

Test: manual
Change-Id: I84cd73992b657ee292873fd7ba4bf6e73fc6b349
Fixes: 195564809
2021-08-06 15:04:46 +00:00
David Li
3b05ee5233 audio: update Media Record Tuning Files
R4
Change list:
Update IIR2, spatial audio parameters

O6
Change list:
Update IIR2, spatial audio parameters

Bug: 195707259
Test: make -j128
Change-Id: I13e8b81faf18247266525728563adfd614a866a1
2021-08-06 10:16:30 +00:00
millerliang
f4cd1362d0 audio: adjust the latency for bluetooth output
HAL can get the device latency from bluetooth headset.
We just to set the latency of the device side.

Bug: 195166550
Test: av sync
Change-Id: Id64b7ea796ddc4de996817d0553f1855b4d9485a
2021-08-06 06:30:03 +00:00
Jasmine Cha
454ac5e61e audio: update FM table (20210805_v540)
///R4
1. HHSWB BVE fine tuning ( by new FM lib fixed - b/194775936)

///O6
1. HHSWB BVE fine tuning ( by new FM lib fixed - b/194775936)

Bug: 194775936
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I25a740c49ed85c0ac07dce6475af95453c126bad
2021-08-06 04:38:01 +00:00
George Chang
d1095a4888 Enable STNFC_ACTIVERW_TIMER
Bug: 194675064
Bug: 189064168
Test: stress tests
Change-Id: If03c0764eaff69d509002c240a8fb888ca3d66b9
2021-08-05 15:42:10 +08:00
Ted Wang
6918ecc91a Bluetooth: Oriole BT SAR tables for RoW and JP(sub 6)
Bug: 195584756
Bug: 195584422
Test: make
Change-Id: I2d01ebfe92681c593c092aa4e19aaf9a502e2a5f
2021-08-05 11:34:57 +08:00
YiHo Cheng
2e843cadf8 thermal: Update thermal table
Add hysteresis for bcl sensors to prevent genlink storm.

Bug: 191971470
Test: check trip_point_0_hyst is correct
Change-Id: I96cae3766544230d3926c2d306ec93dc355223ef
2021-08-04 16:00:21 +00:00
YiHo Cheng
eab6d2496d thermal: Update thermal table
- Add TempPath field to support force update for on-board ntc
thermistors.

- Update hysteresis for trigger sensors to prevent genlink storm

Bug: 191971470
Test: check if thermhal polling can start in time by burn8
Change-Id: I855ccee34602268315d7cd16896cba19b954d115
2021-08-04 03:32:23 +00:00
Ted Wang
3976daf428 Bluetooth: Oriole BT SAR tables for EU sub6 and mmwave
Bug: 194813540
Test: make
Change-Id: I51c5a1a18ea3d5dccf756089f2007427e07d4b72
2021-08-03 12:24:35 +00:00
Ted Wang
97d7a59eb7 Bluetooth: Raven BT SAR tables for EU sub6 and mmwave
Bug: 195263243
Test: make
Change-Id: I855ff39b18f0af58d6ac14b4384010d7b997b21e
2021-08-03 12:24:14 +00:00
Bill Lin
e5402a7297 Fix KeyguardStatusBar height not align StatusBar
Update customization for O6/R4
1. Put status_bar_header_height_kegyuard in correct folder
2. Refine system_icons_super_container_avatarless_margin_end
3. Refine the config_mainBuiltInDisplayCutoutRectApproximation xPos
4. Remove unused system_icons_keyguard_padding_end
5. Adjust window rounded corner radius to match H/W corners

Test: manual build and check visual
Test: In keyguard, launch camera and exit, check provacy dot position
Test: In Keyguard, check keyguard status bar height algin home statusbar
Test: atest SystemUITests
Bug: 194324044
Change-Id: I8856b0ae9d5124b44a3aab89b0de8d8ddbe5a4c8
2021-08-03 07:07:29 +00:00
Charles Chiu
57fc7065b6 Change vendor key to PRODUCT_VENDOR_PROPERTIES
Test: Camera CTS
Bug: 194656156

Change-Id: Ifa3f1188ae8134e6ff3e948c6ebd2d200db8181b
2021-08-03 05:52:48 +00:00
George Lee
090b93c8f9 bcl: enable batoilo thermal zone
Enable batoilo thermal zone for further bcl policy definition.
Also fix the multiplier for ocp_warn tzone.

Bug: 194240210
Test: batoilo trigger under stress test.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Idfd3efc72efaa8813a2b6c62271ce4e6fec3bca7
2021-07-30 20:49:41 +00:00
Beverly
4ac85f0083 Unregister for prox when display isn't OFF/DOZE
Test: manual
Bug: 192699858
Change-Id: Ibd44e372e0171f2eb6129df448e6b66c5b923d02
2021-07-30 12:44:43 -04:00
linpeter
ce87e291e8 raven: add blocking zone for low light
zone condition(15% brightness, 5 Lux) for 120Hz

Bug: 193087466
Test: no refresh rate change in the blocking zone
Change-Id: I4e5918ff5d829a6ad656db1c7f4993e1e8e9c23d
2021-07-30 06:14:41 +00:00
Robert Lee
755a0887fa audio: add Built-In Back Mic device
Bug: 194169487
Test: Test Diagnostic Tools microphone test

Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: Ice468e91591f5e552e733d187ade86e76896c5b5
2021-07-30 05:26:47 +00:00
Robert Lee
073ec26f19 audio: update speaker protection bins
Release notes below:

===

O6 Top:
File: "o6Top_protect_20210727_120hpf_pb6.47.0_17.5dB_120Tmax_300mRTrace_regionIII160C_ALPHA.bin"
    Phone file: /vendor/firmware/cs35l41-dsp1-spk-prot.bin
    Sha1sum: EFCB81AF9E84439BA181EB88687B922107FEAB08
    Changes: Decreased TMAX for 10C margin at peak, increased “thermal region III”
    Tests - Protection: Passed XMAX/TMAX testing
    Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
    Tests - Listening: Coupled w/ bottom speaker - In progress, non-blocker

===

O6 Bottom:
File: "o6Bottom_protect_20210726_120hpf_pb6.47.0_17.5dB_110Tmax_300mRTrace_regionIII150C_ALPHA.bin"
    Phone file: /vendor/firmware/R-cs35l41-dsp1-spk-prot.bin
    Sha1sum: FDF4F9F5DEB065DD4C34B14418B6207CE609F80C
    Changes: Decreased TMAX for 10C margin at peak, increased “thermal region III”
    Tests - Protection: Passed XMAX/TMAX testing
    Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
    Tests - Listening: Coupled w/ bottom speaker - In progress, non-blocker

===

R4 Top:
File: "R4Top_protect_20210727_120hpf_pb6.47.0_17.5dB_120Tmax_300mRTrace_regionIII160C_ALPHA.bin"
    Phone file: /vendor/firmware/cs35l41-dsp1-spk-prot.bin
    Sha1sum: 32F10EB7128C80C9E64FD34EAFB7FC247057FFDD
    Changes: Decreased TMAX for 10C margin at peak, increased “thermal region III”
    Tests - Protection: Passed XMAX/TMAX testing
    Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
    Tests - Listening: Coupled w/ bottom speaker - In progress, non-blocker

===

R4 Bottom:
File: "R4Bottom_protect_20210727_100hpf_pb6.47.0_17.5dB_100Tmax_300mRTrace_regionIII140C_ALPHA.bin"
    Phone file: /vendor/firmware/R-cs35l41-dsp1-spk-prot.bin
    Sha1sum: CF3B5900B1AC095A5546499C6EFFAF0C074A79A4
    Changes: Decreased TMAX for 10C margin at peak, increased “thermal region III”
    Tests - Protection: Passed XMAX/TMAX testing
    Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
    Tests - Listening: Coupled w/ bottom speaker - In progress, non-blocker

===
sha1sum
efcb81af9e84439ba181eb88687b922107feab08  oriole/cs35l41/fw/cs35l41-dsp1-spk-prot.bin
fdf4f9f5deb065dd4c34b14418b6207ce609f80c  oriole/cs35l41/fw/R-cs35l41-dsp1-spk-prot.bin
32f10eb7128c80c9e64fd34eafb7fc247057ffdd  raven/cs35l41/fw/cs35l41-dsp1-spk-prot.bin
cf3b5900b1ac095a5546499c6effaf0c074a79a4  raven/cs35l41/fw/R-cs35l41-dsp1-spk-prot.bin

Bug: 193902089
Test: Hardware verified

Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: I39e5988914927820b90a4c1cf2dcf709c1aac653
2021-07-30 01:21:59 +00:00
millerliang
225b713e1e audio: refine the period size for raw playback
For raw playback, the buffer size needs to equal to the
ring buffer size. AoC changes the buffer size to 16384 bytes,
but it cannot be divisible by 48(1ms frames with 48000 sample rate).
Use the period size(frame couts) from configuration file.

Bug: 194398677
Test: OboeTester->TEST OUTPUT
Change-Id: I07f0cb7d5904e4e3ef78b9a15d31590fdd5a9087
2021-07-29 16:10:07 +00:00