Commit graph

316 commits

Author SHA1 Message Date
Jasmine Cha
7d716fef59 audio: waves: update R4 tuning table (20210701)
+ Bass management improves the frequency response at
  volume steps 23 and below.
+ Improved gain staging for clarity, dynamics and removal
  of distortion artefacts
+ Improved stereo balance and bass in landscape
+ Removes tuning bug that applied too much gain correction
  on quiet audio.

The portrait and landscape stereo tunings are retuned, but there
is no change to the speaker-safe tuning for notifications and
ringtones which are performing well.

Bug: 179089856
Test: playback mute on/off, bypass on/off, lr swap/mixed.

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I85c9347435a5baa43c20b4eb5dbd630efb502a4c
2021-07-02 09:10:44 +00:00
George Chang
8af3cb55f4 Update NFC Settings
Enable HAL clock control

Bug: 187007386
Test: manual
Change-Id: Idb89c72a41e9f56ea7952e6a28048510df6d4ae3
2021-07-01 11:37:06 +00:00
Cheney Ni
ab9201613b Bluetooth: Enable AAC VBR by default
AAC VBR is more preferred than CBR for A2DP playback.

Bug: 192203000
Test: dumpsys bluetooth_manager
Change-Id: I8f758c102164da9936de7ddc0bb46e0a99279359
2021-06-30 04:24:42 +00:00
Michael Ayoubi
ea3372d22e Update ro.gms.dck.eligible_wcc Property for R4.
Bug: 191415586
Test: Build

Signed-off-by: Michael Ayoubi <mayoubi@google.com>
Change-Id: Iaa7e6fa3ff96bcb794afd7ee908e40f559614aa5
2021-06-30 02:54:06 +00:00
Long Ling
5f50ac9ca0 display: update device color data
Bug: 191467644
Change-Id: I6d1aea14b458c4dfedade2949d765e0e79faf339
2021-06-30 00:18:55 +00:00
Ken Huang
876864edfe raven: control panel_idle via kernel idle property
Bug: 190572787
Test: force refresh rate to peak or 60Hz
Change-Id: I5f25e2e8a79420bbcc74d047aa9234ad21911255
2021-06-28 06:04:49 +00:00
millerliang
0d481528c0 audio: adjust the latency for output and input
Change the period size to 20 for audio record.
Otherwise it will apply fast capture.
Fast capture timestamps are not supported yet.

Bug: 190453606
Bug: 189793417
Test: Test av sync for camera recording
Test: Test av sync for video playback
Change-Id: Ic7225979a411f6fdef1e5869df7f816bd49003b1
2021-06-25 13:44:27 +00:00
Peter_Liang
55f8b7c6de Update the latest voice packs of Text-To-Speech and configs for
Oriole and Raven.

Bug: 177494787
Test: manual test
Change-Id: Ic764e003ddeddb10a9f807be04ed8a3761b6eef9
2021-06-25 08:26:35 +00:00
Robert Lee
12a5e8f467 audio: update audio table
<Change List>
For audio_platform_configuration.xml to both O6 & R4,
1. Add below devices for input_backend_cfg_mic_mapping to fix b/188696633.
     - <backend_cfg in_cfg="IN_CAMCORDER_INVERT_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_PORTRAIT_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_INVERT_LANDSCAPE_BE_CFG">
     - <backend_cfg in_cfg="IN_CAMCORDER_SELFIE_PORTRAIT_BE_CFG">
     - <backend_cfg in_cfg="IN_VOICE_RECOGN_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_DUAL_MIC_BE_CFG">
     - <backend_cfg in_cfg="IN_UNPROCESSED_TRIPLE_MIC_BE_CFG">

<Validation Results>
All the regression are positive, which is validated based on SD1A.210614.001 build.
1. Fix freeze issue when running Diagnostic Tool for microphone test.
2. Built-in mic capturing with expected gain setup and active mic numbers in different mic source(mic/VR/unprocessed/camcorder).
3. Built-in speaker playout with expected gain setup in speaker & speaker-safe mode.
4. Both uplink & downlink for telephony works in HA/HH mode.

