Commit graph

92 commits

Author SHA1 Message Date
David Li
f5f21622cb audio: Merge telephony tuning tables
Handset:
Align all the Handset parameters from previous version of FM lib.

Handsfree:
Improve muffle speech quality in Handsfree-SWB call
Optimize double talk performance in SWB calls
Fix the kid's voice issue

Headset:
Leverage the Handsfree modification to Headphones uplink and TTY VCO
Align all the Headset parameters from previous version of FM lib.

Bluetooth
Leverage the Handsfree modification to BT HAC uplink
Align all the Headset parameters from previous version of FM lib.

Files from the latest attachment on b/296168451

Bug: 278477187
Bug: 290649264
Bug: 284070021
Bug: 296168451
Test: verified by huangsean@
Change-Id: I265857ab3b814fe615d61467c68f38f5da61360d
2023-09-06 15:04:51 +08:00
Yung Ti Su
fb96524dc9 add mixer path for BT SCO voice call
Bug: 297794937
Test: manual

Change-Id: I88ae3fc8290fdf83d33c71def8cb3ca705136f38
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-09-01 02:26:14 +00:00
Yung Ti Su
96c377d870 [AIDL] Add mixer paths for BT
Bug: 293221641
Test: manual

Change-Id: I2c1ca5ca43665595639ce1f785b807e68a59ed90
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-08-28 17:58:28 +00:00
Poomarin Phloyphisut
c4a811f8cd [USB Audio AIDL] Add mixer_paths for usb audio.
Test: Local Test
Bug: 274870625
Change-Id: I850679b60bc523f5e88884729d5439056dcafab3
2023-08-23 08:08:03 +00:00
Rios Kao
db9ee009a8 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: I89cfef9a89e96530d866b73da963b2ec2ce7a55e
2023-07-18 07:41:06 +00:00
Treehugger Robot
f293d52798 Merge "audio: initialize aidl config" into udc-qpr-dev 2023-07-05 03:31:10 +00:00
Jasmine Cha
1a733133c5 audio: initialize aidl config
Bug: 274373213
Test: manual test, boot to home

Change-Id: Ia5d657f589aaae4bd63b5ba098241f1c120d9edf
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-30 13:43:18 +08:00
Carter Hsu
6145937870 Merge "audio: Stereo DL for BT use case during VoIP" into udc-qpr-dev 2023-06-12 03:23:55 +00:00
Carter Hsu
dde1ee1306 audio: Stereo DL for BT use case during VoIP
Bug: 281626151
Test: verified by acoustic team
Change-Id: Ic3c059d3c42d5f3ac6041a3f54c19de27720506f
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-06-06 07:31:45 +00:00
Tai Kuo
03730f2542 Revert "haptics: update hapitcs sink and slot setting"
This reverts commit f0d036fa96.

Bug: 278018625
Test: Check audio coupled haptics at the sound preview app.
Change-Id: I79cf104b249e752a68005a8a226fe4b61b5d4044
2023-05-16 17:56:02 +08:00
Rios Kao
537ad768a0 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: I2689c5d0949677e9c29a9defb4d9333711e811b4
2023-04-27 03:57:21 +00:00
Presubmit Automerger Backend
a8bfaad82b [automerge] audio: Merge telephony tuning tables 2p: d3bb6acd48 am: 1bfed231b8
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/22562951

Change-Id: Id2f289828beec5a126dfccd4b0bfb159b5eb0a55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-19 10:07:15 +00:00
David Li
d3bb6acd48 audio: Merge telephony tuning tables
Handset:
[VZW] Mitigate the hissing speech on earpiece - P1

Handsfree:
[TMO] Optimize the distortion performance which is requested by T-Mobile reviewer - P1

Files from the latest attachment on b/277680627

Bug: 271600161
Bug: 257908564
Test: verified by huangsean@
Change-Id: Idf0a99bdcdbcde991de01e8bf146639245038ce8
2023-04-19 07:14:02 +00:00
Poomarin Phloyphisut
3511b0eaf6 [USB Audio] Enable 192k support sample rate to hifi usb
related cl: ag/22549253

