Commit graph

138 commits

Author SHA1 Message Date
yixuanjiang
1d13e445a9 aoc: update mixer table for voice capture V2
Currently AoC always use 3ch in voice usecase
rather than using mic MAX microphone as ch count.
Modify the mask to map voice request

Bug: 316603846
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:a5bb2e6cf0beaa5695383dde9448b6fe58ae357b)
Merged-In: Id61e5ab635e612acd9a359578ec8771a1ce00cde
Change-Id: Id61e5ab635e612acd9a359578ec8771a1ce00cde
2023-12-18 23:53:01 +00:00
yixuanjiang
93db997342 aoc: update mixer table for voice capture
Currently AoC always use 3ch in voice usecase
rather than using mic MAX microphone as ch count.
We have changed mechanism to mapping pdm mask on
voice usecase in AUD_PDM.
Modify the mask to map voice request.

Bug: 316603846
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:95a27172c112c785d90b8e05cc8fbeddf796fe25)
Merged-In: Idf92d1da0df632c6410d30147725857e55cef70b
Change-Id: Idf92d1da0df632c6410d30147725857e55cef70b
2023-12-18 23:52:51 +00:00
Poomarin Phloyphisut
22016f30e0 [USB AIDL] Remove USB configuration from audio_platform_configuration.xml
These configs are hardcoded into audio HAL instead because it's very rarely changed.

Bug: 307439907
Test: Local Test.
Change-Id: I519a59ef19e880f3e33687c779de6a8bdbcfe733
2023-11-08 11:38:35 +00:00
Yung Ti Su
d37d551b86 add mixer path for BLE
Bug: 302270637
Test: manual

Change-Id: I7729a0ad3ad4a1cd8df1eef11b0e1cab5eeacbc9
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-09-27 10:47:55 +00:00
Carter Hsu
cfe5e68227 audio: FM table check in for QPR1
L10 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: Ia5bfdd96a6030455c1ae63bacd78595c9460654a
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-09-13 00:46:33 +00:00
Poomarin Phloyphisut
4ebe12919c [USB Audio AIDL] Fix wrong capture path on mixer_paths.xml
Bug: 299388175
Test: Local Test
Change-Id: Ie064c8956a730bc33f1a67133edd371c7fa1519e
2023-09-12 03:48:22 +00:00
Yung Ti Su
ac636f4b64 add mixer path for BT SCO voice call
Bug: 297794937
Test: manual

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

Change-Id: I998d2cfad03d9b21df0ad916058893789417c73a
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-08-28 17:58:22 +00:00
Poomarin Phloyphisut
40b018fbbf [USB Audio AIDL] Add mixer_paths for usb audio.
Test: Local Test
Bug: 274870625
Change-Id: I99012cf1187d7810967a1d589d187ef7747b0a06
2023-08-24 05:49:47 +00:00
David Li
950f2c12fb audio: new AIDL configuration xml
Bug: 206737711
Test: mm
Change-Id: I1c281dca5dd873507ed2970ef3138c7e230c2909
2023-08-09 01:56:32 +00:00
Rios Kao
8536f749ee 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: Ib64444810ce4190192c68c90fb35cc05caa37283
2023-07-18 07:39:10 +00:00
Jasmine Cha
36ca19717b 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: I9190bdde497510bd791e6f85580d3c24113c7b58
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-28 16:33:23 +08:00
Jasmine Cha
bb4061314f 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: I0ba43e66d108ebaa5bd388671898b66b51915c43
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-15 08:51:09 +00:00
Carter Hsu
7fb40a24fb audio: Stereo DL for BT use case during VoIP
Bug: 281626154
Test: verified by acoustic team
Change-Id: Ia94ec94dcf8984a292372dd9c47531485a3232d3
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-06-12 03:24:15 +00:00
David Li
1190f386b9 audio: enable offloaded DPE am: f02a020ea1 am: 559f67773f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/23609681

Change-Id: I32845bcb77d202476f648442fccdd1e265d0b7c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-09 17:47:38 +00:00
David Li
f02a020ea1 audio: enable offloaded DPE
Bug: 286353167
Test: n/a
Change-Id: Ie448325dd8043a3f4e6537183085f636cd959386
2023-06-09 16:31:27 +00:00
David Li
ec5fddb3d2 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: Id9de5d3fa823f996d127adf64cca9201f11ecd0f
2023-06-06 01:04:28 +00:00
Tai Kuo
57eef68a67 Revert "haptics: update hapitcs sink and slot setting" am: 6caaf75506 am: 6c06883671
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/23259571

Change-Id: Ifb783ece06bfb2b1cdc177ac1cb7f8351cbaf79a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-01 09:05:18 +00:00
Tai Kuo
6caaf75506 Revert "haptics: update hapitcs sink and slot setting"
This reverts commit c3a27cae53.

Bug: 278018625
Test: Check audio coupled haptics at the sound preview app.
Change-Id: I8c0b30e2ad44841d1d7ca6bb81f3f54db59176bf
2023-06-01 07:35:23 +00:00
Rios Kao
8c5ab2215e lynx: 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: I8fa123e36e04723f4b6e24fc30412301bb2c0363
2023-05-19 05:56:27 +00:00
Rios Kao
1375d8428b 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: I0091641ba689f04d24f53b898fd29399c48fd21a
2023-04-27 03:53:59 +00:00
Yung Ti Su
b76dfb70ec audio: Phase in fortemedia tuning tables
Change List :

