Commit graph

55 commits

Author SHA1 Message Date
Jasmine Cha
a5a158241b audio: create audio hal aidl config am: fc75f338a2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/21734152

Change-Id: Id09db4bfe61de4598a31797fe8cc063e89960cbf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-17 05:26:25 +00:00
Jasmine Cha
fc75f338a2 audio: create audio hal aidl config
Bug: 206738075
Test: build pass

Change-Id: Iaa571e7079782eaa0b07bf268f77d6f3e0884c62
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-17 09:54:28 +08:00
Carter Hsu
574acbbe49 audio: enable ultrasonic proximity detection
Bug: 271379466
Test: tried with test build
Change-Id: I1d4eda4511ea3eaeb0b71b4f36b20eadb9a08316
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-03-09 16:15:56 +08:00
Carter Hsu
3e0c11e6d4 Merge "audio: FM table check in (2023/03/02) for telephony." into udc-d1-dev 2023-03-06 02:48:20 +00:00
Carter Hsu
2d9fe636b8 audio: FM table check in (2023/03/02) for telephony.
-SB3 Handset(Duncan)
1: Fine tune SWB RFR for subjective listening
2: Update NB/WB NS parameter
3: Decrease PGA gain(13dB gain) for Codec gain feature
4: Fine tune NB/WB/SWB FFP/BVE setting
5: Update Custom2 usecase with light NS

-HK3 Handsfree (Ricky)
1. EVT1.0 fine tuning - downlink in NB/WB/SWB
2. Volume curve tuning for all bands
3. Modify PGA gain for Codec gain feature

- SB3 HE (Gene)
HE NS parameter update for NB, WB and SWB

- SB3 Headset/Bluetooth (Ricky)
1. Sync Handsfree TX setting to VCO-TX, Headphone-TX, BT-HAC-TX
2. Sync Handsfree RX setting to HCO-RX

Files from the latest attachment on b/271388793

Bug: 271388793
Test: verified by rickycheng@
Change-Id: If40b74cdb98ae28d6ac129f620e0537bddde8d68
2023-03-03 09:06:18 +08:00
Carter Hsu
069b29286f audio: FM table check in (2023/03/02) for telephony.
- HK3 Handset.dat (Owen) based on EVT1.0 device
1. Modify WB/NB Rx FFP (MaxGgain: 9dB) / TDDRC (Slant: 7FFF) / EQ for loudness tuning(Acoustic safety)
2. Modify SWB Rx TDDRC (gain:13dB) / FFP (MaxGgain:10.5dB & Tpka: -17dB) / EQ for loudness tuning
3. Modify NB/WB/SWB Tx NS settings(v0218) for 3QUEST and noise leakage
4. Restore NB/WB/SWB UL PGA_0/_1 gain from 20dB to 7dB for codec gain issue fix
5. Copy item 1./2./3./4. Tx/Rx settings of Handset | Voice_Generic to Handset | Tmobile-US & Reserve2
6. Copy item 3./4. Tx settings of Handset | Voice_Generic to Handset_HAC | Voice_Generic & Tmobile-US & Reserve2
7. Enable NS with Post filter for nolinear EC in Handset | Custom2 for talk back

-HK3 Handsfree (Ricky)
1. EVT1.0 fine tuning - downlink in all bands
2. Volume curve tuning for all bands
3. Modify PGA gain for Codec gain feature

- HK3 Headset/Bluetooth (Ricky)
1. Sync Handsfree TX setting to VCO-TX, Headphone-TX, BT-HAC-TX
2. Sync Handsfree RX setting to HCO-RX

- HK3 HE (Gene)
HE NS parameter update for NB, WB and SWB

Files from the latest attachment on b/271389412

Bug: 271389412
Test: verified by rickycheng@
Change-Id: I0d616ae50e1f02977bf57d9bfb00108ee76190e0
2023-03-03 09:05:31 +08:00
TreeHugger Robot
706b609f5a Merge "audio: enable waves BAACL/playback throttle" into udc-dev 2023-03-01 06:47:25 +00:00
Jasmine Cha
a126119dfa audio: enable waves BAACL/playback throttle
- use BAACL/playback thermal throttle action in ini
- use default settings for BAACL and playback thermal throttle.

