Commit graph

150 commits

Author SHA1 Message Date
Carter Hsu
5be86751cf audio: FM table check in for QPR1
1. C10/P10 Bluetooth (Gene)
    1. Unify all RX FENS RX_NS_LVL_CTRL to be 0x0006
    2. Make RX Stereo process for VoIP call (RESERVE2-SWB)

Bug: 303349920
Test: Acoustic team verified at b/303349920#comment4
Change-Id: I6d03af768a46a348f51ab0acfe9fe0e26d1d37bb
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-10-05 01:15:23 +00:00
Carter Hsu
6653a16559 audio: FM table check in for QPR1
P10/C10 for Kid's voice for all user-cases
Index 526 TX_DR_RESRV_7 0x0000 -> 0x122E
Index 527 TX_DR_RESRV_8 0x0000 -> 0x1100

Bug: 299580663
Test: Verified by test build, b/299580663#comment5
Change-Id: I420685747c8c6b40fe6792455fce1fc82b41c460
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-09-13 00:46:33 +00:00
Poomarin Phloyphisut
19efcc629d [USB Audio AIDL] Fix wrong capture path on mixer_paths.xml
Bug: 299388175
Test: Local Test
Change-Id: I99ce22a3a1e8f408b13c4668288ecb8c63f2a575
2023-09-12 03:48:22 +00:00
Yung Ti Su
82ae84c78e add mixer path for BT SCO voice call
Bug: 297794937
Test: manual

Change-Id: I58b9d89626b08a39ba3fe86a0ff8862766e9c9fa
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-09-01 02:35:30 +00:00
Yung Ti Su
d2b2c350c3 [AIDL] Add mixer paths for BT
Bug: 293221641
Test: manual

Change-Id: I38bd6eaebf5374d352a3983e6ccb9234d7b7da47
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-08-28 17:58:47 +00:00
yixuanjiang
5d41e71926 audio: P10/C10 Media Record tuning update for QPR
Update MBDRC and AGC settings

Bug: 297344865
Test: verify by HW Carter
Change-Id: I9062042c34d4e087b718ae5e2144a077b03523e5
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-08-28 11:26:33 +00:00
Poomarin Phloyphisut
58e2448077 [USB Audio AIDL] Add mixer_paths for usb audio.
Test: Local Test
Bug: 274870625
Change-Id: I84c90997818bd3da33a09218c84222ebaa244bed
2023-08-24 05:49:47 +00:00
David Li
496610de58 audio: new AIDL configuration xml
Bug: 206737711
Test: mm
Change-Id: I6705dc56713296eff5c73f0302f7c94290b34884
2023-08-09 01:56:32 +00:00
Rios Kao
f81aa4e16a aidl: sthal: add support for aec record in mixer table
note: This table is only used by AIDL Sthal.

Bug: 291186942
Test: end-to-end enable path by quick phrase.
Change-Id: I11ca64f250dc2ca7882943ffad32689fe9e1bf33
2023-07-18 07:39:03 +00:00
Jasmine Cha
d1a42e4b42 audio: move controls for acoustic shock and battey throttle.
Bug: 274373213
Test: manual voip test/ device, host test
 vendor.google.whitechapel.audio.hal.audio.tuner_device_tests
 vendor.google.whitechapel.audio.hal.audio.tuner_tests

Change-Id: Ic21853be13de8553af29b12b8832449e0f5c427f
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-30 01:36:06 +00:00
Jasmine Cha
317a1bd1b4 audio: control current limit specifically
This value will be changed by battery throttling, so separating this
from reqular path control.

Bug: 274373213
Test: manual test

Change-Id: I4273f86e39d015a6489590b0aafbdd77ca3c3050
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-15 08:51:09 +00:00
Carter Hsu
33ed39e3e6 audio: Stereo DL for BT use case during VoIP
Bug: 281626330
Test: verified by acoustic team
Change-Id: I7990d50093996ea32fd6ee0c00490bf1f722f797
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-06-12 03:23:36 +00:00
David Li
951ffccbc6 audio: update audio AIDL config files
- remove audio_policy_configuration.xml
 - add in-call-capture paths
 - add "PCM Soft Ramp" for speaker amp
 - set default "Digital PCM Volume" to 0