Test: Local Test.
Bug: 198122814
Change-Id: I9844a7bf34bfbcf4259190530adcf201068d759f
2023-04-18 13:08:22 +00:00
TreeHugger Robot
a0c87c0930 Merge "audio: QPR ver. tuning table release for Felix" into tm-qpr-dev am: 9c2ccbe0aa am: e6d738341d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/22339367

Change-Id: Ia037988580222326e6a62d42772cc70f8c0eeff3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-31 17:36:47 +00:00
TreeHugger Robot
9c2ccbe0aa Merge "audio: QPR ver. tuning table release for Felix" into tm-qpr-dev 2023-03-31 16:13:27 +00:00
TreeHugger Robot
c9b1ceb48a Merge "audio: Merge telephony tuning tables" into tm-qpr-dev am: 6200a8c45d am: 347ad56880
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/22346327

Change-Id: I7f9b653ecc4356903cfe3650cfacceaa6227685b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-30 19:18:14 +00:00
David Li
18717395f7 audio: QPR ver. tuning table release for Felix
- Optimize MBDRC settings fox improving quality in high sould pressure level, context(b/273340713)

Files from the latest attachment on b/276210360

Bug: 276210360
Test: verified by cartercheng@
Change-Id: I76619e82be9efca6a38f00df6e338ead81d069a2
2023-03-30 16:56:42 +08:00
David Li
b939b77f91 audio: Merge telephony tuning tables
Handset:
Optimizing uplink noise suppression performance for SWB
- The performance before the optimization had severe noise leakage in noisy environments(much louder than competitor), sometimes the noise was masked in near-end speech and hard to hear, which caused a bad user experience.
- Work with ForteMedia for the optimization as b/271551346

Files from the latest attachment on b/276063202

Bug: 276063202
Test: verified by huangsean@
Change-Id: Ie347214835e18a43c561166cb24c94f5062057e8
2023-03-30 12:18:13 +08:00
David Li
0d9b6419b7 audio: Merge telephony tuning tables am: b67a58e3e9 am: 5ef9600313
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/22242077

Change-Id: I8bd218e8296da4a64441209c48100df6d8c28976
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-28 17:06:26 +00:00
David Li
b67a58e3e9 audio: Merge telephony tuning tables
Handset:
Optimizing noise suppression for better performance

Handsfree:
Fix the kid's voice issue(the same issue reported from C10 P10) - P0
Reducing current peak of speakerphone to avoid trigger BATOILO frequently - P1
Finetune downlink performance of speakerphone to mitigate hissing speech - P1

Headset:
Leverage uplink setting from handsfree for headphones and TTY-VCO scenario

Files from the latest attachment on b/275032306

Bug: 275032306
Test: verified by huangsean@
Change-Id: I249e8d91d4be87db167d008c1dc8a6bb777f0802
2023-03-28 13:32:43 +08:00
Jasmine Cha
0248c103fb audio: update spatial audio tuning am: a65b291e37 am: de271d2402
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/22248644

Change-Id: I32abe8f5504351ae64f777f5d97667319466fd33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-24 16:54:30 +00:00
Jasmine Cha
a65b291e37 audio: update spatial audio tuning
1. Update spatial tuning profile to match transaural filter for QPR3 feature drop.
2. Update volume curve for DTMF & system sound for smooth loudness changes.

Bug: 275015500
Test: manual test from b/275015500#comment2

Change-Id: I197dc992b03b16b101f19a81b112e43568166526
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-24 16:45:04 +08:00
Jasmine Cha
715c91d0ec Merge "audio: support spatial audio for folded mode" into tm-qpr-dev am: 242b5bd885 am: da98c58d54
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/21913161

Change-Id: Ia2f9b2c6dd09aa9c11a7c5162294ab44e7ddbb24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 02:21:43 +00:00
Yung Ti Su
4cb5760fab add support for BLE offload case in audio policy
Bug: 255722598
Test: manual

Change-Id: I4fae3f5575dc035171708feae25644c497aa4804
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-03-15 09:03:54 +00:00
Jasmine Cha
a0db6cef77 audio: support spatial audio for folded mode
Bug:272379558
Test: build pass

Change-Id: Ie1d8dcc2b88a8f1557f2c8f01b250652daf896c8
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-09 11:52:45 +08:00
TreeHugger Robot
75c6203d4c Merge "audio: update playback tuning" into tm-qpr-dev am: 466cc0eda0 am: 1132a472f0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix/+/21894983