Bug: 267100178
Test: push and check lr swap/mixed by adb commands

Change-Id: I5f43fe3ee39be8c06d8d5024462df2f696a0a6eb
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-03-01 13:36:01 +08:00
TreeHugger Robot
2a3412115f Merge "audio: update speaker tuning files" into udc-dev 2023-03-01 04:16:55 +00:00
TreeHugger Robot
d2daa8004e Merge "[P23] Enable LE Audio broadcast offload" into udc-dev 2023-03-01 04:04:53 +00:00
Robert Lee
51f750748c audio: update speaker tuning files
Changelist:
1.Update EVT model on both top and speaker
2.Update PICL/FIR parameters
3.Update fast_switch table for FIR usuage

Bug: 243497194
Test: builds
Change-Id: I0a3de584bda91b158fa2875a29df589a2ddbe462
Signed-off-by: Robert Lee <lerobert@google.com>
(cherry picked from commit cbbb8e101a)
2023-03-01 02:17:09 +00:00
Robert Lee
6f6c5a53f4 audio: update speaker tuning files
Change list:
1. EVT Speaker Model(Include PICL/FIR)
2. FIR fast switching table

Bug: 243626704
Test: builds
Change-Id: If8114758870938a10e67b27e5271b1960ba33697
Signed-off-by: Robert Lee <lerobert@google.com>
(cherry picked from commit cb03e18cfd)
2023-03-01 02:13:52 +00:00
TreeHugger Robot
4d1376b0ad Merge "haptics: update hapitcs sink and slot setting" into udc-dev 2023-02-28 16:55:22 +00:00
Patty Huang
f5c46e3aa7 [P23] Enable LE Audio broadcast offload
1. Set the LE Audio broadcast switcher property
2. Enable LE Audio broadcast profile
3. Add support for BLE Broadcast output in audio policy file
4. Add broadcast offload capability

Test: Manual
Tag: #feature
Bug: 268170293
Change-Id: I423d08442a99cf73535f5664f81c722c62b60996
2023-02-24 06:32:43 +00:00
Jasmine Cha
934d7c4e5c audio: update waves, media speaker volume curve
Merge notes:
* Update max volume for loudness, bass, stereo, dynamics,
  distortion improvements.
* Update entire volume curve for competitve listening
  experience.
* Update entire volume curve within 1dBSPL of previous vol curve
  (to be matched within 0.5dB on next iteration).
* Moved all volume curve gains from output trim to XML
* Tuned to pass power for Pink 13dB CF noise on speaker loads
  for battery and thermals (40C - 41C skin temp).

Tuning gaps:
* No thermal throttle merged (2nd LL) yet (next iteration pre
  dogfood), so TMO use case unknown still.
* No BAACL tuning merged yet (next iteration pre dogfood)
* Non-media sounds / vol curve not yet tuned

Testing gaps:
* No monsoon testing (to be setup for next iteration)
* No official thermal testing (to be setup for next iteration).

Bug: 270274623
Test: manual test

Change-Id: I26ece68c56c98593c68cf5d7bda979a2a9af5565
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-02-23 10:30:00 +08:00
Carter Hsu
6aa5ce6f08 Merge "audio: Audio platform, Mixer_paths, Fortemedia table check in (2023/02/17) for telephony." into udc-dev 2023-02-21 02:36:54 +00:00
Carter Hsu
e642dcc061 Merge "audio: Audio platform, Mixer_paths, Fortemedia table check in (2023/02/17) for telephony." into udc-dev 2023-02-21 02:36:32 +00:00
Tai Kuo
be92d60ec5 haptics: update hapitcs sink and slot setting
Bug: 270023634
Test: trigger audio coupled haptics via sound picker app
Change-Id: I3ae69d93d0a392d880b056579fc1f4efbdd7bc01
2023-02-20 21:12:47 +08:00
Carter Hsu
9fa6146161 audio: Audio platform, Mixer_paths, Fortemedia table check in (2023/02/17) for telephony.
1. Mixer_path: Adding FIR fast switch in voice-speaker (ON) and speaker (OFF)
2. Audio_platform: Enable MCPS table for lib v622
3. MCPS: Change MCPS for lib v622

