Commit graph

71 commits

Author SHA1 Message Date
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
Anoush Khazeni
ae43d779fe Merge "[T6pro] Updating the Waves tuning." into tm-qpr-dev 2022-10-26 04:51:06 +00:00
Jasmine Cha
249c50e68c Merge "audio: enable 2.1 mode with Waves" into tm-qpr-dev 2022-10-26 01:50:37 +00:00
Jasmine Cha
0b65616ad5 audio: enable 2.1 mode with Waves
Bug: 226525184
Test: manual test
      adb shell audio_waves_custom_actions_test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Iacb3452a5169cb19d09c47778e271762715f1726
2022-10-25 10:12:44 +08:00
Carter Hsu
76a9b0d8c2 Fortemedia: update VoIP tuning to 32K
Change notes:
1. "audio_platform_configuration.xml" change the sampling rate
    from 48kHz to 32kHz. details ref to b/253552165#comment3
2. "HEADSET_iS900_Nest_T6+K6_Oct18.dat"
   Based on C10's headset tuning table adding back the following
   K6 cases from Oct14 headset tuning table:
T6+K6: idx 0x6B
      SWB(32k)
      l   HEADSET-DOCK_SPEAKER-VOICE_GENERIC-SWB (AEC on, NS on)
      l   HEADSET-DOCK_SPEAKER-RESERVE2-SWB (AEC on, NS on)
      l   HEADSET-DOCK_SPEAKER-RESERVE1-SWB (AEC off, NS off)
      l   HEADSET-DOCK_SPEAKER-CUSTOM1-SWB  (AEC off, NS on)
      l   HEADSET-DOCK_SPEAKER-CUSTOM2-SWB  (AEC on, NS off)
     FB(48k)
     l   HEADSET-DOCK_SPEAKER-VOICE_GENERIC-FB (AEC on, NS on)
     l   HEADSET-DOCK_SPEAKER-RESERVE2-FB (AEC on, NS on)
     l   HEADSET-DOCK_SPEAKER-RESERVE1-FB (AEC off, NS off)
     l   HEADSET-DOCK_SPEAKER-CUSTOM1-FB  (AEC off, NS on)
     l   HEADSET-DOCK_SPEAKER-CUSTOM2-FB  (AEC on, NS off)
3. "C10_BLUETOOTH.dat" just following the latest C10's BLUETOOTH.dat

Bug: 253541689
Test: Acoustci verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I5462be02c105aca4c54415b914e4104e1fefb5aa
2022-10-20 08:48:01 +08:00
Robert Lee
57fc1d25fb audio: update speaker firmware tuning bin files
change
PICL Voltage threshold: 3V.
PICL Current threshold: 3.5A.

Bug: 241320167
Test: builds
Change-Id: I36aa8b1d78187ad51d6bc7bde44726b752807b81
Signed-off-by: Robert Lee <lerobert@google.com>
2022-10-18 10:39:21 +08:00
Robert Lee
506bca2d53 audio: add support 4 individual speaker paths
amp1 = Left Top speaker
amp2 = Left Bottom speaker
amp3 = Right Bottom speaker
amp4 = Right Top speaker

Bug: 215307768
Test: Builds
Change-Id: I53857409cced06b68fe4207681e509982f0ec39c
Signed-off-by: Robert Lee <lerobert@google.com>
2022-10-13 17:38:05 +08:00
Robert Lee
6be4ee206b audio: add 4 amps rotation paths
1. reassign "DSP RX2 Source" to ASPRX2 for all amps
2. add support Rotation

Bug: 210569259
Test: builds
Change-Id: I6ba7031a5cc37bae1cbaf79a38bd61acf8117036
Signed-off-by: Robert Lee <lerobert@google.com>
2022-10-13 14:06:50 +08:00
Jasmine Cha
2bb6b09406 Merge "audio: update FM tables" into tm-qpr-dev 2022-10-13 05:37:25 +00:00
Anoush Khazeni
ddc73b2c03 [T6pro] Updating the Waves tuning.
Updating the Waves tuning file to T6K6 REV11
(Google_T6K6_REV11_T6-v8_K6-v5_20220827.mps)

Bug: 245359805
Test: Build only
Change-Id: I1880bd4347867547e7d56863f7a2fe59cfb4ff72
2022-10-12 15:52:23 -07:00
yixuanjiang
5a293d9cd4 audio: update ultrasonic capture setting
correct mic setting

Test: local
Bug: 237471423
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: I0f1996e3c2834e2d75c51aafeb9a4a5ddf02aa2a
2022-10-07 17:17:02 +08:00
Jasmine Cha
af0b740c05 audio: update FM tables
Change notes:
1. Enable L/R downmixer and duplicator for iS900, which results in same L/R output.
2. T6+K6 tuning for echo leak as attached mail.

Changed use cases:
T6:
   HANDSFREE-HANDFREE, idx 0x20
   HANDSFREE-PORTRAIT, idx 0x21
   HANDSFREE-REVERSED_LANDSCAPE, idx 0x22
   HANDSFREE-REVERSED_PORTRAIT, idx 0x23
   HANDSFREE-CHARGING_ONLY, idx 0x24
