Commit graph

97 commits

Author SHA1 Message Date
Viktor Grönroos
846117a234 Install APMg3 external module and tuning configs.
Bug: 292144567
Test: Manual test on Tangor with Meet call.
Change-Id: I1516875745b6ad3696eb5c179866646af0ea5981
2023-08-02 07:49:41 +00:00
Carter Hsu
dcf54dff3a audio: Enable multiple USB Audio support
Bug: 289334178
Test: verified USB Audio on test build
Change-Id: I4675165a62f6779b33511c1a3f4e55cdfe7dd9cf
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-07-19 03:16:02 +00:00
Rios Kao
2492cb2726 Merge "aidl: sthal: add support for aec record in mixer table" into udc-qpr-dev 2023-07-18 07:39:36 +00:00
Rios Kao
b8a4dae740 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: I01242fbddb04961cdf6a4bab50ce733e4ab64ae0
2023-07-14 06:54:16 +00:00
Tom Huang
9b1613385c Merge "Add audio Spatializer and support OPUS codec" into udc-qpr-dev 2023-07-10 09:24:13 +00:00
Rios Kao
0d465cac83 aidl: tangorpro: add audio table for aidl hal
Test: end-to-end testing
Bug: 289328594
Change-Id: If71b70057dd80136bc49df516c4d9bd5d9ed16e7
2023-07-04 06:16:09 +00:00
kuanyuhuang
edce5a7940 Add audio Spatializer and support OPUS codec
Add spatializer, immersive playback and OPUS codec at audio config.
Enable Spatializer and Bluetooth OPUS codec.

Bug: 261660037
Test: play dynamic spatial audio content
Change-Id: I8b25eacdd804017a882b26cab13be69d403b6dc9
2023-06-30 03:04:48 +00:00
Anoush Khazeni
b9e91e66d4 [T6pro] Updating the volume table for the assistant.
Updating the volume table for the assistant stream.
Also adding a property override for the miniumum
volume setting for the assistant.

Bug: 277829235
Test: Build only
Change-Id: Ia2bd51f7a5cac528f84f0e081f411b0f5b220f19
2023-05-12 11:36:21 -07:00
Rios Kao
3f769dbbe6 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
      (Undocked)
      Non Eraser gain (gain=220)
      Eraser Pre gain (gain=220)
      (Docked)
      Non Eraser gain (gain=356)
      Eraser Pre gain (gain=170)
      Eraser Post gain (gain=186)
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
      adb shell aoc_audio_cfg hotword_get_eraser_pre_gain
Bug: 271078701

Change-Id: I4e3416af224742d939c0928c6623705a01924581
2023-04-25 05:10:05 +00:00
Carter Hsu
75b7e49503 audio: disable raw for USB Dock
Bug: 277806508
Test: build pass
Change-Id: Iecb4ce699f6c5a42b3833d8e168fc5142b3f2975
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-04-20 21:07:28 +00:00
Poomarin Phloyphisut
1d12d453cb [USB Audio] Enable 192k support sample rate to hifi usb
related cl: ag/22549253

Test: Local Test.
Bug: 198122814
Change-Id: Ic40638a9bd9e341c6f1e0ccf4d43e6d852a4d357
2023-04-18 13:08:35 +00:00
Anoush Khazeni
f6df809336 [T6pro] Updating the Waves tuning. am: 199fb48c62 am: 912b001f9b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/22200586

Change-Id: If5fe0c12d3e67a70df8bf481b71e7c1323dedc0d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-23 07:07:33 +00:00
Anoush Khazeni
199fb48c62 [T6pro] Updating the Waves tuning.
Updating the Waves tuning to Google internal tuning #47.

Bug: 274698580
Test: Build only
Change-Id: Ic8c8f2f3fe82bdab9474df1fb74e486ec929310a
2023-03-22 09:53:38 -07:00
Anoush Khazeni
75f39b8cb5 Merge "[T6pro] Updating the ForteMedia tuning files." into tm-qpr-dev am: 8da0f13689 am: e65bffba04
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/21989351

Change-Id: I41094cebff43fe18050325c2f517facfcf1c82d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 22:33:16 +00:00
Anoush Khazeni
744d5952e4 Merge "[T6pro] Updating the volume table for voice calls." into tm-qpr-dev am: ce28ff9ee7 am: eab3cab380
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/21914930