Bug: 174448901
Test: Builds pass and verified by hardware
Change-Id: Ifb14911eb25ef2b0f42d29b609ae6f9b74ddaa44
Signed-off-by: Robert Lee <lerobert@google.com>
2021-06-25 07:41:20 +00:00
Jasmine Cha
fbdf38a954 audio: update FM tuning tables (20210624_v540)
Changlist:
R4
1. Handset NB/WB/SWB/FB EVT tuning
2. Add HA ECNS_off-FB / EC_off-FB / NS_off-FB
3. Add HH ECNS_off-FB / EC_off-FB / NS_off-FB
4. Handsfree NB/WB/SWB/FB EVT tuning
5. TTY VCO: sync the latest of HH TX
6. TTY HCO: sync the latest of HH RX
7. Headphone : sync the latest of HH TX
8. USB_BlackBird: fine tuned
9. Google_Condor: sync tuning

O6
1. Handset NS optimization: NB/WB/SWB
2. Add HA ECNS_off-FB / EC_off-FB / NS_off-FB
3. Add HH ECNS_off-FB / EC_off-FB / NS_off-FB
4. Handsfree NS optimization: NB/SWB
5. TTY VCO: sync the latest of HH TX
6. Headphone : sync the latest of HH TX
7. USB_BlackBird: fine tuned

Bug:174635995
Test: voice /voip call

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I5cc0bec1131e5cf3c921a832e9a9211af9704fda
2021-06-25 06:18:17 +00:00
Calvin Pan
0baeebd8f5 Update ./DevInfo/Mod model name
Bug: 191961582
Test: Build pass
Change-Id: I60fb9d0d4487a3b7ccfc2152cb90cc9df808a4a9
2021-06-25 02:12:11 +00:00
Ilya Matyukhin
a8f6e24b37 Remove access to the LHBM node from SystemUI
Bug: 183223359
Test: on device
Change-Id: I56cdc5ab4654ac523b4a80f270d5567aac16cdc7
2021-06-25 01:12:52 +00:00
TeYuan Wang
bf198b780e thermal: optimize trigger sensor settings
1. Reduce the polling time to 60s to reduce the lantancy when ThermalHAL
miss the trigger sensor's notification.
2. Adjust the trigger sensor's threshold to lower temperature.

Bug: 191971470
Bug: 191795038
Test: adb shell lshal debug android.hardware.thermal@2.0::IThermal/default

Change-Id: I2559944dfdef684ee93867a15dea257ee5f435b9
2021-06-24 23:52:31 +00:00
Chris Kuiper
dab5283046 auto-brightness: Change light debounce for R4/O6
This reduces the brightening and darkening light debounce
configuration to match R3 and earlier Pixel devices.

Bug: 185770517
Test: Verified "dumpsys display" shows correct config values.
      Verified brightness transitions are similar to R3 now.

Change-Id: I6bd47cb52c28c63ece6b5247344a6cf062eb31ea
2021-06-23 22:52:45 -07:00
TeYuan Wang
be012113bb thermal: update thermal table
1. Update charging throttling policy according to the new kernel change
2. Adjust the virtual sensor formula for 5G cases.

Bug: 182970733
Bug: 183559513
Bug: 190449889
Bug: 190450703
Test: Verified by emul temp
      adb shell lshal debug android.hardware.thermal@2.0::IThermal/default
Change-Id: Ieb859c93cdfa7486ad199af21b57db0732c24006
2021-06-23 23:09:44 +00:00
Gil
9dd59a9dda [Display] Re-mapping the Default Brightness
Update the Default brightenss to 0.17429718 for mapping to 140 nits

Bug: 187917731
Test: Dump the display log and check mScreenBrightness
Change-Id: I9836a2dd0127c881b0eceb4d2c908bb52ea709e7
2021-06-23 07:41:19 +00:00
Long Ling
aaf6f6360a display: add O6 golden calibration profile
Bug: 189988531
Change-Id: I9e502c3927cd3f686e3ca8e4b52f867cef900b2e
2021-06-23 02:18:35 +00:00
Lais Andrade
354c1e7fad Set audio haptic channel amplitude limit
Bug: 188025353
Test: manual
Change-Id: I9609d812c11f08990c68d73cff20bc1a738f4174
2021-06-22 17:02:18 +00:00
Carter Hsu
12f1ede6b1 audio: add echo reference input
Bug: 188005303
Test: capture the echo reference
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I28c6ceb2e3f719bbd7d24e4301704742933042a4
2021-06-22 12:13:19 +00:00
Carter Hsu
fb03700852 audio: add echo reference input
Bug: 188005303
Test: capture the echo reference
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ie7e69b7c56801395e03280dd2415842b7f22f898
2021-06-22 12:13:19 +00:00
YB Chiu
8ae9e16235 FBF:mixer_table: mic soft gain config for O6/R4/W3/Slider
Add mic1 ~ mic4 soft gain configuration

    <path name="mic1-sw-gain">
        <ctl name="MIC Record Soft Gain (dB)" />
    </path>
            :
            :
    <path name="mic4-sw-gain">
        <ctl name="MIC Record Soft Gain (dB)" />
    </path>

