Commit graph

108 commits

Author SHA1 Message Date
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
Jasmine Cha
87fa8f70a2 audio: update waves table for frc am: b8c2d052d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19250747

Change-Id: I4e636a479d2a2152d134df7e214499f4a3047e0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 15:43:30 +00:00
Jasmine Cha
af1465c145 audio: update speaker volume am: d659991e7b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19250748

Change-Id: I46f8beaf4b41e37520857c8764b1f3e239c4a74e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 15:43:28 +00:00
Jasmine Cha
b8c2d052d3 audio: update waves table for frc
Bug:238680468
Test: manual test (b/238680468#comment8)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I9ca63593e5ea4a34b83a429815ac006bfb99f474
2022-07-18 15:22:06 +00:00
Jasmine Cha
d659991e7b audio: update speaker volume
Bug:238680468
Test: manual test (b/238680468#comment8)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I544375dfba2fee42c0b24242f0817fb3354d69e3
2022-07-18 05:14:16 +00:00
Jasmine Cha
51ec64ee23 audio: update mps table am: b4a5ce1cab
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/19227928

Change-Id: Ib3ff4246f4bc31c64f22a122b69e83f44b342c30
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-18 04:17:38 +00:00
Jasmine Cha
b4a5ce1cab audio: update mps table
Bug: 238403490
Test: manual test (b/238403490#comment4)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib78388a74ba36239bded6dbfe73168c9c2db9daa
2022-07-18 04:07:01 +00:00
Omer Osman
8ce25a8551 Add support for Opus as a BT A2DP Offload codec
Bug: 226441860
Test: Sink device using bds-dev
Change-Id: Ib7395300b01d137a5156be5bad5f311d55b03f59
2022-07-15 19:44:57 +00:00
millerliang
6834a1034c audio: apply new pcm id for immersive output
Change to use pcm id 30 for immersive output,
which is using raw path in AoC to get lower
roundtrip latency.

Bug: 237677573
Test: spatial audio playback
Change-Id: I6519f75daf2f65dc8f1e2a4a3827f8956f563c35
2022-07-15 02:07:24 +00:00
Jasmine Cha
9ed0780a88 audio: refactor BAACL
Bug: 236807658
Test: BAACL control test
      audio_waves_custom_actions_test
      audio_adapted_info_device_test
      audio_adapted_info_features_tests
      audio_adapted_info_features_device_tests

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I3dbbe745572b8db289db2256c7bf51e23027190e
2022-07-13 14:21:11 +00:00
Eric Laurent
a74a9c3cde fix the build for target rbc_product_config
Use absolute file path instead of $(LOCAL_PATH) in audio_tables.mk

Bug: 238741813
Test: make
Change-Id: I9ee6d8450fa5a10b830502eb39ddd49ecd501ab7
2022-07-13 09:49:48 +02:00
Eric Laurent
f28274c131 audio: configuration for spatial audio
Update audio configuration to enable spatial audio:
- build with spatial audio feature enabled and rondo library
- list spatializer effect in audio effect configuration file
- update audio policy configuration files to declare spatializer output
- declare immersive end point in audio platform configuration

Bug: 237677573
Test: spatial audio playback
Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678
2022-07-12 07:58:36 +00:00
Carter Hsu
07f215f5db audio: Enable CCA HAL module
Bug: 206065000
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I78ce1fa4af4a566b2a0e54cef8945406fb6d4ad3
2022-06-23 06:29:22 +00:00
Carter Hsu
9abd1bcddf Audio: update Fortemedia tuning 20220616
FM table change list:
  1. HA
    1) Fine tune P10C10 TMOUS tuning for DVT stage
    2) Fine tune P10C10 NB NS performance
  2. HE
    1) Align the same setting between Rx1 to Rx2
    2) Align the same setting between HEADSET-USB_BLACKBIRD-VOICE_GENERIC-SWB
       and HEADSET-USB_BLACKBIRD-VOICE_RESERVE2-SWB
  3. BT
    Enable RX low latency mode

Bug: 236210273
Test: Acoustic team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I3c347bb740a447cb1fb78b3391acaa3247107220
2022-06-17 09:07:11 +00:00
Carter Hsu
b7b953903e audio: Update Waves tuning
Change list
  For C10 mps:
    - Fix sparkle/sibilance/shrill sound of previous MIX3500M
      release mention in AQTI C10 speaker quality report.
    - Improve volume curve for soft vol levels(Mute+1 ~ Mute+15)
    - Sha1sum: 7095454e3cea59eed5f89da5e87de7815a0f6c0d

  For P10 mps:
    - Fix sparkle/sibilance/shrill sound of previous MIX2000
      release.
    - Sha1sum: e6d4cbc1912a48f059c5767d788f0544a580ba4b