Change-Id: I491c8cf52965752ff71d91f430f21acae94926a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 22:33:15 +00:00
Anoush Khazeni
8da0f13689 Merge "[T6pro] Updating the ForteMedia tuning files." into tm-qpr-dev 2023-03-15 20:56:13 +00:00
Anoush Khazeni
ce28ff9ee7 Merge "[T6pro] Updating the volume table for voice calls." into tm-qpr-dev 2023-03-15 20:56:13 +00:00
Anoush Khazeni
ee927d8562 [T6pro] Updating the ForteMedia tuning files.
Updating the tuning files to improve the volume tables.

Bug: 241557578
Test: Build only
Change-Id: Ie48d1dee642a24f3ab89f75321b176d894cfd78f
2023-03-14 00:35:43 +00:00
Anoush Khazeni
b09d970a42 [T6pro] Updating the volume table for voice calls.
Updating the voice call volume table for the speaker device category.

Bug: 241557578
Test: Build only
Change-Id: I71aaf7486e54f4c3721e5d8e2c0dbacf86c640c5
2023-03-08 17:52:47 -08:00
Anoush Khazeni
c107e818ec Merge "[T6pro] Updating the Waves tuning." into tm-qpr-dev am: 40f0a39358 am: 27dbc5ea0a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/tangorpro/+/21451608

Change-Id: Ide7978db105ccc7c8af3b305af5e1b352e3e5c9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-27 22:46:26 +00:00
millerliang
3b73d6bb4f audio:enable mmap and raw on BT
AoC can support mmap on BT both playback and recording
after gpar/322484.

Bug: 232205959
Test: OboeTester

Signed-off-by: millerliang <millerliang@google.com>
Change-Id: I2aedb0c19e9d0911f775de2da3beac0e0dc92db3
2023-02-24 15:43:17 +08:00
Anoush Khazeni
6578828fce [T6pro] Updating the Waves tuning.
Updating the Waves tuning to Google internal tuning #45 (Anvil).

Bug: 269352708
Test: Build only
Change-Id: Ib5925a4c8bdac40e0e575d42f8ab74151daf9d1b
2023-02-15 13:56:05 -08:00
Carter Hsu
724c317273 Update speaker-mic-post setting for increasing gain
Change gain from 0 to 22
    <path name="speaker-mic-post">
    <ctl name="MIC Record Soft Gain (dB)" value="22"/>

Bug: 267236421
Test: verified by tuning team, b/267236421#comment5
Change-Id: I62bb4f61f690c7ea1649783ab6a00eb39a69aa03
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-02-02 15:15:40 +08:00
Anoush Khazeni
54d79ee89c Merge "[T6pro] Updating the volume tables." into tm-qpr-dev 2023-01-17 22:01:05 +00:00
Anoush Khazeni
1ea2931d74 [T6pro] Updating the volume tables.
Updating the volume tables for the speaker device category.

Bug: 262004820
Test: Build only
Change-Id: Ib406cf93b44b4fb64f834d6d489a16a6b4b9fbc5
2023-01-13 12:22:20 -08:00
Anoush Khazeni
c832852a9e [T6pro] Updating the Waves tuning.
Updating the Waves tuning to T6K6 REV25
(Google_T6K6_REV25_T6-v19_K6-v17_20230107_43-Madonna)

Bug: 263304645
Test: Build only
Change-Id: I6ad98e2159241573f9e99101b8efa201d0020eb1
2023-01-13 04:59:02 +00:00
Jasmine Cha
322e3e1506 Merge "waves: shift subtype since new rotation reporterd" into tm-qpr-dev 2023-01-05 00:19:43 +00:00
yixuanjiang
9d767c69d1 audio: support ultrasonic capture 3 ch
Bug: 258685440
Test: local
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ic3b02292ddd74a875b3f0a29f27ae9835864c7a5
2023-01-04 14:19:38 +08:00
Jasmine Cha
8006d103ee waves: shift subtype since new rotation reporterd
Bug:263695396
Test: LR swap/ manual test