Bug: 190822301

Test: build pass

Change-Id: Ia5f35fff6cea22d6dfafa8c76e50d3e16cacbbcf
2021-06-22 08:29:42 +00:00
Jimmy Shiu
7700cf01b9 adpf: set adpf.rate to device max refresh rate
For raven, set the set vendor.powerhal.adpf.rate to 8.3ms
For oriole, set the set vendor.powerhal.adpf.rate to 11.1ms

Bug: 177493042
Test: build
Change-Id: I1f535105f66d6bf34025f3c11d94c83d69c730da
2021-06-19 04:00:51 +00:00
Ilya Matyukhin
de356bd0af raven, oriole: overlay UDFPS illumination transition time
Bug: 189130534
Test: perfetto
Change-Id: Iec7fe726197a2b23547739a8e96824362aa76fc4
2021-06-18 19:52:48 +00:00
Carter Hsu
d138225fcf audio: update R4 camcorder tuning 06/17
Change list:
Tuning parameters for surround module were updated in gatf file

Bug: 186721091
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I2e86c2e95d603fa3adcf500423734fc7f8f5837f
2021-06-18 07:48:23 +00:00
Robert Lee
22a0ab12df audio: update speaker protection bins
Bug: 179534284
Test: Audio hardware verified
Change-Id: Iacbcca51ba787dd4e213b91922c940df5e2d6b5f
Signed-off-by: Robert Lee <lerobert@google.com>
2021-06-18 05:36:24 +00:00
Bill Yi
f4c78e58df Remove two APKs from vendor blobs list
Change app to priv-app for ShannonRcs
Add owner

BUG: 182332166
TEST: generate blobs
Change-Id: I92dd30d3eea0d173418a8d06872cb4ac25b9d668
2021-06-17 23:41:54 +00:00
Rios Kao
e537b06099 audio: update Raven/Oriole mixer path to V2.2
<Change List>
For mixer_paths.xml to both O6 & R4,
1. Add default value for "MIC Record Soft Gain (dB)" control  to accommodate with b/189498328.
2. Update below path name to move compensation gain from "MIC HW Gain At High Power Mode (cB)" to "MIC Record Soft Gain (dB)" to fix recording concurrency issue(b/189294476).
     - <path name="handset-mic">
     - <path name="speaker-mic">
     - <path name="camcorder-mic">
     - <path name="voice-recog-mic">
     - <path name="unprocessed-mic">
     - <path name="unprocessed-dual-mic">
     - <path name="unprocessed-triple-mic">

<Validation Results>
All the regression are positive, which is validated based on SD1A.210614.001 build.
1. Built-in mic capturing with expected gain setup and active mic numbers in different mic source(mic/VR/unprocessed/camcorder).
2. Built-in speaker playout with expected gain setup in speaker & speaker-safe mode.
3. Both uplink & downlink for telephony works in HA/HH mode.

Bug: 174448901
Test: basic record pass
Change-Id: I3f7759e6998f419a3d7d87b032d8088f5bc7dac0
2021-06-17 05:12:46 +00:00
Daniel Mentz
27b1c03c5b Remove BOARD_VENDOR_RAMDISK_KERNEL_MODULES_FILTER variable
Previously, we defined a list of kernel modules that should be
excluded from the vendor_boot image. (Those modules are loaded
from the vendor_dlkm partition during second stage init.)

Going forward, we import a list distributed by the kernel build that
explicitly defines the kernel modules to included in the vendor_boot
image.

