Commit graph

103 commits

Author SHA1 Message Date
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
TreeHugger Robot
9f06519c78 Merge "audio: waves: support speaker spatial in audio hal" into tm-qpr-dev 2022-11-24 01:26:09 +00:00
David Li
cfdd661f85 add DPE and GAPLESS_OFFLOAD and fix mmap-playback
Bug: 259008615
Test: boot up to home and test offload playback
Test: oboe output
Change-Id: Ia8a47510c54bc812a3fcc25e3c94f3fce01c3199
2022-11-23 07:07:16 +00:00
Jasmine Cha
9f422bce5f audio: waves: support speaker spatial in audio hal
- Disable control in audio hal first.
- introduce new output mode:
 - OM:1  - Folded
 - OM:9  - Unfolded
 - OM:60 - Clamshell
 - OM:11  - Unfolded reserve
 - OM:12 - Clamshell reserve
- preset: F10_xps1109.mps

Bug: 246747873
Test: build pass

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I8baca667cc4b564984aa0c169db4a0d45412cc3d
2022-11-17 10:41:20 +08:00
David Li
d5d92f2ef7 audio: Merge telephony tuning tables
Change List :
Fortemedia
Handsfree
Fine tune downlink for improving speech quality
Headset
Leverage the modification to HCO-RX (speakerphone downlink)
Mixer_paths
Modify the register of D gain in "voice-speaker"

Files from the latest attachment on b/259337130

Bug: 259337130
Test: verified by huangsean@
Change-Id: Ieaf426dba4cf1f032d796a0d739e36db457bca52
2022-11-16 13:34:22 +08:00
TreeHugger Robot
c3d2526429 Merge "audio: Merge telephony tuning tables" into tm-qpr-dev 2022-11-14 04:31:03 +00:00
David Li
a7e7cea3a8 audio: Merge telephony tuning tables
Change List :
Fortemedia_table
Handsfree
Fine tune downlink for SWB scenario
Headset
Leverage the setting to HCO-RX (speakerphone downlink)

Files from the latest attachment on b/258743598

Bug: 258743598
Test: verified by huangsean@
Change-Id: Ia8caab037aa4bc1224ae2c96cdf6df2b058e4140
2022-11-11 12:24:01 +08:00
David Li
48732726e0 audio: Mege media record tuning tables
Change List :

Bluenote
Initial first version for camcorder
Initial first version for voice recorder
Initial first version for voice recongnition

Mixer_paths
Add  <ctl name="Mic Spatial Module Enable" value="1"/> in path "voice-rec-mic"
Modify gain settings in path "voice-speaker"

Audio_platform
Add <cfg id="IN_VOICE_RECOGN_MIC_BE_CFG" tuning_id="77"/> in <cfg_attr>

Files from the latest attachment on b/258361196

Bug: 258361196
Test: verified by cartercheng@
Change-Id: I033ae20ea1354d8dc0a97ebef077a5d3ff9a557c
2022-11-11 02:53:51 +00:00
Jasmine Cha
be68b7ea3a audio: update waves preset 20221108
1. Add volume curve tuning (1st LinkLaw)

Bug: 258373582
Test: 258373582#comment1
  a. Stereo playback works.
  b. Mono playback works. (speaker-safe)

Change-Id: Ic30aa578588680addf72c06046bbe04483185e4e
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-11-09 16:22:44 +08:00
TreeHugger Robot
12642555e3 Merge "add CCA tuning block ID and change deep buffer and mmap format" into tm-qpr-dev 2022-11-08 11:12:38 +00:00
David Li
d032821eb7 add CCA tuning block ID and change deep buffer and mmap format
Bug: 257003729
Test: voice call for CCA
Test: youtube, oboe for deep buffer and mmap
Change-Id: I350cdf8e1eab200a1f2f607f3bd993a0df70fd42
2022-11-08 18:08:07 +08:00
Jasmine Cha
f8626e8653 audio: update Waves tuning
Bug:257241890
Test: b/257241890#comment1

Change-Id: I152d8230c11690077c48f85bec61a9267453ae3a
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-11-04 09:42:15 +08:00
Chase Wu
86104145dc Merge changes from topic "Vibrator_manager_project_path" into tm-qpr-dev
* changes:
  [DO NOT MERGE] cs40l26: Enable vibrator manager feature
  cs40l26: Add vibrator manager support
  [DO NOT MERGE] cs40l26: using the project folder mk
  cs40l26: Move the latest vibrator HAL to device
  vibrator: Separate the audio coupled haptics setting