Bug: 235925350
Bug: 235926607
Test: Audio tuning team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I263b581f63a2fd87246e5ee6a74db23dd097567e
2022-06-17 09:07:02 +00:00
Carter Hsu
314998feb2 audio: P10/C10 Media Record tuning update for RC
change list :
    1) mic_path : IIR fine tune on both mono and stereo mode
    2) mic_path : mic swap in stereo mode, top mic in ch1,
       bot mic in ch2
    3) camcorder_path : zoom gain set as "1" in surround
       module in selfie mode
Bug: 236236611
Test: Audio tuning team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I079d57cb16337482994ae5ba2b2a00a143d22f26
2022-06-17 09:06:48 +00:00
Robert Lee
c057b09ee7 audio: enable gapless offload flag
Enable gapless support on compressed_offload w/o trimming delay and padding.

Bug: 230305456
Test: test with AOSP Music and MediaMonkey
Change-Id: Ie1129a5323a2225c895cb3f1b332065bc5924075
Signed-off-by: Robert Lee <lerobert@google.com>
2022-06-13 06:49:45 +00:00
millerliang
3df55604f5 audio: adjust the latency for compress-offload
Compress-offload also needs to adjust the latency
to meet the av sync result.

Bug: 234104918
Test: Play AV sync video in YTMusic test apk
Change-Id: I45e4b2d2c477ae2eae14d7342e3a81c38ec61cb4
2022-06-09 03:00:40 +00:00
Jasmine Cha
d31bca5d0e audio: update c10 p10 RC tuning
For C10_LL_Pt_Ls_mix3500M_volCurve_allModes_Speaker_Safe_ONEAL_V2.mps:
- Non media, update the speaker-safe preset for
  Ringtone/Notification/Alarm stream
- sha1sum:  b813efb994561b71715c075c0d34ad8c1a009ade
  /vendor/etc/waves_preset.mps

For  P10_LL_Pt_Ls_mix2000_volCurve_allModes_Speaker_Safe_ONEAL.mps:
- Non media, update the speaker-safe preset for
  Ringtone/Notification/Alarm stream
- sha1sum: 32a42b5ad6f2c2b3b79b2a33d3f53329edf61047
  /vendor/etc/waves_preset.mps

For audio_policy_volumes_C10_Update.xml:
- Revision for low volume to be compatible with the speaker-safe
  preset mentioned above.
- Revision of full volume curve to be compatible with MIX3500M preset
  for below stream type DTMF, System Sound, Enforced Audible.
- sha1sum: 918ebfef1da80f8caca117cc1da00f0a7eade6c1
  /vendor/etc/audio_policy_volumes.xml

For audio_policy_volumes_P10_Update_V2.xml:
- Revision for low volume to be compatible with the speaker-safe
  preset mentioned above
- Revision of full volume curve to be compatible with MIX2000 preset for
  below stream type DTMF, System Sound, Enforced Audible
- sha1sum: 9333ef3a4359b6c5e5b29a3beb40c677f8961c5d
  /vendor/etc/audio_policy_volumes.xml

Bug: 234590302
Bug: 234464916
Test: manual test
      b/234464916#comment4
      b/234590302#comment8

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I9fcaa0ac6f50af7f0728eb5a686b9866317a49d8
2022-06-07 09:45:02 +08:00
Carter Hsu
5d30102080 audio: update FM tuning 20220602
FM table change list:
1. HE
    a)  Fine tune HE BB SWB FFP, BVE, NS, ECDT
    b) Fine tune HE BB NB/WB/SWB RX volume curve
2. HA
   1) fine-tune C10 TMOUS tuning for DVT stage
   2) fine-tune P10/C10 NB robustness tuning
   3) fine-tune P10/C10 NB acoustic shock for generic
3. HH
    a)  P10/C10 fine tune NS performance
4. AMS : P10/C10 HA/HH/HE all enable AMS.

Bug: 234676284
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I9328b8c72c9b4799634bf3d6b63db6a4102fe571
2022-06-06 08:38:57 +08:00
millerliang
04cf0e2c32 audio: enable mmap playback and record on BT
AoC can support mmap on BT both playback and recording
after gpar/322484.