Bug: 190652328
Change-Id: I8d67bfdaa121ddd82dc9e493c9b18cebdc05233c
2021-06-17 03:57:10 +00:00
David Li
00eb5c2a60 audio: add dynamics_processing to audio_effects.xml
Bug: 187144478
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.DynamicsProcessingTest"
Change-Id: Id3ca6f6ef76a00a94d72150bcf3c4873478626ea
2021-06-16 01:56:43 +00:00
Ted Lin
317f221521 Remove the attribute set from init.rc for debugfs
[    2.993897] audit: type=1400 audit(1623037840.652:4): avc:  denied  { setattr } for
pid=374 comm="init" name="registers" dev="debugfs" ino=9 scontext=u:r:vendor_init:s0
tcontext=u:object_r:vendor_regmap_debugfs:s0 tclass=file permissive=0

Bug: 190337297
Test: check bugreport
Change-Id: I0a2375bb5c3e1eef63eeaec65093ad53cf8fe02d
Signed-off-by: Ted Lin <tedlin@google.com>
2021-06-15 02:51:32 +00:00
Carter Hsu
f9d90fe79b audio: update audio capture tuning
1. Support more camcorder tuning with different channels
2. Update the latest params on WNR, SUR, Linear gain, MBDRC module.

Bug: 181869495
Bug: 186721091
Bug: 174448901

Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I969b9bbb6a3fd74206dfc0bf385d9ebc1fddf194
2021-06-13 02:00:07 +00:00
George Lee
604aa67bcf thermal: add soc to thermal HAL monitoring
Oriole WHI A updated.

Bug: 188365095
Test: Confirm throttling based on criteria matched
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ic3dcb7ed7af8aa40f56087fa72603e21c5c6b1ec
2021-06-11 15:51:48 +00:00
Edwin Tung
f3caaf71bf Update gps currents based on the measurement.
Bug: 186995059

Test: manual
Change-Id: I7d4788af5cddb7d020b5d2188395cadc72bff144
2021-06-11 09:19:08 +00:00
linpeter
c4a2ca604d oriole: update blocking zones
Set Zone 2: < 30 Lux and UI brightness 45%. Lock 90Hz
Set Zone 3: > 50,000 Lux and UI normal brightness 100%. Lock 60Hz

Bug: 187929149
Bug: 190018500
Test: no refresh rate chagne in the blocking zone
Change-Id: Iffe10c76cfff1c8eac9361e68a10377d26b48d10
2021-06-11 04:19:03 +00:00
Jasmine Cha
eee11aea25 audio: update FM table (20210610)
remove
- HA ECNS_off-FB / EC_off-FB / NS_off-FB
- HH ECNS_off-FB / EC_off-FB / NS_off-FB

Bug: 174635995
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6f3295f63022695fec778ccf8993ea4954541db3
2021-06-10 14:26:51 +08:00
Carter Hsu
221629670f audio: fix xml tag name
Bug: 188606492
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I6fbc2e17bc11c19b224e472b868627ee9d110369
2021-06-10 06:22:22 +00:00
Jasmine Cha
10328be209 audio: fm: update tuning table (20210608)
//O6
1. HA NB/WB/SWB/FB : Mic blocked paramter temp disable
2. HH NB/WB/SWB/FB: Mic blocked parameter temp disable
3. HA FB EVT modification
4. HH FB EVT modification
=> Mic design change : FB TX pre-FdEQ
=> RX Distortion : FB RX TdDRC, FdEQ
=> Volume curve : FB SPK_VOL
5.  HE TTY VCO: sync the latest of HH TX
6. HE TTY HCO: sync the latest of HH RX
7. HE Headphone : sync the latest of HH TX
8  HAC TX: sync the latest of HA TX
9. HE blackbird: Modify TX operation mode, low-delay and Handfree
10. HE Condor: Modify TX operation mode, low-delay and Handfree
11. HE Condor-Certification1: Modify TX operation mode, low-delay and Handfree

//R4
1. HA NB/WB/SWB/FB : Mic blocked paramter temp disable
2. HH NB/WB/SWB/FB: Mic blocked parameter temp disable
3. HE TTY VCO: sync the latest of HH TX
4. HE Headphone : sync the latest of HH TX
5. HAC TX: sync the latest of HA TX
6. HE blackbird: Modify TX operation mode, low-delay and Handfree
7. HE Condor: Modify TX operation mode, low-delay and Handfree
8. HE Condor-Certification1: Modify TX operation mode, low-delay and Handfree

Bug: 174635995
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I55824022f4e15c9f62b8624d390febf1195499da
2021-06-09 08:07:44 +00:00
David Chao
0a57e6a96d thermal: Support thermal-hal to sent powerhint
Add prorperty so thermal-hal can sent powerhint.