2022-11-03 07:36:38 +00:00
David Li
56f695f0f6 audio: Merge telephony tuning tables
Change List :
Fortemedia_table
Handset
>>Fix the AMS function false alarm
>>Fix the EC/NS on or off in VoIP, b/255491783
Handsfree
>>Optimize downlink tuning for better listening quality
>>Fix the EC/NS on or off in VoIP, b/255491783
Headset
>>Leverage Handsfree uplink to TTY-VCO, Condor-Headphones
>>Leverage Handsfree downlink to TTY-HCO

Files from the latest attachment on b/256978669

Bug: 255491783
Bug: 256978669
Test: verified by huangsean@
Change-Id: Ie0f410b1de26962ba57198e250e63763f3cf22af
2022-11-02 15:11:13 +08:00
Chase Wu
5f1601be55 vibrator: Separate the audio coupled haptics setting
Bug: 181615889
Test: trigger a2h via pixel ringtone and alarm apk
Signed-off-by: Chase Wu <chasewu@google.com>
Change-Id: Icd74aa8c46f939fdec68f0250cf18940f5bead33
2022-10-28 23:31:03 +08:00
Jasmine Cha
c6c0e46128 audio: enable telephony thermal throttle
Bug: 248461803
Test: Voip with speaker

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I3fb2ace143ad80e7fb3399885bfc22b53a555ea1
2022-10-25 14:25:36 +08:00
Jasmine Cha
15b844bd9b audio: initial waves tuning
<Change List>
1.  Initial tuning for F10 EVT Stage

Bug: 255458384
Test: LR mix/swap, 255458384#comment1

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ia87c9cbb7c1cef83306dc0ba61cb2eddda9901e5
2022-10-25 11:14:04 +08:00
David Li
458ead019f audio: Merge telephony tuning tables
Change List :
Fortemedia_table
Handset
Fine-tune Handset performance based on EVT device.
Handsfree
Fine-tune Handsfree performance based on EVT device.

Mixer_paths
Handsfree
Add fast_switch command.

Audio_platform
Add the CCA control
Modify VoIP downlink channel for SS

Files from the latest attachment on b/253202312

Bug: 253202312
Test: verified by huangsean@
Change-id: I5db1b31315a8d5235014b8c59f7add5f9cd62e04
2022-10-18 17:31:01 +08:00
Yung Ti Su
95a10f74ae Enable the spatial audio function
Bug: 248470366
Test: manual

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: Ie1282d6550052c4bffacaa0b88388bbabe73a208
Merged-In: Ie1282d6550052c4bffacaa0b88388bbabe73a208
2022-10-13 20:06:26 +08:00
Jasmine Cha
70859eb837 audio: enable hinge angle control and BAACL
Bug: 247793430
Test: manual test / LR mixed / LR swap

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib3af6e2aeba1f90000e88fd6aceddd6aef85518d
2022-10-13 13:48:06 +08:00
David Li
964f4b6f17 audio: Audio: Update F10 EVT model
1. Release F10 EVT model
2. Enable FIR
3. Enable PICL 3A/3V

Files from the latest attachment on b/249171919

Bug: 249171919
Test: verified by hardware engineers
Change-id: Ie6888acf43e65755196701ce61afc8c10e08bba1
2022-09-27 06:12:00 +00:00
Carter Hsu
06b1015c13 Merge "audio: allow Fortemedia to notify setting to CCA" into tm-qpr-dev 2022-09-23 02:53:10 +00:00
David Li
d857332aea Merge "audio: Phase in related telephony tuning tables" into tm-qpr-dev 2022-09-21 10:19:08 +00:00
Carter Hsu
51299b7044 audio: allow Fortemedia to notify setting to CCA
Bug: 237720492
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia6724be4c013e90d6da098bdf2f693f25c6c8e4c
2022-09-21 09:20:21 +00:00
David Li
06f092a355 audio: Phase in related telephony tuning tables
Change List :

Fortemedia:
Headset :
Leverage the HEADSET tables from P10C10-QPR.
Bluetooth :
Leverage the BLUETOOTH tables from P10C10-QPR.
Handset :
Fine tune Handset performance based on Proto device.
Handsfree :
Fine tune Handsfree performance based on Proto device.

Mixer paths:
Handset :
Modify Amp gain for Handset mode.
<ctl name="E AMP PCM Gain" value="9"/>
Handsfree :
Add fast switch CMDs, but it is currently disabled because the CIRRUS bin is not ready yet.