Files from the latest attachment on b/269713919

Bug: 269713919
Test: verified by rickycheng@
Change-Id: I94b53c772e12b072dd20e8f08ebedf935809356c
2023-02-20 13:23:03 +08:00
Carter Hsu
f3ec3f642f audio: Audio platform, Mixer_paths, Fortemedia table check in (2023/02/17) for telephony.
1. Mixer_path: Adding FIR fast switch in voice-speaker (ON) and speaker (OFF)
2. Audio_platform: Enable MCPS table for lib v622
3. MCPS: Change MCPS for lib v622

Files from the latest attachment on b/269713682

Bug: 269713682
Test: verified by rickycheng@
Change-Id: Ia3953ac6254e03df9708018c4d170a21129c6e5d
2023-02-20 13:17:55 +08:00
Jasmine Cha
0a614e1716 audio: update playback tuning and volume curve
Merge notes:
* Update full volume curve for sound quality (bass, depth, stereo)
* Updated max volume for louder, punchier, more powerful experience
* Updated volume curve to pass power budgets (based on volume
  20-25 = P10 + 300mW and volume 1-19 = P10).
  - Power testing only based on speaker load (not full monsoon battery
    testing).
  - Only risk at volume 22, over power budget by ~50mW, very small
    increase but can deal with it next iteration before dogfood.
* Update volume curve top volumes to pass heat budget at 41-42C skin
  temp for nominal use case (13dB CF pink noise).

Tuning gaps:
* No thermal throttle merged (2nd LL) yet (next iteration pre dogfood),
  so TMO use case unknown still.
* No BAACL tuning merged yet (next iteration pre dogfood)
* Still some bass distortion at top volume steps (need to address bass
  and piano distortion still).  Not clean but very natural vocals w/
  decent pitch reproduction.

Bug: 269384043
Test: manual test from 269384043#comment10

Change-Id: I01edeb0f5d56d2978f13523fe7ee7dd0f9e253b0
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-02-18 06:48:57 +00:00
Carter Hsu
96c6842d7c Merge "audio: FM table check in (2023/02/09) for telephony." 2023-02-13 03:08:13 +00:00
Carter Hsu
1866688f6f audio: FM table check in (2023/02/09) for telephony.
- SB3 Handset (Duncan)
1. Update FFP and BVE parameter
2. Update NB/WB/SWB RFR and RLR

- SB3 Handsfree (Ricky)
1.  Echo / ECDT fine tune parameter for all bands.
2. NS fine tune parameter for all bands.

- SB3 Handsfree (Ricky)
1.  Echo / ECDT fine tune parameter for all bands.
2. NS fine tune parameter for all bands.

- SB3 Headset/Bluetooth (Ricky)
1. Sync Handsfree TX setting to VCO-TX, Headphone-TX, BT-HAC-TX
2. Sync Handsfree RX setting to HCO-RX

Files from the latest attachment on b/268454089

Bug: 268454089
Test: verified by rickycheng@
Change-Id: I2f7aaaeb085d59480b9916763f2991d551dfa0a6
2023-02-10 12:41:44 +08:00
Carter Hsu
14a3a1b4bb audio: FM table check in (2023/02/09) for telephony.
- HK3 Handset.dat (Owen)
1. Copy NB/WB/SWB Tx NS Para of Handset | Voice_Generic to Handset | Tmobile-US & Reserve2
2. Copy NB/WB/SWB Tx NS Para of Handset | Voice_Generic to Handset_HAC | Voice_Generic & Tmobile-US & Reserve2
3. Modify NB, WB and SWB Tx/Rx FDEQ of Handset | Voice_Generic to get more margin to 3GPP FR and TIA-5050 FR/Distortion limits.
4. Copy Tx/Rx Para of item 3. to  Handset | Tmobile-US & Reserve2
5. Copy Tx Para of item 3. to Handset_HAC | Voice_Generic & Tmobile-US & Reserve2
6. Modify SWB Rx PGA gain from -3 to -2.5 for Handset | Voice_Generic & Tmobile-US & Reserve2
7. Modify WB Rx TDDRC gain from 6 to 7 for Handset | Voice_Generic & Tmobile-US