Bug: 188579571
Test: thermal-hal can sent powerhint.
Change-Id: Ia38d7c56638d4ed88eedde1ed94ad8ac1e64e351
Signed-off-by: David Chao <davidchao@google.com>
2021-06-09 07:46:25 +00:00
Peter Liu
9894ef8b55 camera hfr: add 720 high speed profile
Bitrate refers to b/185145849

Bug: 190098711

Signed-off-by: Peter Liu <pingchienliu@google.com>
Change-Id: I00818dbbbe83157e009e61d15fbf6bd878b5d2be
2021-06-08 17:39:00 -07:00
Cyan_Hsieh
f3cb3c16fd Set audio.camerasound.force for JP devices
Test: set to JP sku and check No camera sound option
Bug: 188396079
Change-Id: Ic89a150701de17fb29130206c2e25ec929972e25
2021-06-08 16:46:27 +08:00
Jasmine Cha
2797625cf8 audio: update O6 Waves preset (20210603)
O6:
 + improves loudness
 + improves clarity
 + incorporates landscape tuning with good left-right balance
 Tuning work will continue to improve transient performance at max volume,
 and incorporate feedback from UTD and PAE tests.

Bug:17908976
Test: playback/mute on,off/bypass/lr swap, mixed

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib038235997abe417449dc9db96fe42a2700307fc
2021-06-08 06:25:41 +00:00
David Li
8132cc2f27 audio: upgrade audio.usb.default from v1 to v2
Bug: 187912470
Test: make -j128
Test: deep buffer and compress offload via speaker, USB headset, BT
earphone
Test: phone call via handset
Test: hotword detection

Change-Id: I80ec553797ff7955de0464b98046f879424d0fc5
2021-06-08 06:14:43 +00:00
Ching-Sung Li
05395df7df Build Oriole default CMF color wallpaper
Bug: 169538193
Bug: 181086817
Test: Build pass; Manual
Change-Id: I36e773f0623e5bf4303b832dd5a96d81b160d014
2021-06-08 03:07:42 +00:00
Jasmine Cha
5fdaa9607c Revert "audio: update waves preset tables (20210603)"
This reverts commit acc536dd2588d2f5c74733c82c02cb83f0a8278d.

Reason for revert: unexpected loud touch/unlock sound from b/190395012

Bug: 190395012
Change-Id: I1197e76487f2cd92e88cbc44c26d003149953b60
2021-06-08 01:46:51 +00:00
Carter Hsu
2981a45d6c audio: enable stereo AAC encoder
Bug: 180984359
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: If44fb1012921e658dd2eb91771208c09fdff15cd
2021-06-07 07:25:51 +00:00
Jia-yi Chen
79a3b702d4 thermal: Update thermal config
1) Update VIRTUAL-QI-GNSS formula for Oriole
2) Lower shotdown threshold by 1C for Oriole
3) Disable charging at SEVERE for Oriole & Raven

Bug: 189888812
Bug: 190201749
Test: Boot
Change-Id: Iffc42a6f90935a8f1361bc04aeb08743b839aadc
2021-06-04 21:08:15 +00:00
Blake Kragten
9d6c2d97ac Fixing Cellular-Emergency Hysteresis
Bug: 190115475
Test: On Device Testing
Change-Id: I9751d156c0edb14503748e2efd3ee5e8c9c6dad3
2021-06-04 19:15:39 +00:00
Joey Poomarin
6facc05f47 USB Audio: Enable HIFI on the audio HAL part on Raviole.
Kernel Change: pa/1887451

Test: N/A
Bug: 182996456
Change-Id: Ia62f8a0b8b0c57270a3c8ed82cb64a79fbcbfe79
2021-06-04 10:52:21 +00:00
Bill Lin
964bf23b74 Enable One handed mode feature for Oriole and Raven
Test: check settings > system > gesture > one handed mode
Test: make
Bug: 189926639
Change-Id: Ia6e51f05541e1ab31a3a98159fa805e4bc0412e1
2021-06-04 04:41:46 +00:00
David Chao
b1fa4b7102 thermal: update number of State2Power for thermal-hal
Bug: 189488358
Test: thermal-hal init and works properly.
Change-Id: I10700fcd082df9b904f6f06eaedd536e8386633f
2021-06-03 17:51:40 +00:00