Fortemedia:
Handheld :

Optimize long distance speech preserve on HHWB

Sync TX setting to
- Condor-Headphone/ TTY-VCO / BT-HAC  (WB)

Files from the latest attachment on b/278661101

Bug: 278661101
Test: verified by ntkuo@
Change-Id: I47764bbc65204339b9258d7dfbfab3e312a1f4bb
2023-04-21 07:20:27 +00:00
Jasmine Cha
404e87d2c5 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: I177e2179071570ba6a8ab713ea55f0f0b340ec72
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-04-21 10:17:07 +08:00
Poomarin Phloyphisut
407fc5eff5 [USB Audio] Enable 192k support sample rate to hifi usb
related cl: ag/22549253

Test: Local Test.
Bug: 198122814
Change-Id: I43e2ca3f17bd5e39f400dd86b33a7230db9574f5
2023-04-18 17:17:26 +00:00
Jasmine Cha
1c6bf15dfd 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: I795402e8c460b01a148ba9e3b032143fddacd3cb
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-04-18 05:13:20 +00:00
millerliang
4581323719 audio:enable mmap and raw on BT
AoC can support mmap on BT both playback and recording
after gpar/322484.

Bug: 232205959
Test: OboeTester
Change-Id: I3f8eb8e83d95a1fb60e8f4c3ecc5ab442035aac7
Signed-off-by: millerliang <millerliang@google.com>
2023-03-29 04:14:42 +00:00
David Li
b7c340d98f audio: reorg aidl_config and add voice call paths
Bug: 206737711
Test: mm
Change-Id: I9cc66ec5d35dd4e8df2981bb4205671fa926ab0c
2023-03-25 17:48:05 +08:00
Carter Hsu
827492459e Fortemdia: update kid's voice performance am: c46679f69f am: d9ccf75c1c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/22185337

Change-Id: I412a3bfbfb07e25170b299b61eca4385d93c2aea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 02:03:55 +00:00
Carter Hsu
c46679f69f Fortemdia: update kid's voice performance
Bug: 274729450
Test: Verified by Acoustic team
Change-Id: I71a5b013576a146960dd2e3028002e5961c87f58
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-03-22 16:38:07 +08:00
David Li
608f8ceaf1 audio: add compressed offload to the AIDL audio_policy_configuration.xml
Bug: 270552159
Test: n/a
Change-Id: Ia0b57de95b72b17d16fe6cad4917cfdd559cafbc
2023-03-07 11:09:15 +00:00
Yung Ti Su
95898cd7b3 audio: Phase in fortemedia tuning tables am: 24140e397b am: 7d81b34204
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21695289

Change-Id: I2e722cd725d7998257ba736c532db4371b3d4af8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03 17:52:43 +00:00
Yung Ti Su
24140e397b audio: Phase in fortemedia tuning tables
Change List :

Fortemedia:
Handset:

AMS parameters update (Sync TX setting to TMO/ HAC / TMO-HAC / SWB Reserve 2 HAC)
Light NS for GCA (Custom2)

Files from the latest attachment on b/271381805

Bug: 271381805
Test: verified by ntkuo@
Change-Id: Icd3eecac9d14abbb0097538cabfc96872bf6bd2e
2023-03-02 16:31:57 +08:00
Rios Kao
add8872c72 soundtrigger: aidl table for L10
Test: verify with test build.
Bug: 206738138
Change-Id: I3ab4c1e66d1739f8e65cdb0df460fc5bb31828f1
2023-03-01 06:37:51 +00:00
Jasmine Cha
4a90c40de2 audio: create aidl config for testing.
Test: build pass
Bug: 206738075

Change-Id: I262b1ff42e0b86db5e677def19dca87eccc64ade
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-01 05:46:43 +00:00
Tai Kuo
c3a27cae53 haptics: update hapitcs sink and slot setting
Bug: 270023634
Test: trigger audio coupled haptics via sound picker app
Change-Id: If61728014fa990d10b552d2a5001aa12082901d3
2023-02-28 14:31:42 +00:00
Carter Hsu
794d37a370 audio: Fortemedia Tuning Check in for kid's voice am: 449197a236 am: ca01d6e467
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21505358

Change-Id: Ie697e03116068b24945dd521acae5501de63d26e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 03:04:26 +00:00
Carter Hsu
449197a236 audio: Fortemedia Tuning Check in for kid's voice
Bug: 270104065
Test: verified by acoustic team
Change-Id: Id3699b27eef00549d8e340f97463390dbd53f337
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-02-24 01:32:23 +00:00
yixuanjiang
f729fef8b2 audio: correct primary input ch supported am: cfc8d2aab6 am: 33aa1fbf4c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21329203

