Commit graph

99 commits

Author SHA1 Message Date
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
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
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
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
Jasmine Cha
80f37d804a audio: update FM table (20210729_v540)
///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
2021-07-29 13:15:31 +00:00
Jasmine Cha
9609aa66fb audio: update fm tables (20210722_v540)
//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
2021-07-23 10:32:02 +00:00
Robert Lee
912f6acaec audio: update speaker protection bin
Change log:
===

O6 Top Speaker Protection:
File: "o6Top_protect_20210720_120hpf_pb6.47.0_17.5dB_withRtrace_125C_fastRL.bin"
Phone file: /vendor/firmware/cs35l41-dsp1-spk-prot.bin
Sha1sum: 033d5ad6d6be86849d74fe641c575e50425cd8c0  o6Top_protect_20210720_120hpf_pb6.47.0_17.5dB_withRtrace_125C_fastRL.bin
Changes: Decreased TMAX for 5degC margin at peak, increased thermal rate limiter attack to 0ms (fastest possible)
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 - Can hear slight change in color on compressed chorus (negative), but brings out warmth slightly (positive), and slight impact to loudness because of sharpness delta (negative)

===

O6 Bottom Speaker Protection:
File: "o6Bottom_protect_20210712_120hpf_pb6.47.0_17.5dB_withRtrace_110C.bin"
Phone file: /vendor/firmware/R-cs35l41-dsp1-spk-prot.bin
Sha1sum:  d8695fc43e1049ac2e258b37103396730016f4e6  o6Bottom_protect_20210712_120hpf_pb6.47.0_17.5dB_withRtrace_110C.bin
Changes: Decreased TMAX for 10degC margin at peak, increased thermal rate limiter attack to 0ms (fastest possible)
Tests - Protection: Passed XMAX/TMAX testing
Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
Tests - Listening: Same as top speaker comment

===

R4 Top Speaker Protection:
File: "r4Top_Protect_21.7.0_pb6.47.0_17.5dB_100hpf_withRTrace_120Tmax.bin"
Phone file: /vendor/firmware/cs35l41-dsp1-spk-prot.bin
Sha1sum:   172683183693d6df1d482f1e4f018607bc534a41  r4Top_Protect_21.7.0_pb6.47.0_17.5dB_100hpf_withRTrace_120Tmax.bin
Changes: Decreased TMAX for 10degC margin at peak, increased thermal rate limiter attack to 0ms (fastest possible)
Tests - Protection: Passed XMAX/TMAX testing
Tests - Acoustic: Passed acoustic impact testing (no much change from POR tuning in FR, reduced distortion)
Tests - Listening: No change audible, low risk

===

sha1sum
033d5ad6d6be86849d74fe641c575e50425cd8c0  oriole/cs35l41/fw/cs35l41-dsp1-spk-prot.bin
d8695fc43e1049ac2e258b37103396730016f4e6  oriole/cs35l41/fw/R-cs35l41-dsp1-spk-prot.bin
172683183693d6df1d482f1e4f018607bc534a41  raven/cs35l41/fw/cs35l41-dsp1-spk-prot.bin

Bug: 193902089
Test: Hardware verified
Change-Id: I354f99c96526f23b43b7e50f69ee550e3a5a52de
Signed-off-by: Robert Lee <lerobert@google.com>
2021-07-23 04:11:50 +00:00
Jasmine Cha
338b7bc063 audio: update Waves O6 tuning (20210723)
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
2021-07-23 09:51:04 +08:00
Yung Ti Su
3a1f1e352f audio: update audio capture tuning
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
2021-07-22 11:06:12 +08:00
Carter Hsu
3c11dab0d8 audio: update camcorder tuning 20210716
Update IIR2, MBDRC, spatial audio parameters

Bug: 193873738
Bug: 193872138
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Id3be3729b19f66d88634d4ca6a0dd1dd8bb991e8
2021-07-20 04:10:40 +00:00
Joey Poomarin Phloyphisut
96b58c1c6f audio_usb: Updating mixer_paths.xml to use V2 command to send config to AoC to support USB behind HUB.
This V2 command is from this patch:
https://partner-android-review.googlesource.com/c/kernel/private/google-modules/aoc/+/1962494