Change-Id: I3473e36be53657e769b0585e9dffc2ea4d0c7185
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 11:14:12 +00:00
Jasmine Cha
afefe55e05 audio: update playback tuning
<Change List>
1. Optimize playback tuning to reduce overall power and meet thermal requirement.
2. Volume cuve tuning for media playback, notification, alarm and ringtone

<Validation Results>
Basic function Regression
Pass TMO thermal test

Bug: 269818309
Test: manual test from b/269818309#comment20

Change-Id: I06e6f351dab40d81053bb1bfc4af5f097ad6d1f4
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-08 16:22:10 +08:00
TreeHugger Robot
4492cef69b Merge "haptics: update hapitcs sink and slot setting" into udc-dev 2023-02-28 14:31:45 +00:00
Miller Liang
4cd6c44ca5 Merge "audio:enable mmap and raw on BT" into udc-dev 2023-02-24 11:33:44 +00:00
millerliang
e4fcc3d194 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: I95f6d500c259a14e5da23397c799b339d8128b36
2023-02-24 15:42:44 +08:00
Tai Kuo
f0d036fa96 haptics: update hapitcs sink and slot setting
Bug: 270023634
Test: trigger audio coupled haptics via sound picker app
Change-Id: Ibaab0f2bdb3628bfe7dd45adefd102d882473fef
2023-02-22 21:51:33 +08:00
David Li
4e454fff1b audio: Merge telephony tuning tables
1.Handset
- Fine tune frequency response for the telephony report of T-Mobile.

Files from the latest attachment on b/270290106