- HK3 Handsfree (Ricky)
1.  Echo / ECDT fine tune parameter for all bands.
2. NS fine tune parameter for all bands.

- HK3 Headset/Bluetooth (Ricky)
1. Sync Handsfree TX setting to VCO-TX, Headphone-TX, BT-HAC-TX
2. Sync Handsfree RX setting to HCO-RX

Files from the latest attachment on b/268454667

Bug: 268454667
Test: verified by rickycheng@
Change-Id: If2f1f7955d38239200725241e1f9fa05b8180d18
2023-02-10 12:05:22 +08:00
TreeHugger Robot
52cafd6591 Merge "The 3rd table release for Husky" 2023-02-02 03:29:37 +00:00
yixuanjiang
9c4350fa44 The 3rd table release for Husky
The change item are template.xml and recording.gatf which could be found in the ZIP file.

1. For template.xml: add ID73~ID80 in the new WNR library
2. For recording.gatf: update MBDRC
     MIC path :
     MBDRC Threadhold_dB[1] 44/44/44 (Band1/Band2/Band3)
     MBDRC gain_dB 27
     Limiter gain -2

     Camcorder path :
     MBDRC Threadhold_dB[1] 44/38/38  (Band1/Band2/Band3)
     MBDRC gain_dB 24
     Limiter gain 0
     KneeWidth[2] 6 -> 0
     Limiter_gain_dB -2 -> -0.2

Bug: 265891489
Test: HW Darren verified
Change-Id: I53ab11ab3be2180a0fef6e231890bd0c815d239f
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-02-02 02:17:47 +00:00
TreeHugger Robot
3c28f2ea06 Merge "audio: enable gapless offload" 2023-02-01 11:25:25 +00:00
yixuanjiang
5046bf0b3e The 3rd table release for Shiba
The change item are template.xml and recording.gatf which could be found in the ZIP file.
For template.xml: add ID73~ID80 in the new WNR library
For recording.gatf: update MBDRC MIC path : MBDRC Threadhold_dB[1] 44/44/44 (Band1/Band2/Band3) MBDRC gain_dB 27 Limiter gain -2
Camcorder path : MBDRC Threadhold_dB[1] 44/38/38 (Band1/Band2/Band3) MBDRC gain_dB 24 Limiter gain 0 KneeWidth[2] 6 -> 0 Limiter_gain_dB -2 -> -0.2

Bug: 265884472
Test: verified by HW jacky
Change-Id: I8e01794556437fa6b74e0ca6e972778272741717
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-01-18 10:53:03 +00:00
yixuanjiang
87dfa6319a The 2nd table release for Shiba
The change item is recording.gatf which could be found in the ZIP file.
for recording.gatf

change parameter for MBDRC in all scenarios
Mackup_gain_dB 24 -> 27.0
Min_Gain_dB -25 -> -29.0
Threadhold_dB[1] -44 -> -38
CompressRatio [1]0.8 -> 1.0
CompressRatio [2]0.2 -> 0.0
KneeWidth[2] 0 -> 6
Limiter_gain_dB -0.2 -> -2
Change IIR2 8kHz to 2dB

Test: verified by HW wjacky@
Bug: 264746360
Change-Id: Icb53d0429fe8adab43a1743bedb71ee81eafd947
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-01-09 08:52:17 +00:00
TreeHugger Robot
e8b36af8e3 Merge "audio: 2nd table release for Husky" 2023-01-07 15:26:20 +00:00
TreeHugger Robot
36460c90e4 Merge "audio: First FM table check in (2023/01/05) for telephony." 2023-01-07 08:06:15 +00:00
TreeHugger Robot
b2cbba2262 Merge "audio: First FM table check in (2023/01/05) for telephony." 2023-01-07 08:06:09 +00:00
yixuanjiang
c146e333d7 audio: 2nd table release for Husky
There's only recording.gatf in the ZIP file.