Bug: 206737711
Test: mm
Change-Id: Id061ab2f80975dc1452a30537b82b6b474984fd3
2023-06-06 01:04:28 +00:00
Tai Kuo
936e070710 Revert "haptics: update hapitcs sink and slot setting" am: 17eaf1af2a am: 6b76a78746
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/23259447

Change-Id: Id1c6b7a5c287b67511864ed3cc94871f12eb5dd7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-01 07:34:33 +00:00
Tai Kuo
17eaf1af2a Revert "haptics: update hapitcs sink and slot setting"
This reverts commit 8b8cf4cab4.

Bug: 278018625
Test: Check audio coupled haptics at the sound preview app.
Change-Id: Ifa4f55c0b2de85bee9cc4c3e1a642c54cf5ea44a
2023-06-01 04:39:21 +00:00
Rios Kao
596f42de85 pantah: add sound_trigger_tap and hotword_lookback_capture
note: add path for new use-case
      sync diff from P23.

Test: end-to-end test with test apk
Bug: 259455755

Change-Id: I8538b8a437413c1883259ca0c0aab26f0d824605
2023-05-19 05:56:27 +00:00
Rios Kao
f556de9f1f audio: add smartfeature table for chre tuning
note: add smartfeature.gstf that only used for Hotword
      pipeline in AoC which is sharing to chre usage too.

      On WHI_PRO
        CHRE PDM Gain(gain=158)
        CHRE AEC Gain(gain=-42)
        CHRE SRC AEC Timeout(timeout=0)
      This table also contains hotword gain control as
      Non Eraser gain (gain=220)
     Eraser Post Gain (gain=220)

Test: end-to-end verify by CHRE
      using aoc_audio_cfg to query gain as below

      adb shell aoc_audio_cfg hotword_get_non_eraser_gain
      adb shell aoc_audio_cfg hotword_get_eraser_post_gain
Bug: 271078701

Change-Id: I14ee4856887d6a6587b34733288a76c305c271dc
2023-04-28 02:17:26 +00:00
Jasmine Cha
955862ddf2 audio: update aidl platform config
- Add spatial_capture_conditions since this conditions will be different
  by each project.

Bug: 267548143
Test: manual test

Change-Id: I05e6124dad0afed267ec1caa2f469312589a7d73
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-04-21 06:26:32 +00:00
Poomarin Phloyphisut
b2bfcf6b59 [USB Audio] Enable 192k support sample rate to hifi usb
related cl: ag/22549253

Test: Local Test.
Bug: 198122814
Change-Id: I518671e5196c65a1a764aeae73d0a2ae01e14645
2023-04-18 17:17:26 +00:00
Jasmine Cha
22da5b272a audio: update table
- move control Mic Spatial Module Enable to code.
- add camcorder mic setting.
- move definition of Waves instance id number to code.

Bug: 206738075
Test: manual test/ host test
 vendor.google.whitechapel.audio.hal.audio.tuner_tests

Change-Id: I8ba5dee5a6f5a25f1b208a8cd305a0f9141b5e8a
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-04-18 05:13:20 +00:00
David Li
14235c553e audio: reorg aidl_config and add voice call paths
Bug: 206737711
Test: mm
Change-Id: I465b1beb2156f63823f944350e62138cfdced3cf
2023-03-26 16:01:44 +00:00
Carter Hsu
6dc1cbc426 Fortemdia: update kid's voice performance am: 235968785d am: 73e2b77cb1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/22194144

Change-Id: Ic9f98743d623ebf45147d9c9e4c44bcf50554e5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 01:54:23 +00:00
Carter Hsu
235968785d Fortemdia: update kid's voice performance
Bug: 274729450
Test: Verified by Acoustic
Change-Id: Ie1de856a127d9bf4b4f0b196274aa4d8df584c91
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-03-22 16:36:18 +08:00
Carter Hsu
f2d36eb88e audio: FM table check in for QPR3 am: 23f8317aca am: d144595f5b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/21950300

Change-Id: Ia3e97d55b214959e540ac7cd329ac00e1673df20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 02:21:24 +00:00
Carter Hsu
23f8317aca audio: FM table check in for QPR3
[Change list]
P10/C10 HA (Ricky)
1. SWB subjective optimization tuning for issues
2. HA/Custom1(NR-off): Enable non-linear EC with light NR for GCA feature