Change-Id: Ie515d49e60af7aa54296a30f45d37d161ad8f9d9
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-28 09:06:09 +08:00
millerliang
c3a8473e64 audio: adjust the latency for camcorder av sync
Adjust the dsp_latency for camcorder with BT to sync the
audio and video.

Bug: 260712719
Test: manual test passed
Change-Id: I5270ed6202b5476105eca0e63f437430ce778a8c
Signed-off-by: millerliang <millerliang@google.com>
2022-12-20 17:41:41 +08:00
Anoush Khazeni
81a3ac576d Merge "[T6pro] Updating the Waves tuning." into tm-qpr-dev 2022-12-16 03:51:11 +00:00
Jasmine Cha
4b45975d18 audio: update handsfree AEC
- optimize the stability of AEC during double talk
- Supported Usecases:
HANDSFREE-HANDFREE-RESERVE2-SWB
HANDSFREE-HANDFREE-CUSTOM1-SWB
HANDSFREE-HANDFREE-CUSTOM2-SWB
HANDSFREE-HANDFREE-RESERVE1-SWB

HANDSFREE-PORTRAIT-RESERVE2-SWB
HANDSFREE-PORTRAIT-CUSTOM1-SWB
HANDSFREE-PORTRAIT-CUSTOM2-SWB
HANDSFREE-PORTRAIT-RESERVE1-SWB

HANDSFREE-REVERSED_LANDSCAPE-RESERVE2-SWB
HANDSFREE-REVERSED_LANDSCAPE-CUSTOM1-SWB
HANDSFREE-REVERSED_LANDSCAPE-CUSTOM2-SWB
HANDSFREE-REVERSED_LANDSCAPE-RESERVE1-SWB

HANDSFREE-REVERSED_PORTRAIT-RESERVE2-SWB
HANDSFREE-REVERSED_PORTRAIT-CUSTOM1-SWB
HANDSFREE-REVERSED_PORTRAIT-CUSTOM2-SWB
HANDSFREE-REVERSED_PORTRAIT-RESERVE1-SWB

HANDSFREE-CHARGING_ONLY-RESERVE2-SWB
HANDSFREE-CHARGING_ONLY-CUSTOM1-SWB
HANDSFREE-CHARGING_ONLY-CUSTOM2-SWB
HANDSFREE-CHARGING_ONLY-RESERVE1-SWB