for recording.gatf
change parameter for MBDRC in all scenarios.

Mackup_gain_dB
24 -> 27.0
Min_Gain_dB
-25 -> -29.0
2nd_threadhold_dB
-44 -> -38
compressRatio
2.0 -> 2.0
0.8 -> 1.0
0.2 -> 0.0
3rd_kneeWidth
0 -> 6
limiter_gain_dB
-0.2 -> -2

Files from the latest attachment on b/264731513

Test: local
Bug: 264731513
Change-Id: If2b47715286bad673d4a9a7f1c1f86d29d032ac7
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2023-01-07 15:33:49 +08:00
Robert Lee
a95c6b5ee3 Merge "audio: update tuning bin file and table for 48K playback" 2023-01-06 10:47:56 +00:00
David Li
a1a6b76c99 audio: First FM table check in (2023/01/05) for telephony.
//SB3
Handset: Duncan
1: Modify NB/WB/SWB gain setting and IIR setting to meet 3GPP requirements

HAC: Owen/Duncan
1. Modify NB/WB/SWB DL FDEQ slightly to meet Y-axis magnetic FR reqs of HAC v2019
2. Copy DL settings above to Handset_HAC TMOUS / RESERVE2

Handsfree: Ricky
1. All band first tuning release for Proto stage

BT:  Gene
1. Fine tune BT EL for NB WB SLR
2. BT HE table version from 1.3.1 to 1.3.3
3. Make HK BT LE EASSA to be same with SB (SB is correct originally)

Files from the latest attachment on b/264499596

Bug: 264499596
Test: verified by rickycheng@
Change-Id: I09730d343f27cec4ae4a285373f2b05daa6b2423
2023-01-05 16:19:47 +08:00
David Li
b4c69615bf audio: First FM table check in (2023/01/05) for telephony.
//HK3
Handset: Owen
1. Modify NB/WB/SWB DL FDEQ, TDDRC Gain, and SPK_Vol Gain(NB only) for 3GPP regs.
2. Modify NB/WB/SWB UL PreEQ MIC1 based on HK3 MIC Acoustic performance to match MIC0 FR
3. Modify MIC distance DIST2REF1 to 166mm based on HK3 MIC placement
4. Set NB/WB/SWB UL PGA_0/_1 gain as 20dB(from 6dB) to cover codec gain issue as a short term
5. Copy the settings above to Handset TMOUS / RESERVE2
6. Modify NB/WB/SWB Tx NS para from FM simulation to improve S-MOS(Handset Generic only)

HAC: Owen
1. Modify NB/WB/SWB DL FDEQ slightly to meet Y-axis magnetic FR reqs of HAC v2019
2. Copy DL settings above to Handset_HAC TMOUS / RESERVE2

Handsfree: Ricky
1. All band first tuning release for Proto stage

BT:  Gene
1. Fine tune BT EL for NB WB SLR
2. BT HE table version from 1.3.1 to 1.3.3
3. Make HK BT LE EASSA to be same with SB (SB is correct originally)

Files from the latest attachment on b/264499619

Bug: 264499619
Test: verified by rickycheng@
Change-Id: I709998c8aa108ef21211176b6e8c50b983b2e5a0
2023-01-05 16:17:10 +08:00
juyuchen
0bf430b32a audio: enable gapless offload
Bug: 264321094
Test: manual audio tests
Change-Id: Iddaa9a026e9fafea8d65a495e9bcd1ff716a55e9
Signed-off-by: juyuchen <juyuchen@google.com>
2023-01-05 15:21:00 +08:00
TreeHugger Robot
258077f1d1 Merge "add support for BLE offload case in audio policy" 2022-12-26 05:13:00 +00:00
TreeHugger Robot
e34bd0f799 Merge "audio: 1st table release for Husky" 2022-12-23 09:16:12 +00:00
David Li
3bdfceaadb audio: 1st table release for Shiba
There are recording.gatf and template.xml in the ZIP file.
for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC
for template.xml
correct SUR module ID