Bug: 272659296
Test: Verified by Acoustic team
Change-Id: Ieec34a2352f3e85db05b7e2b86c837d0c30f6e29
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-03-16 01:03:03 +00:00
David Li
a0cd8baade audio: add compressed offload to the AIDL audio_policy_configuration.xml
Bug: 270552159
Test: n/a
Change-Id: I950774fb0d5ab6571e34e83ebdab53d0dab4dec7
2023-03-07 11:09:15 +00:00
Rios Kao
2cac090b40 soundtrigger: aidl table for P22
Test: verify with test build.
Bug: 206738138
Change-Id: Ie3624b037b07b3384b97ca89eed3c018f752b6de
2023-03-01 06:41:52 +00:00
Jasmine Cha
390f5dd1ef audio: create aidl test config
Bug: 206738075
Test: build pass

Change-Id: I8438c0779f54c8333eaca03745180c6922380b8f
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-01 05:55:22 +00:00
Tai Kuo
8b8cf4cab4 haptics: update hapitcs sink and slot setting
Bug: 270023634
Test: trigger audio coupled haptics via sound picker app
Change-Id: Ie55c7d980a56c9c00230f434820750633f62d25e
2023-02-28 14:31:42 +00:00
Carter Hsu
33206c45da audio: Fortemedia Tuning Check in for kid's voice
Bug: 270104065
Test: verified by acoustic team
Change-Id: I43a1316a957c073557fc1bc3f97772446818f398
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-02-24 01:32:50 +00:00
Carter Hsu
8c97fa9def audio: update Fortemedia tuning TM-QPR2
Change List:
<<C10/P10>>
1. HA/HH mode, NB/WB/SWB, AMS threshold optimization
   for issues (b/254752460) (b/254208340)
2. HH mode, VOIP, NS performance optimization for issue
   (b/260468055)
3. HA/HH mode, NB/WB/SWB, Mic health detection optimization
   for library updating (b/260791312)
4. Sync TX setting from HH to BT-HAC/TTY VCO/Headphone mode

Bug: 261830486
Test: Acoustic team verified
Change-Id: I00709ebff795deda6ea86def32af3747f20cbb39
Signed-off-by: Carter Hsu <carterhsu@google.com>
2022-12-15 00:32:33 +00:00
millerliang
fc90c04395 audio: add missed camcorder be_cfg in dsp latency
Some 3rd party app may use one or three microhpne(s)
to do the camera recording.
Add these two configurations to UC_AUDIO_RECORD to sync
the audio and video of the recoreded video.

Bug: 260824124
Test: Reporter verified
Change-Id: I9866f83cf50903476ad448ccd5ca3005ae673499
2022-12-05 16:24:12 +08:00
millerliang
ef2aca58fb audio: remove spatial audio configuraion in speaker path
Remove spatial audio configuration in speaker path
to match the rule.

Bug: 247415765
Test: spatial audio playback
Change-Id: Ib6de42e0cf9b97fb47781eb4fee9541c841b89c3
2022-11-07 07:26:44 +00:00
Carter Hsu
3e5292e267 audio: allow Fortemedia to notify setting to CCA
Bug: 237720492
Test: voice-call
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1a0cfc5511beddb153c7c627f691bdf53b457b5d
2022-09-23 02:53:09 +00:00
Carter Hsu
6bfef6ec31 audio: Update Fortemedia tuning for QPR1
1. HH:
      a) fine-tune FFP parameter in NB/WB/SWB
      b) Align same parameter:  Handsfree RX to HCO RX

Bug: 247914164
Test: Acoustic team verified b/247914164#comment4
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia1bac933cd2998c76316c3a599a23c4d5dced04c
2022-09-23 00:49:01 +00:00
vincenttew
4d0d8925d9 audio: extand the period number of hifi usecase
extend this to prevent alsa trigger stop playback
and causing pop

Bug: 238056484
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I1c3e3f68aa63acbc520ddf5f758615c99f1ef9f8
2022-09-20 15:20:09 +00:00
Carter Hsu
d30b8191ec audio: enable USB clock boost on SWB voice-call
Bug: 245421488
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Iddb6e4c94338afa8998791091e6bf4637d648ba1
2022-09-14 01:05:30 +00:00
Jasmine Cha
bd90823a92 audio: update FM table
1. Handset : Sync SU0 setting to QPR
2. Headset :
    a) Modify RX DRC to compress the noise floor which is coming from 8 bit process on CCA
         for all of BT modes with NB/WB
    b) Consistent mixer setting for RX1 and RX2:
         BT disable mixer on RX2
         Headset disable mixer on RX2
    c) Low RX FENS on BT
         #CASE_NAME        BLUETOOTH-BTNB-RESERVE2-SWB
    d) Enable RX low latency to compensate the long delay
         For Headset modes