T6+K6:
   HEADSET-DOCK, idx 0x6B

Bug: 247962141
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib5cb4b66b006bc07d618d7e6bf5b091c8430f5d2
2022-10-04 15:12:28 +08:00
Anoush Khazeni
a31ae38529 Merge "[T6pro] Updating the hotword pipeline gain settings." into tm-qpr-dev 2022-09-21 16:53:40 +00:00
TreeHugger Robot
ea7f0cb158 Merge "waves: support AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET" into tm-qpr-dev 2022-09-21 03:19:27 +00:00
Jasmine Cha
9d27aac3e9 waves: support AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
Bug: 247904183
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I0aa5e99a18ec954821e46a8016b2a99e5a7de3b1
2022-09-21 02:14:17 +00:00
vincenttew
fa017cc38a 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: If27a33bf2aaa6671238a1c227d6bf022b8dfdc1a
2022-09-20 07:34:43 +00:00
Anoush Khazeni
408df1d72c [T6pro] Updating the hotword pipeline gain settings.
Updating the gain settings as follows:

Docked:
eraser_pre_gain  : 17.0dB
eraser_post_gain : 18.6dB
non_eraser_gain  : 35.6dB

Undocked:
eraser_pre_gain  : 22.0dB
eraser_post_gain : 0dB
non_eraser_gain  : 22.0dB

Bug: 209861919
Test: Build only
Change-Id: If0e5c6f74574ad66ff114c512de38d3da5915641
2022-09-19 17:58:53 -07:00
Jasmine Cha
b5914301da audio: improve mute duration
- preview of notification will be cut off slightly becuase of mute
  duration is too long.
- sync mute duration of primary output from to 40 ms

Test: preview notification

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib97017db1066fb6687b6634956e086a3102fe939
2022-08-24 10:53:47 +08:00
Jasmine Cha
ca6b0c61f4 audio: update fm table
Source (iS895):
K6: HEADSET-DOCK_SPEAKER-VOICE_GENERIC-FB (K6_HEADSET_Apr_26_and_epdoffset_15ms.dat)
T6: HANDSFREE-HANDFREE-VOICE_GENERIC-FB   (HANDSFREE_Aug09_v35565_Nest_for_Webex_NREC_off_issue.dat)

Change steps:
1. Convert iS895 source file "K6_HEADSET_Apr_26_and_epdoffset_15ms.dat" and "HANDSFREE_Aug09_v35565_Nest_for_Webex_NREC_off_issue.dat" to iS900
choose source parameter "HEADSET-DOCK_SPEAKER-VOICE_GENERIC-FB" and "HANDSFREE-HANDFREE-VOICE_GENERIC-FB" from Nest Handsfree/Headset iS895 parameter
2. apply T6 iS900 evaluation parameter, including enabling iS900 SSA2.0(T6/K6), EC/NS(slight change in T6)
3. 48k-32k mapping, (Tx/Rx EQ, EPD_offset)
//EPD_offset from 0x2D0(15ms at 48k) to 0x1E0 (15ms at 32k)

Bug: 242920998
Test: manaul test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I731f75c92e31be98986da8091d5c744064ccfeec
2022-08-22 13:10:07 +08:00
TreeHugger Robot
c05c1a14d4 Merge "audio: update VOIP usecase config" into tm-qpr-dev 2022-08-02 09:14:47 +00:00
shihchienc
86dda98911 Add LE Audio policy file
Bringup le audio on tablet and we found it missed le audio policy file.
So add this file into make file and change the order of make file to
ensure file added in audio-tables.mk can override the common one.

Bug: 239384147
Test: Connect with LE audio device and play music
Change-Id: I0f09744fa6bbe1e1e7377b3986c4a99cdf950095
2022-08-01 06:07:58 +00:00
vincenttew
353ba4f7f7 audio: update VOIP usecase config
sync fortemedia audio table

Test: VOIP usb headset, BT, speaker, handset mode
Bug: 237649996
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: I9f2c02f02e80ae32596b024d4bce91c63d2a1d49
2022-07-22 18:19:23 +08:00
TreeHugger Robot
179eba89b6 Merge "audio: sync audio tables" into tm-qpr-dev 2022-07-14 12:55:24 +00:00
Jasmine Cha
cf0a71a285 audio: enable BAACL
Bug: 237469885
Test: manual test
      adb shell "echo 70 > /dev/thermal/tz-by-name/soc/emul_temp"

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6fc8bbb1fb74ab1cd4697ca780ec8d87332bfd2e
2022-07-14 16:01:20 +08:00
Jasmine Cha
df3093b637 audio: correct table of feature SoundTriggerDockTuning
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I716a5d203b8d4ec8ea37f3b4706af165ea75c08a
2022-07-14 16:01:20 +08:00
Jasmine Cha
5b39e8475a audio: sync audio tables
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ibc7c58bfd97d4170d00157883e0197204326a54a
2022-07-14 15:56:58 +08:00
TreeHugger Robot
b91600572a Merge "audio: update speaker diagnostic bin files" into tm-qpr-dev 2022-07-13 10:36:28 +00:00