Bug: 232205959
Test: Play MMAP games and OboeTester
Change-Id: Id696b578f4a2e3f94d6193e714b6d9f1ace6977a
2022-05-31 08:06:16 +00:00
Carter Hsu
ee6a5a5e72 audio: update FM tuning 20220527
FM table change list:
1. HE
    a) Enble BVE for BB on NB,WB, SWB
    b) Fine tune BB RX EQ on NB, WB.
2. HH
    a) Fine Tune RX for dual speaker
    b) Polishing SWB NS performance
3. HA
   a) Update TMOUS tuning for P10/C10 on NB/WB/SWB
   b) Fine tune C10 tuning setting for Generic on NB/WB/SWB
   c) Fine tune P10 tuning setting for Generic on NB
   d) Fine tune NS tuning for P10/C10 on SWB

Bug: 234079372
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: If380495da1e94fff33a2bdc9980f0e546d167e7f
2022-05-27 10:01:49 +00:00
Jasmine Cha
2a027324f2 audio: improve mute duration.
- preview of notification will be cut off slightly becuase of mute
  duration in framework is 160ms (40*40)
- set mute duration of primary output from 160 ms to 40 ms.

Bug: 233176336
Test: preview notification/end call sound on voice/VoIP(Line)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I7f5225372c265cb22e74311b0805d16b1c68fd3d
2022-05-24 08:39:17 +00:00
Carter Hsu
05bec92030 audio: update Fortemedia VoIP condition to reserve2
1. P10 HA Generic tuning optimize for EVT1.1
2. C10 HH NB/WB/SWB mic hardware adjustment for EVT1.1
3. P10C10 HH/HE:
    (1) Modify to mono channel in reserve2
4. Align same parameter
     (1) Handsfree TX to VCO TX/ BT-HAC TX/ Headphone TX
     (2) Handsfree RX to HCO RX

Bug: 232349071
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ib1db35a5f7526c2dcb2c73997a92f0e9bc9966fa
2022-05-13 09:04:41 +00:00
Robert Lee
363fbe88dd audio: update speaker protection bin files
Change list:
1.Set fallback value for repair center(not impact tuning)

Bug: 199029784
Test: Builds
Change-Id: Ia58aec716eb697d483a25f00e5244a3ea8ee8e70
Signed-off-by: Robert Lee <lerobert@google.com>
2022-05-12 12:08:05 +00:00
Robert Lee
0e03e0ac19 audio: update speaker protection bin files
Change list:
1.Set fallback value for repair center(not impact tuning)

Bug: 198765357
Test: Builds
Change-Id: I9c68a737ea1854e458e3b57b47a1c227a4f4a4bd
Signed-off-by: Robert Lee <lerobert@google.com>
2022-05-12 12:08:02 +00:00
Carter Hsu
f0264e1130 audio: update camcorder tuning
Refine AZ and Surround recording parameters and related IIR2 tuning

Bug: 232162570
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I2cc34f9fd106578a4e2693b5183aa8879cf70465
2022-05-12 01:44:54 +00:00
David Li
d0f673ce10 audio: add dynamics processing effect to audio_effects.xml
Bug: 215662726
Test: YTMusic with adaptive audio
Change-Id: I1346de62a2e1425250583d7bc1365ffa72353ee6
(cherry picked from commit 9e36616a4d)
2022-05-11 06:59:43 +00:00
Carter Hsu
a4d7b2d49d audio: allow mmap-record to set dsp volume
Bug: 231630423
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I311a292f3ab22c46417c9e62c0c5116c15368398
2022-05-11 03:00:58 +00:00
Carter Hsu
0fd0fc935b audio: adjust the digitial gain for speaker-mic
add mic gain on path "speaker-mic" from 0 to 22

Bug: 231909998
Test: mmap record
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I66de7c52c29ec3434a5cbed1799029fa5be05f71
2022-05-10 04:00:32 +00:00
Jasmine Cha
00a456a976 audio: update waves related settings
1. add throttle sensor info for waves module.
2. use default custom action for unsupported projects.

Bug: 230280648
Test: adb shell audio_waves_custom_actions_test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I71aa59a43b11e7a57834e44da6793b2cfa7c76ed
2022-05-10 01:31:03 +00:00
Jasmine Cha
4eb6a4ed65 Revert "Revert "audio: enable thermal throttle""
This reverts commit e49bc9478a.

Reason for revert: to be merged with  ag/18185769

Change-Id: I746f0b2fc5094653a373835d0c2d048bcca54ae5
2022-05-09 06:15:44 +00:00
Jasmine Cha
e49bc9478a Revert "audio: enable thermal throttle"
This reverts commit 59354f550b.