Bug: 181296179
Test: Local build
Change-Id: Ia95886ed22519f4da70e2a4880f7fb0eb9900660
2021-07-19 11:33:51 +00:00
Joey Poomarin Phloyphisut
895e3d3808 audio_usb: Add unsupported pcm format for USB accessory on Raviole.
This patch need ag/15270810 to work.

Test: N/A
Bug: 193477495
Change-Id: Ied9317fed60f1fae5a0de76ed12aec723c20a0c2
2021-07-19 07:33:28 +00:00
millerliang
eff4e0db3d audio: adjust the latency for USB Headphone
Adjust the latency for OUT_USB_HEADSET_BE_CFG

Bug: 174992590
Test: Test av sync for video playback
Change-Id: Idc1dedbbc21290106d417905832810b1ebd1c576
2021-07-14 21:27:00 +08:00
Jasmine Cha
1c4b6056e4 audio: waves: update O6/R4 MPS (20210713)
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
2021-07-13 14:42:12 +08:00
Carter Hsu
f8a04fb6d9 audio: add BT path back to the haptic output
Bug: 192910606
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Iccfb65d568a640c01177d81f8c96d2103b9fda49
2021-07-13 04:11:46 +00:00
millerliang
d2db8a5541 audio: apply RAW path for raw playback
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
2021-07-12 13:22:54 +00:00
Carter Hsu
63defab2f3 audio: update Camcorder tuning
IIR Tuning parameters for surround module were
updated in gatf file

Bug: 186721091
Bug: 181869495
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I323cfc4ca3c6e73cf621aadd3ff7e9b99482353a
2021-07-12 11:10:38 +00:00
Joey Poomarin Phloyphisut
6def5fe520 USB Audio: Add USB HiFi routing
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
2021-07-12 10:10:40 +00:00
Jasmine Cha
09e81d3bfd audio: update FM table (20210708_v540)
//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
2021-07-12 08:56:04 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
Jasmine Cha
c7dfda1d57 audio: update waves preset tables (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.

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
2021-06-03 16:49:42 +08:00
Yu-Bin Chiu
18a9190963 [MFG_API] [audio] USB headset loopback functions don't work on ROM SD1A.210602.005
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
2021-06-03 08:42:02 +00:00
Jasmine Cha
8baf515669 audio: update FM tuning table (20210531)
//O6
1. HH NB/WB/SWB EVT modification :
=> Volume curve: NB/WB/SWB SPK_VOL
=> Distortion: NB/WB/SWB RX FdEQ, NB RX TdDRC
=> Mic design change : NB/WB/SWB TX Pre-FdEQ , WB/SWB TX FdEQ

2. HA NB/WB/SEB EVT modification
3. HE TTY HCO: sync the latest of HH RX
4. HE TTY VCO: sync the latest of HH TX
5. HE Headphone : sync the latest of HH TX

Bug: 174635995
Test: manual audio test / voip

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I30d6540eacfcf2eef3caf33af58727d990646853
2021-06-02 02:14:50 +00:00
Robert Lee
cfd3523009 audio: update speaker protection bins
Bug: 181874512
Test: verified by hw
Change-Id: I94c343679d9b6b807025d0fbfe65a1593cdbe062
Signed-off-by: Robert Lee <lerobert@google.com>
2021-05-31 02:09:47 +00:00
Robert Lee
08b011f282 audio: update speaker protection bins
Bug: 179534284
Test: Manual verify speaker basic function work
Change-Id: Iaef4940f8c7500ff56dccf5de26ac29a2a875260
Signed-off-by: Robert Lee <lerobert@google.com>
2021-05-31 02:09:47 +00:00
Joey Poomarin Phloyphisut
3375ea9045 USB Audio: Enable HIFI Playback on the audio HAL part on Raviole.
Test: Test: local build test. If use highspeed usb + capture. AOC crash. otherwise, everything is normal
Bug: 182996456
Change-Id: I48958acf8dfc77fa90096fc72cd6912c460e1db2
2021-05-24 08:53:27 +00:00
Vince Leung
0a6e699f51 Revert "Remove audio-coupled-haptics support"
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
2021-05-17 18:42:34 +00:00