Change-Id: I9441f51619e8f7751d60d4a4173298f0b4b3cf0c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-17 12:25:16 +00:00
yixuanjiang
cfc8d2aab6 audio: correct primary input ch supported
Test: local
Bug: 268257291
Change-Id: Idab3dffd80a113e77e8c56969f70e9a6b4274502
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-02-17 10:11:29 +00:00
Yung Ti Su
688b2d0338 audio: Phase in fortemedia tuning tables am: 189fe9e7cd am: 449127d071
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21259403

Change-Id: I8a0aa769053c535548610c6226b4a7a6cfd384f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 06:17:13 +00:00
Yung Ti Su
189fe9e7cd audio: Phase in fortemedia tuning tables
Change List :

Fortemedia:

Handheld :
Optimize HHNB single talk performance over long distances and in noisy environments.

Sync TX setting to
- Condor-Headphone/ TTY-VCO / BT-HAC  (NB)

Files from the latest attachment on b/268002488

Bug: 268002488
Test: verified by ntkuo@
Change-Id: Ia5166688c2fef0a4e08fe526bce47c1207c3ee21
2023-02-15 02:43:23 +00:00
Yung Ti Su
927ff6bfc1 audio: [L10] Recording tuning table update 01/17 - DVT Ver.5 For Final setting am: 28a5dd2c90 am: 58f776fc6d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/21014129

Change-Id: Ib01528f37ed18105e112412b2ce80da3513af72f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-18 11:29:09 +00:00
Yung Ti Su
28a5dd2c90 audio: [L10] Recording tuning table update 01/17 - DVT Ver.5 For Final setting
to solve this bug, http://b/265614716 Pixel - Disappointing audio quality recording during live show / concert
update the AGC/MBDRC module's parameters, the original setting would suppress the loudness in high sound pressure environment.

camcorder path
AGC change
Ideal RMS, MINGain -24
MBDRC change
threshold -44/-38/-38
crossover frequency 120/10k
attack 10
release 100
limiter gain 0
limiter threshold -0.2

mic path
MBDRC change
threshold -44/-44/-44
crossover frequency 120/10k
attack 10
release 100
limiter gain 0
limiter threshold -0.2

Files from the latest attachment on b/265732148

Bug: 265732148
Test: verified by darrenyen@
Change-Id: Ie650ec7c0b7bbd15b727e7c4c2d6a7796184bf93
2023-01-17 16:22:13 +08:00
Yung Ti Su
0112bb53eb audio: Phase in fortemedia tuning tables am: 957bb244be am: 5b1cc93471
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/20848966

Change-Id: I15a710846f22d2fa9a738c81d81b7d66c0e1785c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-07 10:09:19 +00:00
Yung Ti Su
957bb244be audio: Phase in fortemedia tuning tables
Change List :

Fortemedia:
Handset :
Optimal MIC health detection / AMS paramemters for the FM library of v6.0.5

Sync TX setting to HAC / TMO-HAC / SWB Reserve 2 HAC

Handheld :
Optimal MIC health detection / AMS paramemters for the FM library of v6.0.5
Optimal HHWB double talk performance

Sync TX setting to
- Condor-Headphone/ TTY-VCO / BT-HAC  (NB/WB)
- Condor-Headphone SWB / TTY-VCO SWB / Condor-Headphone Reserve2 SWB / TTY-VCO Reserve2 / Reserve2 SWB / BT-HAC SWB / BT-HAC Reserve2 SWB

Sync RX setting to
- TTY-HCO
- SWB Reserve 2 / TTY-HCO Reserve 2

Files from the latest attachment on b/264225929

Bug: 264225929
Test: verified by ntkuo@
Change-Id: I1f8b52eb4739bdaa358d754afa6c6f0d3bcf2ede
2023-01-07 05:53:30 +00:00
Yung Ti Su
720d099d71 audio: [L10] Recording tuning table update 12/09 - DVT Ver.3 For Final setting am: d71280fb16 am: c51cf525aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/20680153

Change-Id: I1a5f359c8acf2b328b8d81323218e7e5833e7a33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-12 09:05:32 +00:00
Yung Ti Su
d71280fb16 audio: [L10] Recording tuning table update 12/09 - DVT Ver.3 For Final setting
update the AGC module's parameters, the original setting would suppress the loudness in high sound pressure environment.
idealRMS -34 -> -24
minGain -34 -> -24

Files from the latest attachment on b/261930259

Bug: 261930259
Test: verified by darrenyen@
Change-Id: I5154760a8d6c4856c056cf8491ff5e4d78699dbd
2022-12-12 07:58:25 +00:00
millerliang
669ea87ef8 audio: add missed camcorder be_cfg in dsp latency am: 926ba2baf2 am: 4fcb62c3ea
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/20647612

Change-Id: Ic738f2630f691d0e6c5f754168d5fdeeccf10b70
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 14:27:34 +00:00
millerliang
926ba2baf2 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: I9ee30d97971dc2499787592f8632f48ef79eae80
2022-12-07 13:40:47 +00:00
Yung Ti Su
e5316747e9 audio: Phase in Waves mps file in L10 am: d89b45c9df am: 07fdcef943
Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/20649395

Change-Id: I2a8715647e324c84c734e1b1dda91e6c373c9f04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-07 09:59:03 +00:00