Files from the latest attachment on b/263448513

Bug: 263448513
Test: verified by wjacky@
Change-Id: I7d7dc2496ee3cf37b35b30f34b9f72febc512189
2022-12-23 10:00:30 +08:00
David Li
ca98913a34 audio: 1st table release for Husky
There are recording.gatf and template.xml in the ZIP file.

for recording.gatf
Camcorder path : IIR1(high pass), SUR(calibrated filter), IIR2(high pass), AGC (-24 ideal RMS), MBDRC ( -44 threshold)
MIC path: correct MBDRC

for template.xml
correct SUR module ID with AZ1.0 parameters

Files from the latest attachment on b/263449687

Bug: 263449687
Test: verified by darrenyen@
Change-Id: I5a31582ecf6b8f8b81be7e61079e172bddb09ba0
2022-12-23 09:41:06 +08:00
Robert Lee
a11f088032 audio: update tuning bin file and table for 48K playback
Bug: 261807510
Bug: 243626704
Bug: 243497194
Test: Builds
Change-Id: Idd50d9b5de0f183e9373e888cca3f93af03c428d
Signed-off-by: Robert Lee <lerobert@google.com>
2022-12-22 20:25:50 +08:00
Yung Ti Su
81f4134629 add support for BLE offload case in audio policy
Bug: 257377746
Test: manual

Change-Id: Id9a2c528fd51898d59c3234b05cd606d7ebd9dc2
Signed-off-by: Yung Ti Su <andysu@google.com>
2022-12-16 16:09:58 +08:00
Jasmine Cha
9b66a4e09d audio: update waves tuning
- Full tuning includes volume curve to match previous pixel
  at volume 18 to 1 perceived loudness.
- Passes all power targets
- Pass top speaker heat budget for 40C skin
- Fails bottom speaker heat budget for 40, 41, 42C skin.  Passes 43C skin.
- Test acoustics shows superior performance to past premium.

Bug: 262787252
Test: manual test

Change-Id: Iec4664f0f1ad7499caf5e3cde2158151ca849111
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-16 09:00:20 +08:00
TreeHugger Robot
eb2d1dec89 Merge "fix usb factory loopback/playback/capture fail" 2022-12-15 10:23:00 +00:00
vincenttew
5f962c00c0 fix usb factory loopback/playback/capture fail
Test: factory command, normal playback/capture
Bug: 245503800
Change-Id: I5f9aa710725f6e9869e7632f0c268e9e67f925c5
Signed-off-by: vincenttew <vincenttew@google.com>
2022-12-15 16:57:44 +08:00
Jasmine Cha
7023b26da0 audio: update volume curve for power budget
Bug: 262473484
Test: manual test

Change-Id: I98ea8ffa08a7d7fee3c48df936dee2640072c2b2
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-15 01:55:12 +00:00
Jasmine Cha
15548e038e audio: waves tuning table
- Full tuning includes volume curve to match previous project at
  volume 18 to 1 perceived loudness.
- Passes all power and skin thermal targets
  (for 40C skin temp sustained power)
- Test acoustics shows superior performance to past premium (R4, C10)

Bug: 262473484
Test: manual test

Change-Id: Icc1dee1782d9919195aa161bc5b99708c489fc66
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2022-12-14 13:39:13 +08:00
Yung Ti Su
082d1b6417 Enable the spatial audio function
Bug: 254771189
Test: manual

Change-Id: I8fa9864103879efc10362695254e887629c46e10
Signed-off-by: Yung Ti Su <andysu@google.com>
2022-12-05 05:57:51 +00:00
TreeHugger Robot
6818dd02b8 Merge "audio: update tuning bin files" 2022-12-02 03:36:19 +00:00