Commit graph

51 commits

Author SHA1 Message Date
Carter Hsu
bfbcf919df Merge "audio: enable apmg3 feature" into udc-qpr-dev 2023-08-25 07:05:20 +00:00
Jasmine Cha
4dfbfbaa57 audio: spatial audio on spk
- Enable EP4 (dev1 = 3)
- Change Stereo Spatialier component id to 26
- Enable spatial audio on speaker
- Add one more parameter for waves custom action.
  (OM=1, SM=3)

Bug: 295577176
Test: manual test

Change-Id: I7e14776b34571eed5a632a7b5769d1ea784fa8ee
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-08-22 06:19:13 +00:00
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
0932277fe0 audio: enable apmg3 feature
Bug: 292144567
Test: verified on test build
Change-Id: I7898494cfe8b52b901d4d61de7a17234cc8a579a
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-08-02 14:22:43 +08: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
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
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
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
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
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
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
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
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
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
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
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
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
TreeHugger Robot
47a2a37bb7 Merge "audio: add support 4 individual speaker paths" into tm-qpr-dev 2022-10-31 07:17:45 +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
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
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
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
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
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
yixuanjiang
2599d763d2 aoc: add USB setting
Bug: 238159403
Bug: 238160606
Test: local
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ida9f80bf743e6cec035e92560d09902f8918d862
2022-07-08 02:07:03 +00:00
yixuanjiang
445a31fc79 aoc: correct capture setting
1. add ultra-sonic capture
2. corret mic2 setting

Test: local
Bug: 237471423
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: If05895eb2574bfdf26d73d371ee634c9f0072bb7
2022-07-04 13:40:35 +08:00
Robert Lee
4da6b64647 audio: update slot position when using ultrasound playback for factory
Bug: 237472692
Test: Builds
Change-Id: I562c6634544f32f458f3f57922614d4f16394989
Signed-off-by: Robert Lee <lerobert@google.com>
2022-06-29 09:58:11 +00:00
Robert Lee
32b2e41252 audio: set speaker safe path the same as speaker
Bug: 235220234
Test: Builds
Change-Id: Ifcc8652dfd2279a3d4b6823e786a43c8ab031cb7
Signed-off-by: Robert Lee <lerobert@google.com>
2022-06-22 14:53:18 +08:00
Carter Hsu
8c02da274d audio: use legacy voip condition
Bug: 226869868
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I69a453f4c80851e2fa3fb19d1551a0ed0bee23dd
2022-05-12 06:40:19 +00:00
Carter Hsu
8240e9ebf1 Merge "audio: allow mmap-record to set dsp volume" into tm-qpr-dev 2022-05-11 03:01:01 +00:00
Carter Hsu
af6a083edd audio: allow mmap-record to set dsp volume
Bug: 231630423
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ifba3fff2fa21a983d7c106239e3a9662199f6f1c
2022-05-06 09:26:27 +00:00
Rios Kao
9b1d96ed55 sthal: add dynamic tuning feature
note: the detail references ag/17951284

Test: end-to-end test with *gstf
Bug: 227254257
Change-Id: Iad52a402824ff3173d587903fb35ba5df37f0875
2022-05-06 04:45:42 +00:00
Rios Kao
0904a1f421 audio: add immersive playback support
Bug: 227697054
Test: build pass
Change-Id: Ia5bc30019f535887b4163285c66cf7f2f35f9ad5
2022-04-01 07:45:38 +00:00
Rios Kao
b3810b08c7 audio: sync mixer table for Eraser capture
Bug: 227697054
Test: build pass.
Change-Id: I3fe39bdb70178c242f486af60671cc4f54c8a12f
2022-04-01 05:25:33 +00:00
Jasmine Cha
90b9e3fd5d audio: sync last tuning settings
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Id3a9a6d16cbf662fdb0725e9accd535f3089d861
2022-03-18 15:06:28 +08:00