Files from the latest attachment on b/246467939

Bug: 246467939
Test: verified by hardware engineers
Change-id: Ifb738a71c97c96ddd3e34c6fbbd46e7f7d1bd628
2022-09-21 03:26:02 +00:00
vincenttew
dce562178a 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: If4d63a1b994bb8f6e508a3d666bb251a20e7dec6
2022-09-20 07:29:41 +00:00
Carter Hsu
ed53eed43d audio: enable USB clock boost on SWB voice-call
Bug: 245421488
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: If36b80fa8201d6cbaffc097ee1f592f11408661d
2022-09-07 01:12:04 +00:00
David Li
dd7d9b0a47 audio: Modify mixer_paths_factory.xml amp3 VMON enable
Modify mixer_paths_factory.xml amp3 VMON enable

Files from the latest attachment on b/241753810

Bug: 241753810
Test: verified by hardware engineers
Change-id: I48efaa9fe1ff1721c07da0d052ca146259e14fd7
2022-08-08 11:33:00 +00:00
David Li
5671430ba6 audio: change VOIP playback channel count to stereo
Bug: 240674257
Test: Google Meet
Change-Id: Id34825e13d8e993c8fd831486cd57636f3f77ca5
2022-08-05 15:07:29 +08:00
David Li
41955b5aab audio: update mixer_paths_factory.xml to fix USB loopback issue
Bug: 238280857
Test: verified by audio tool commands
Change-Id: I2fe137f8fc922d71de1711ebecab3f294dc552d8
2022-07-11 06:59:22 +00:00
David Li
666d40597c audio: modify fortemedia and cirrus amp arguments
Bug: 235952749
Test: verified by hardware engineers
Change-Id: I1341b02c0a38131c225af28223d3f760c6b3590b
2022-06-27 07:08:19 +00:00
David Li
831b1c21c7 audio: update cs35l41 tuning tables
1. 1st speaker model for proto device
-Release xmax and tmax back to performance level after optimizing the model

Bug: 232053965
Test: verified by @jackwjchen@google.com
Change-Id: I7c3058e3e8137ad594ec02a7e10c4d6d81d9b823
2022-06-20 09:17:39 +00:00
David Li
e51183b246 audio: update FM tables
BLUETOOTH - The same
HEADSET - Modify TTY-HCO with P7 Downlink parameters
HANDSET - Modify all downlink settings with P7 parameters
HANDSFREE - Modify all downlink settings with P7 parameters

Bug: 235952749
Test: verified by @huangsean@google.com
Change-Id: I5ceed0fee9d07252090a63599f5b363930ab4f1f
2022-06-20 09:16:25 +00:00
YB_Chiu
f55e335f12 add mic software gain initial value
sync the solution from C10/P10

Bug: 234337030
Test: verify it with a updated mixr table, and it works
Change-Id: I74272c762961731156e11c4aa4b003e5eaf536a5
Signed-off-by: YB_Chiu <yubinc@google.com>
2022-05-31 17:33:27 +08:00
David Li
cfeb69e930 Merge "update Cirrus tuning tables and sampling rate settings" into tm-qpr-dev 2022-05-24 02:17:23 +00:00
Carter Hsu
f86b394978 Merge "audio: update Fortemedia VoIP condition to reserve2" into tm-qpr-dev 2022-05-13 09:04:43 +00:00
David Li
c564cf7b82 update Cirrus tuning tables and sampling rate settings
Bug: 232053965
Bug: 232056375
Test: n/a
Change-Id: Id8ca49fa8bb7a54caff61706e71b3083d205df6d
2022-05-12 15:36:21 +08:00
Carter Hsu
6ab2705aa1 audio: update Fortemedia VoIP condition to reserve2
Bug: 226869868
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I3917a43c265dfd8ecfcbc3535ca79fffac1ceb5a
2022-05-09 03:25:13 +00:00
Carter Hsu
661f4cc1b8 audio: allow mmap-record to set dsp volume
Bug: 231630423
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia85b57a58d732bc0c18108dfab610145b0455c7e
2022-05-06 09:20:09 +00:00
David Li
e6ed25576d change usb headset gain control to sw gain control
Bug: 230037541
Test: n/a
Change-Id: I50be8184f1fc0050aa16d4f772ef2a69f326e10b
2022-05-03 06:57:17 +00:00