Reason for revert: disable first

Change-Id: I3d74311bc66476e259018a1bc62cf0433ba5c165
2022-05-06 04:18:05 +00:00
Jasmine Cha
59354f550b audio: enable thermal throttle
Bug: 229819466
Test: build pass, voip hands-free mode
      atest --host acoustic_shock_test
      atest --host thermal_throttle_test
      atest --host libaudiohardwarefeatures_test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I3d75e88a977ce5a2e2b08ef92894d9c5da7eb04c
2022-05-06 02:29:47 +00:00
Jasmine Cha
e18493b250 audio: update waves table
- Changes
New iteration of C10 MIX 103 for DF Merge
Full volume curve is integrated with LinkLaw for stereo playback
Reduced Sharpness of speech

CTS Validated
MPS validated w/ all stream paths, concurrencies, configurations w/ Waves Console on build:
TD1A.220406.001 (8410366)

Bug: 203817007
Test: 203817007#comment13, 203817007#comment20

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib95ccb669c8fd5369599bd530aeeb64197d18119
2022-05-03 08:57:39 +00:00
Carter Hsu
74b13c4c45 audio: update FM tuning 0422
FM table Changelist:

1. C10 HA NB/WB/SWB: fine tuning for EVT1.1
2. C10 HA NB/WB/SWB: FFP parameter update (enable)

Bug: 216258666
Test: Acoustic team verified
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia4dcb8dd19d4aaf7fa4150a3cdacb9d455994ac6
2022-04-25 07:55:16 +00:00
Jasmine Cha
844477baf8 audio: rename spk module config am: 3a50fbbc53
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/17856403

Change-Id: Ie07acb2eb11d7f43d05064c10a9394ef496b3fb3
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 05:11:26 +00:00
Jasmine Cha
3a50fbbc53 audio: rename spk module config
Bug: 204271052
Test: voip + speaker mode

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6aa0da65a1b1faa8be26ae8eb77a01b14d277666
2022-04-25 04:50:48 +00:00
Carter Hsu
4f0e8ae510 audio: update Fortemedia tuning 0415 am: 6715af9b17
Original change: https://googleplex-android-review.googlesource.com/c/device/google/pantah/+/17773509

Change-Id: Iedaecae43aabf13880b9f331aa56d70ec9595ddd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-18 02:10:17 +00:00
Carter Hsu
6715af9b17 audio: update Fortemedia tuning 0415
FM table Changelist:
1. P10 HA NB/WB/SWB : FFP parameter update(enable)
2. P10C10 HH NB/WB/SWB:
     (1) TX/RX fine tune for phone call quality
     (2) FFP parameter update (enable)
     (3) Enable Stereo spk in reserve2
3. P10C10 HE NB/WB/SWB:
    (1) Enable Stereo spk in reserve2
4. Align same parameter
     (1) Handsfree TX to VCO TX/ BT-HAC TX/ Headphone TX
     (2) Handsfree RX to HCO RX

Bug: 216258666
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I50ec916280b96d631f1b656d6c1a0a96d324408f
2022-04-15 17:45:06 +08:00
Robert Lee
33ecc54bf5 audio: update speaker protection bin files
Change list:
1.Enable Top/Bot speaker FIR module on voice call

Bug: 198765357
Test: Builds
Change-Id: Ia51415f64b429cd79afaee709a8b16bc33d1edcc
Signed-off-by: Robert Lee <lerobert@google.com>
2022-04-08 10:22:30 +00:00
Robert Lee
80e905ded6 audio: update fast switch config for speaker amp
fast_swtich1.txt => Enable FIR of top amp
fast_swtich2.txt => Enable FIR of bot amp
fast_switch3.txt => Disable FIR of top amp
fast_switch4.txt => Disable FIR of bot amp

Bug: 214487028
Test: Build pass
Change-Id: Id7c9eae52d9e59250cbc7e79705d86d0268a7a79
Signed-off-by: Robert Lee <lerobert@google.com>
2022-04-08 10:22:30 +00:00
Robert Lee
5e1c689130 audio: update speaker protection bin files
Changelist:
1.Enable Top/Bot speaker FIR module on voice call

Bug: 199029784
Test: Builds
Change-Id: I8e54a63830a32a4d41f257a5187d722ec199a368
Signed-off-by: Robert Lee <lerobert@google.com>
2022-04-08 08:13:34 +00:00