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
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
///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
Bug: 194169487
Test: Test Diagnostic Tools microphone test
Signed-off-by: Robert Lee <lerobert@google.com>
Change-Id: Ice468e91591f5e552e733d187ade86e76896c5b5
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
///R4
1. Headset fine tuning for QoE issue (b/194852269)
2. HHSWB fine tune for echo
///O6
1. Headset fine tuning for QoE issue (b/194852269)
2. HHSWB fine tune for echo
Bug: 194852269
Test: manual test
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I59ae8ea5ef7b4d6d25c9b684c422ee5dd28fcb30
//R4
1. HH WB mic blocked enable
2. HH SWB BVE disable
3. HA WB mic blocked enable
4. HE TTY VCO: sync the latest of HH TX
5. HE TTY HCO: sync the latest of HH RX
6. HE Headphone : sync the latest of HH TX
7. BT HAC : sync the latest of HH TX
8. HA BVE turn on in Generic settings: NB/WB/SWB
9. HA BVE turn on in TMUS settings: NB/WB/SWB
10 HE by Gene
For both R4 and O6
BB
- General
- EnableBBLowLatencyMode
- NB
- TX EQ, NS improve
- RX volume, DRC
- WB
- TX EQ, NS improve
- RX EQ
- RX volume, DRC
- SWB
- RX EQ, NS improve
- RX TDDRC change from 5 to 7.01dB
- RX volume, DRC
- FB
- TX EQ for NS
- RX volume, DRC
Google Condor
- Enable LowLatencyMode
- NB TX EQ depress low freq, increase high freq
- WB TX EQ depress low freq
Condor reservation
- same to Google Condor
Condor for sertification
- Enable LowLatencyMode
//O6
1. HH WB EVT1.1/DVT fine tuning
=> FdEQ for more headroom
2. HH WB mic blocked enable
3. HH SWB BVE disable
4. HA WB mic blocked enable
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. BT HAC : sync the latest of HH TX
9. HA NB/WB/SWB/FB Generic tuning based on acoustic structure change
10. HA NB/WB/SWB/FB TMUS tuning based on acoustic structure change
11. HA BVE turn on in TMUS settings: NB/WB/SWB
12 HE by Gene
For both R4 and O6
BB
- General
- EnableBBLowLatencyMode
- NB
- TX EQ, NS improve
- RX volume, DRC
- WB
- TX EQ, NS improve
- RX EQ
- RX volume, DRC
- SWB
- RX EQ, NS improve
- RX TDDRC change from 5 to 7.01dB
- RX volume, DRC
- FB
- TX EQ for NS
- RX volume, DRC
Google Condor
- Enable LowLatencyMode
- NB TX EQ depress low freq, increase high freq
- WB TX EQ depress low freq
Condor reservation
- same to Google Condor
Condor for sertification
- Enable LowLatencyMode
Bug: 194273785
Test: manual test (b/194273785/comment#7)
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ifb00378b6b5a9df95af82b7a1ff6256e91bd0ca3
It fixes the following bugs:
- Volume pumping on vocals with musical content(b/193867952)
- Stereo balance skewed to the left (b/193867898)
Bug: 194443833
Test: LR mixed/swap, Mute/Unmute, bypass, playback
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ic0c8a27178509aebe8ca7d295a0ed4ee4daaec00
Media recording tuning table on O6 for RC code lock.
This tuning table aimed for the adjustment on Camcorder.
Change list(O6):
1. Update IIR2, MBDRC, spatial audio parameters
Applied stage: O6 DVT
Bug: 194278836
Test: manual
Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: I873dbd2a4378fbf2b256f1f79d100234a832ed8a
Adjust the latency for OUT_USB_HEADSET_BE_CFG
Bug: 174992590
Test: Test av sync for video playback
Change-Id: Idc1dedbbc21290106d417905832810b1ebd1c576
O6:
1. significantly reduces distortion artefacts at high volumes
2. introduces bass management to balance low frequency response
across the volume curve
3. improved tonal balance at nominal volumes
4. improved landscape stereo image across the volume curve
R4:
1. This tuning improves the stereo balance between left and right
in landscape orientation, and removes the pop artefact when
rotating between portrait and landscape.
Bug: 179089856
Bug: 179089765
Test: playback, mute on/off, bypass on/off, lr swap/mixed
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I732742524ddbdd787ae86520141fb464ab01ca5a
Apply the entry point of raw path which writes data through
pcm mmap from user space to DRAM ring buffer.
Bug: 190775545
Test: OboeTester
Change-Id: I3f61126f323fcebc0a2b53c06d564b9e9e64f823
Let USB HiFi BE as a standalone bind/src command to AoC.
And fix that USB HiFi Rx no audio after the other touch
sound's UC and BE is closed.
On top of the change of pa/1959717
(pa/Ib82ff06986ebe97d472f4518aa136f32da30da66)
Test: Local test
Bug: 191222376
Change-Id: I1017aab232bd2e929dc4caa9939f0613ba937f86
//R4
1. HH FB EPD offset set to 0x0000
2. HH SWB TX fine tuning (FdEQ only)
3. HA TMUS settings NB/WB/SWB (RX+TX)
4. mute time from 200ms -> 10ms (all modes)
5. HA BVE NB/WB (Generic)
6. HA NB/WB/SWB/FB FFP on
7. HE TTY VCO: sync the latest of HH TX
8. HE TTY HCO: sync the latest of HH RX
9. HE Headphone : sync the latest of HH TX
10. BT HAC : sync the latest of HH TX
11. HA NB/WB/FB BVE off
12 Headset-USB_Blackbrid-Voice_Generic
- FB TX EQ
- FB RX EQ
13. Set //RX_FENS_RESRV_0 to be 0x000A for all scenarios on Bluetooth and Headset
//O6
1. HH FB EPD offset set to 0x0000
2. HH EVT1.1 Tuning
=> Mic design change: PreEQ NB/WB/SWB , FdEQ SWB
=> RX FR fine tuning: FdEQ NB/WB/SWB
=> Volume curve fine tuning : SPK_VOL WB (vol3 only)
3. HA EVT 1.1 Tuning
=> NB/WB/SWB/FB (Pre-EQ / TX_FDEQ / RX_TDDRC / VOL / RX_FDEQ)
4. mute time from 200ms -> 10ms (all modes)
5. HA BVE NB/WB (Generic)
6. HA NB/WB/SWB/FB FFP on
7. HE TTY VCO: sync the latest of HH TX
8. HE TTY HCO: sync the latest of HH RX
9. HE Headphone : sync the latest of HH TX
10. BT HAC : sync the latest of HH TX
11. HA NB/WB/FB BVE off
12 Headset-USB_Blackbrid-Voice_Generic
- FB TX EQ
- FB RX EQ
13. Set //RX_FENS_RESRV_0 to be 0x000A for all scenarios on Bluetooth and Headset
Bug: 174635995
Test: manual test by acoustic team
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ic76c1c9c7e9255565f5ee75e92f604723fd4c943
+ 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
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
<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>
<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
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
//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
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
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
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.
R4:
+ Improves loudness
+ Improves clarity and reduces bass distortion
+ Incorporates a landscape tuning that balances left and right speakers.
Further tuning work will improve bass response at lower volume steps and
improve tonal balance to reduce sibilance. We will also incorporate
feedback from UTD and PAE subjective studies.
Bug: 179089856
Bug: 179089765
Test: playback / mute on,off/bypass/lr switch, mixed
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I85599edfd87c4c96f1486ea68f49006bf5a871fb
Need to add a new control "USB Config To AoC" in mixer table
Bug: 190002718
Test: verify it with a new mixer table, and it works on O6
Change-Id: Ibcb43d50d0185d8b5249aa2a5620c69871b97de5
Bug: 179534284
Test: Manual verify speaker basic function work
Change-Id: Iaef4940f8c7500ff56dccf5de26ac29a2a875260
Signed-off-by: Robert Lee <lerobert@google.com>
Test: Test: local build test. If use highspeed usb + capture. AOC crash. otherwise, everything is normal
Bug: 182996456
Change-Id: I48958acf8dfc77fa90096fc72cd6912c460e1db2
This reverts commit fd3f417352.
Reason for revert: functional implementation of audio coupled haptics feature working again
Bug: 178431048
Test: manually verify audio-coupled-haptics is working for Pixel
ringtones on P21 devices
Change-Id: Ibda582e6b4f95dcf9bd5497dbc3580eb1569f9a2