Bug: 270290106
Test: verified by huangsean@
Change-Id: I0cd7c9eb2eadfe93b295f1669103ac36eb477026
2023-02-22 16:41:45 +08:00
Yung Ti Su
d81d9122cd audio: Merge telephony tuning tables
1.Handset
- Fine-tune AMS performance(AMS on only).
- Fine-tune the downlink performance for some failure items in objective test.
2.Handsfree
- Fine-tune AMS performance(AMS on only).
- Implement the tuning workaround for the known issue(Kid's voice).
3.Headset
- Leverage Handsfree uplink setting to TTY-VCO and Headphones.

Files from the latest attachment on b/269447151

Bug: 269447151
Test: verified by huangsean@
Change-Id: Ic65b8dc23c9f49c304b811939c8390c59bbec48b
2023-02-16 13:37:58 +08:00
Jasmine Cha
d3873b19c1 Merge "audio: update playback tuing and volume curve" into tm-qpr-dev 2023-02-15 01:08:54 +00:00
Yung Ti Su
db8e9c6665 audio: RC ver. tuning table release for Felix
Bluenote
MIC path :
MBDRC Threadhold_dB 44/44/44 (Band1/Band2/Band3)
MBDRC gain_dB 27
Limiter gain -2

Camcorder path :
MBDRC
MBDRC Threadhold_dB[1] 44/38/38  (Band1/Band2/Band3)
MBDRC gain_dB 27
Limiter_gain_dB -2
Surround Record
Add parameters for AZ2.1 version

Mixer_paths.xml
Change value from 1 to 0 in path "voice-rec-mic"
<ctl name="Mic Spatial Module Enable" value="1"/>

Files from the latest attachment on b/268005297

Bug: 268005297
Test: verified by cartercheng@
Change-Id: Id12c10022c9f36e983eea65dca7de35181d66d91
2023-02-14 16:17:23 +08:00
Jasmine Cha
52d20564fa audio: update playback tuing and volume curve
1. Media Playback tuning for F10 DVT Stage
2. Volume cuve tuning for media playback, notification,
   alarm and ringtone

Bug: 269036509
Test: manual test (b/269036509#comment5)

Change-Id: I0fa90aad3edce7022fe5be05d1835e8d4ec835a9
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-02-13 08:57:09 +00:00
Carter Hsu
70d72b1759 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: 267236408
Test: Hardware team verified, b/267236408#comment5
Change-Id: Ie90bcf3fb0cdabfa6848f686a542d32126dc33ff
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-02-01 07:15:40 +00:00
David Li
10068623e7 audio: Prepare the DVT cirrus tuning tables
1.Update fallback values for both top and bot speakers
2.Update the actisonic and FIR parameters
3.Update the fastswitch for swtiching the different scenarios(playback, voice call, low power)

Files from the latest attachment on b/264948011

Bug: 260653033
Bug: 264948011
Test: verified by jackwjchen@
Change-Id: I9ddfb9551d86dae02145175bf33778a82969734d
2023-01-13 18:13:36 +08:00
TreeHugger Robot
e9ca6d8395 Merge "audio: Prepare the DVT cirrus tuning tables" into tm-qpr-dev 2023-01-13 08:47:22 +00:00
David Li
8a9597f2da audio: Merge telephony tuning tables
1.Handset
- Adjust the AMS parameters to avoid false triggering.
- Fine-tune the downlink performance due to acoustic change in DVT.
2.Handsfree
- Optimize double talk performance.
- Fine-tune the downlink performance based on the new CIRRUS bin setting.
3.Headset
- Leverage Handsfree uplink setting to TTY-VCO and Headphones.
- Leverage Handsfree downlink setting to TTY-HCO.
4. mixer paths
- Modify the initial value of fast switch file
- Modify the D gain of the path "voice-speaker"

Files from the latest attachment on b/264972374

Bug: 264972374
Test: verified by huangsean@
Change-Id: Iba756795ec747a760b193428d6591959b902070f
2023-01-13 09:53:57 +08:00
David Li
43de26e29a audio: Prepare the DVT cirrus tuning tables
1.Update fallback values for both top and bot speakers
2.Update the actisonic and FIR parameters
3.Update the fastswitch for swtiching the different scenarios(playback, voice call, low power)

Files from the latest attachment on b/264948011

Bug: 260653033
Bug: 264948011
Test: verified by jackwjchen@
Change-Id: I6cfcde781c2abb23ba440afeb976e83e48765951
2023-01-12 09:35:27 +08:00
millerliang
900683d3b0 audio: change the EP for spatial audio
Bug: 260779305
Test: manual test
Signed-off-by: millerliang <millerliang@google.com>
Change-Id: Ib56d5727788ed56b3a7e4d0d184a615813456f17
2023-01-04 16:08:47 +08:00
Jasmine Cha
dfb4a78b3a audio: update waves table with thermal throttle
Change List
1. Add thermal throttling to all the preset (2nd link law)
2. Include spatial audio preset (Reserved Mode)

Validation Results
 Basic function Regression
 a. Stereo playback works.

Bug: 263850065
Test: manual test

Change-Id: Id0c790a73dce1035d516f5ac413bff1dae8cc074
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-29 08:42:39 +08:00
Jasmine Cha
713f005e5e audio: enable spatial speaker
Bug: 260779305
Test: manual test

Change-Id: If153e8a14419f845088800fc5ced6052eb4ff787
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-28 15:05:39 +08:00
Jasmine Cha
20fc19f50a audio: enable playback thermal throttle
Bug: 247793430
Test: manual test

Change-Id: Ic120438d1fb4d0d5b8ae307faf5bba9578670aba
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-27 16:29:38 +08:00
Jasmine Cha
f1800f68c5 audio: remove speaker-safe
Bug: 260062610
Test: manual test (b/260062610#comment11)

Change-Id: I0335f84d5164b9a7f80ba124ee0416575033cf0e
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-15 00:27:44 +00:00
Jasmine Cha
aa946e4dcb audio: update Waves tuning
<Change List>
1. Improved Piano distortion

<Validation Results>
 Basic function Regression
    a. Stereo playback works.
    b. Stereo playback works. (speaker-safe)

Bug: 262161151
Test: manual test on b/262161151#1

Change-Id: Icaec6164f47a3ef724ee1d99831f73bb000931e1
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-12 14:12:15 +08:00
millerliang
56e005a559 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: I11e6064cfd1070dd9dc5c0065a3840eaec73104a
2022-12-06 15:34:44 +08:00
David Li
2286593c72 audio: Merge telephony tuning tables
Change List :
Fortemedia - Handset
Fine-tune the downlink EQ of WB and SWB calls to avoid speech clipping
Optimize NS performance to improve voice quality

Files from the latest attachment on b/260303853

Bug: 260303853
Test: verified by huangsean@
Change-Id: I67bac456b7d490ab55d0423a8c352fb01a83b090
2022-11-24 16:19:00 +08:00