3.Handsfree :
    a) modify Light NS for cust2
    b) sync SU0 setting to QPR

Bug: 245658052
Test: manual test b/245658052#comment4

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia833a0e63c85503cec8af8ec3864c588e6414e6a
2022-09-14 00:52:47 +00:00
juyuchen
d7a8fe331c audio: enable gapless offload for trimming data
Bug: 233723867
Test: manual audio tests
Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: Ia346acd9c53282098df25c31fa67bf4ef4e329b6
2022-09-01 15:06:21 +00:00
Carter Hsu
d1e2c603d0 audio: FM table check in for SU0 am: 307211b372
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19594852

Change-Id: I5ea15ac206ae5ba7de4a625bdfa6d69eaa719de1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-01 12:35:18 +00:00
Carter Hsu
307211b372 audio: FM table check in for SU0
[Change list]
1. fix AMS mistriggering problem in SU0

Bug: 241723468
Test: Acoustic team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I367166a0637e0071a1ef16f654f4b74bc0408854
2022-09-01 09:08:55 +00:00
millerliang
5de969c27e audio: adjust the latency for immersive playback
To meet the av sync, we need to adjust the uc latency
for immersive playback.

Bug: 243645548
Test: Test with av sync video
Change-Id: Iac25dc58032dc9b070885c7c425d00b6d2c98c4c
2022-08-29 03:38:26 +00:00
millerliang
a85e8a9faf audio: adjust the latency for av sync result
Adjust the latency for BLE audio and others for av sync result.

Bug: 241898786
Test: Play AV sync video
Change-Id: I3ed43eac0b2e3a4d7ca9e8c8003654d3b0ba4e3a
2022-08-11 19:48:02 +08:00
Carter Hsu
ac1b92c374 audio: fix VoIP call volume steps am: e031c2000c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19499321

Change-Id: Id4d0958bb63d5ccc23400c7a672839a9db2c5360
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-05 02:22:22 +00:00
Carter Hsu
e031c2000c audio: fix VoIP call volume steps
Bug: 240743392
Test: Acoustic team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I53156f61f3cb3e00be888ab29079babc4c12a7e8
2022-08-05 02:00:03 +00:00
Carter Hsu
43f28e3dd0 audio: update Fortemedia FRC table am: 8d3533f9d2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19375854

Change-Id: I0571a7b95ea956cec51fc351aa37822e9dd533a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-22 04:14:23 +00:00
Carter Hsu
8d3533f9d2 audio: update Fortemedia FRC table
1. HA Generic/TMOUS AMS fine tuning for DT
2. HA Generic/TMOUS BVE fine tuning
3. HH TX TDC fine tuning
4. Align same parameter : Handsfree TX to VCO TX/ BT-HAC TX/ Headphone TX

Bug: 239784758
Test: Verified at b/239784758#comment4
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Icaea25d152cdb9dadac04714b14b184ef918543b
2022-07-22 03:49:33 +00:00
Carter Hsu
5c6b79d4a3 audio: media recording tuning tables for FRC am: 87befd5edd
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19293024

Change-Id: I9fd455b810abbc182966abdf0b45cdac4916b989
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-22 01:45:49 +00:00
Carter Hsu
87befd5edd audio: media recording tuning tables for FRC
Change list:
  1. Merely one change:  change AGC param(rmsTav) from
     200 to 1000
Bug: 239342425
Test: Verified at b/239342425#comment9
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I90a16f61ac063833af413c4daf3703289d67ae06
2022-07-22 01:28:57 +00:00
Carter Hsu
26c0da4f2b audio: separate Fortemedia Stereo VoIP tuning
1. In case the Fortemedia CL conflict between tm-qpr
   and tm-d1, separate the Fortemedia tuning.
2. Enable stereo VoIP on speaker and usb path
3. Reserved 2(VoIP use case) in handsfree and headset mode
   changed to stereo processing.
4. FNS for NB/WB across all modes changed to fulfill CCA settings.

Bug: 237230890
Test: Verified at b/237230890#comment14
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I10303abdce6ef56414db0ce7b457efcd415bd786
2022-07-19 08:39:46 +08:00