Bug: 262322091
Test: manual test (b/262322091#comment10)

Change-Id: I1632d31edc26394d93bb6a868b5bcde64f3c8399
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-16 01:03:10 +00:00
Anoush Khazeni
89d4a4b269 [T6pro] Updating the Waves tuning.
Updating the Waves tuning to T6K6 REV18
(Google_T6K6_REV18_T6-v13_K6-v10_20221213)

Bug: 262400333
Test: Build only
Change-Id: I08439e8452adc0ab44305695cadfe92c0c20df96
2022-12-13 13:29:53 -08:00
millerliang
a913e088df 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: Ib08e69a1f7ccffc4bdb0ef8965c391126c15ced3
2022-12-06 15:45:49 +08:00
TreeHugger Robot
e9a0530ff2 Merge "audio: update speaker firmware tuning bin files" into tm-qpr-dev 2022-12-02 09:36:30 +00:00
Robert Lee
65582a5a50 audio: update speaker firmware tuning bin files
Remove 17kHz-LPF.

Bug: 241320167
Test: builds
Change-Id: I5b4116d8f847ffd82bcb2eb855aa872806bf049a
Signed-off-by: Robert Lee <lerobert@google.com>
2022-11-30 06:35:16 +00:00
Jason Hsu
622aac9298 audio: Update Fortemedia tuning
Change list:
3dB higher level when docked vs undocked
Vol-6 0x0066
Vol-5 0x0033
Vol-4 0x0024
Vol-3 0x001A
Vol-2 0x0012
Vol-1 0x000D
Vol-0 0x0009

Bug: 258386115
Test: local build pass
Change-Id: I5b27b1f9f67713ebee20130796664abfd216cbc6
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2022-11-29 10:38:56 +08:00
TreeHugger Robot
21a469e4a5 Merge "audio: enable gapless offload flag" into tm-qpr-dev 2022-11-18 10:29:51 +00:00
yixuanjiang
4533d1c7d4 audio: enable gapless offload flag
Enable gapless support on compressed_offload w/o trimming delay and padding.

Test: local verify
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ia9e52f665ae84a94719550ca7b48a3cb74b433f1
2022-11-17 14:43:04 +08:00
Jasmine Cha
4a6e85e4aa waves: update mps with LR swap
Bug: 257002893
Test: manual test b/257002893#comment20

Change-Id: Ia759117d9a6cfab50103c716009bdbff0f326fc2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-11-17 10:16:05 +08:00
Roger Fang
ab96bc8473 audio: amcs: add 4 speaker numbers into arguments
amcs suez speaker requires init index numbers to support
  products who has numbers more than two.

Bug: 248451580
Test: manually test passed

Change-Id: I06ca95d4dd7f0f35f5108bbf2256b1cd447f9ecb
Signed-off-by: Roger Fang <rogerfang@google.com>
2022-11-10 12:35:01 +08:00
Jasmine Cha
b034e8964e audio: disable 2.1 mode for qpr2
- will enable in qpr3

Bug: 258541642
Test: manaul test

Change-Id: I52ac03d84e4b4eef928fd8c3f2c58b28a9baf30d
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-11-10 09:23:43 +08:00
TreeHugger Robot
80d8f7f40b Merge "audio: add dynamics processing effect to audio_effects.xml" into tm-qpr-dev 2022-11-09 03:55:54 +00:00
David Li
1d471c8b64 audio: add dynamics processing effect to audio_effects.xml
Bug: 256091215
Test: boot up to home screen
Change-Id: I3ab9f0749618f61635c53c7c2123828a2e5baa71
2022-11-09 10:51:18 +08:00
yixuanjiang
e2809f68c7 audio: remove haptic output
Test: local
Bug: 257008443
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: If09da7c926e816ac1ca27e2438d915fe4f9e68f2
2022-11-03 11:03:01 +08:00
Carter Hsu
83a9d75f2e Merge "audio: Update Fortemedia tuning for Dock" into tm-qpr-dev 2022-11-02 05:51:48 +00:00
TreeHugger Robot
753a12a041 Merge "audio: update speaker firmware tuning bin files" into tm-qpr-dev 2022-11-01 11:21:01 +00:00
TreeHugger Robot
47a2a37bb7 Merge "audio: add support 4 individual speaker paths" into tm-qpr-dev 2022-10-31 07:17:45 +00:00
Carter Hsu
574a8da5c7 audio: Update Fortemedia tuning for Dock
Change list:
Use case:
HEADSET-DOCK_SPEAKER-RESERVE2-SWB (AEC on, NS on)
HEADSET-DOCK_SPEAKER-VOICE_GENERIC-SWB
0. source is Oct18 tuning file
1. apply Andrew's EQ (Tx, Rx vol 0~vol 6)
2. apply DT/EC tuning to optimize DT preservation
3. apply AEC/NS on/off to following cases based on HEADSET-DOCK_SPEAKER-RESERVE2-SWB
HEADSET-DOCK_SPEAKER-RESERVE1-SWB (AEC off, NS off)
HEADSET-DOCK_SPEAKER-CUSTOM1-SWB  (AEC off, NS on)
HEADSET-DOCK_SPEAKER-CUSTOM2-SWB  (AEC on, NS off)
4. Remove FB use cases to avoid confusion
HEADSET-DOCK_SPEAKER-VOICE_GENERIC-FB (AEC on, NS on)
HEADSET-DOCK_SPEAKER-RESERVE2-FB (AEC on, NS on)
HEADSET-DOCK_SPEAKER-RESERVE1-FB (AEC off, NS off)
HEADSET-DOCK_SPEAKER-CUSTOM1-FB  (AEC off, NS on)
HEADSET-DOCK_SPEAKER-CUSTOM2-FB  (AEC on, NS off)

Bug: 229170428
Test: build pass
Change-Id: Iddca709ac2abdebee5fefcbd9a6f1eec70829b41
Signed-off-by: Carter Hsu <carterhsu@google.com>
2022-10-28 08:31:38 +08:00
Jasmine Cha
eac06d3bf3 audio: correct waves output mode
Bug: 226525184
Test: manual test

Change-Id: I08b9cc3afd1f8c53237ef4f96c904a036dab97f1
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-10-27 16:42:21 +08:00