Commit graph

57 commits

Author SHA1 Message Date
Grzegorz Kolodziejczyk (xWF)
eb25e489aa Merge "audio: enable software encoded Bluetooth broadcast" into main 2024-10-01 12:30:35 +00:00
Grzegorz Kołodziejczyk
f3fe769cac audio: enable software encoded Bluetooth broadcast
Bug: 345372436
Test: manual
Flag: EXEMPT, trivial change
Change-Id: Ibf998bd3194bb704dfa50e876f449687040f2c8c
2024-09-20 08:29:16 +00:00
Miller Liang
d006e63e11 Merge "audio: fix the noise of raw-playback in 16kB page mode" into main 2024-09-12 01:26:14 +00:00
JJ Lee
80d1365e54 audio: power optimization for deepbuffer playback
Bug: 249436330
Test: build pass, cts pass, regression test pass
Flag: EXEMPT bugfix
Change-Id: Iacf4ad1ade7148491b24e7bd0f1e423f0a6d34de
Signed-off-by: JJ Lee <leejj@google.com>
2024-08-28 08:21:55 +00:00
millerliang
23497f9244 audio: fix the noise of raw-playback in 16kB page mode
To fix the noise of raw-playback in 16KB page mode,
we change to use non-mmaped mode.

Bug: 355285548
Flag: EXEMPT : bugfix
Test: Local test, ABTD
Change-Id: I21cca03b5ceff10c014675bd2465d5fc051e8250
2024-08-24 08:39:59 +00:00
vincenttew
ef1a3cc698 audio: add sound dose offset curve
Bug: 313395588
Test: boot to home, HIDL/AIDL w/wo xml configuration
Change-Id: I5d5b2e74f46eb0ca6d1f21b29e22019d9b3f25fa
Signed-off-by: vincenttew <vincenttew@google.com>
2024-06-14 02:38:15 +00:00
Carter Hsu
07abb4dd58 audio: remove unused device
Bug: 337191827
Test: build pass
Change-Id: I6380c8feb03475133f25829a571cb2d3c83eaa22
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-04-27 02:07:04 +08:00
Treehugger Robot
ae15605e66 Merge "audio: update opus support format" into main 2024-04-17 18:09:26 +00:00
Juyu Chen
e442d42a04 audio: update opus support format
Bug: 329872757
Test: cts tests

Change-Id: Ie2dd241a1d104028a0ebacc77efc12b6972e226b
Signed-off-by: Juyu Chen <juyuchen@google.com>
2024-04-16 04:11:12 +00:00
vincenttew
4dbadce5a3 audio: remove non-supported analog headset
Bug: 329470379
Change-Id: Ie18313b750086481b2fcad9194d55dabed0cdd8f
Signed-off-by: vincenttew <vincenttew@google.com>
2024-03-27 11:24:55 +08:00
Carter Hsu
397cab2166 Merge "audio: support incall capture dl/ul concurrent recording" into main 2023-12-26 09:56:17 +00:00
Treehugger Robot
5f3e60c70a Merge "audio: add HIDL SoundDose libraries & framework config" into main 2023-12-26 05:31:36 +00:00
vincenttew
8ce7e53cff audio: add HIDL SoundDose libraries & framework config
Test: build pass, playback pass
Bug: 315916092
Change-Id: Id851229b31a5d1ddcac30e3e92010fd2a55b76a4
Signed-off-by: vincenttew <vincenttew@google.com>
2023-12-26 03:46:20 +00:00
Carter Hsu
bfa3513cdc audio: support incall capture dl/ul concurrent recording
Bug: 317726514
Test: Verified by test build
Change-Id: I6095545e001cdc1f38e5303d5f28d699c6e8f02f
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-12-26 00:59:21 +00:00
Carter Hsu
74f94def6a audio: add opus support for decoded offload
Bug: 307837960
Test: see the bug
Change-Id: Ic059da601ef23d6e2fa3b62f70abba001560ee78
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-10-26 01:52:04 +00:00
Carter Hsu
270debe4aa audio: using Fortemedia mcps table
Bug: 295415355
Test: Verified at b/295415355#comment4
Change-Id: Ia5027a73af93db3f77acb96d236b828760dc2d3d
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-09-04 05:18:14 +00:00
Carter Hsu
8c5fbef7ed Merge "audio: disable Fortemedia MCPS table" into udc-d1-dev am: c80c66cb25
Original change: https://googleplex-android-review.googlesource.com/c/device/google/shusky/+/24211589

Change-Id: I85fc3e1c93c7f6b5e58a7a0fed4d00275f848f8a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-02 01:39:57 +00:00
Carter Hsu
559f36c30a audio: disable Fortemedia MCPS table
Use the HAL code to control the MCPS and boost
the handset MCPS on SWB scenario

Bug: 292154162
Test: verified on test build
Change-Id: I6418e13a37d9b9d796f726218ce9b5de2534efa9
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-08-01 07:06:26 +00:00
Carter Hsu
ea872f8172 audio: adding HDMI to all policy configurations
Bug: 264508873
Test: build pass
Change-Id: I3a55089732bee260817ea28874a92d8ae5b9b4f3
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-07-26 00:39:04 +00:00
Robert Lee
7339e8dbe1 Merge "audio: add hdmi path" into udc-qpr-dev 2023-07-13 03:30:43 +00:00
Robert Lee
eed6b38128 Merge "audio: add HDMI device handler" into udc-qpr-dev 2023-07-13 03:30:43 +00:00
Carter Hsu
e9da29391b audio: FM table check in (2023/07/07) for telephony.
//fortemedia
- SB3 Handset.dat (Duncan/Ricky)
1: Fine tune RFR WB/SWB for Orange mask
2: Reduce RLR 0.5dB for NB/WB
3. AMS fine tuning v2

-SB3 Speaker (Ricky)
1. HHSWB ECDT performance optimization
2. AMS all bands performance optimization
3. Sync parameter from Generic to Custom1/2 and Reserve1

-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

- SB3 BT (Gene)
- Make RX Stereo process for VoIP call (RESERVE2-SWB)

//audio platform (Chilin)
1. Stereo processing enabled for BT

Files from the latest attachment on b/290297333

Bug: 290297333
Test: verified by rickycheng@
Change-Id: Icb2544d37cd063abd9cb700f7a9f95cc3deb435f
2023-07-07 07:37:29 +00:00
Jasmine Cha
f1a154e316 audio: update playback tuning
- Fixed cracking piano issue
- Improve vocal muddiness issue
- Updated stereo balance
- Maintain as much of previous timbre as possible
- Reworked volume curve to match previous tuning
- Added improved BAACL tuning
- Added thermal throttle (2nd linklaw) tuning for 580mW
  bottom speaker limit @ 46.5degC

Bug: 288460371
Test: tested by hardware team
 - Basic MPS functionality / glitch checks
 - Acoustic Objective measurements (MTV and GTW).
 - Perceptual testing (PTE)
 - UX MTV 30 users
 - Thermal (vmon/imon): Pass
 - Battery (vmon/imon): Pass
 - Battery (Monsoon internal): Pass

Change-Id: Ie03c3124535a7c5ebb86540475827829f8dfc0f7
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-06-26 10:43:27 +08:00
Carter Hsu
1cfda0e043 audio: add hdmi path
Bug: 264508873
Test: verified on test build
Change-Id: I85a5df9e4f3404219c1c7f33ebe368063b3a9706
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-06-20 00:24:09 +00:00
Carter Hsu
b2b86f9338 audio: add HDMI device handler
Bug: 264508873
Test: verified on test build
Change-Id: I9ab084232f0dcaa03546de11d134c28f82a8f232
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-06-20 00:23:45 +00:00
David Li
d3a89c3893 audio: enable offloaded DPE
Bug: 278812541
Test: Adaptive sound and Juno app
Change-Id: I98890f0aded57fb1724472b52e97a47e9168ffd6
2023-06-06 10:10:09 +00:00
Treehugger Robot
9305489bee Merge "Revert "haptics: update hapitcs sink and slot setting"" into udc-d1-dev 2023-05-30 16:12:09 +00:00
Carter Hsu
94d900d933 audio: Mixer_paths, Fortemedia table check in (2023/05/18) for telephony.
1. Mixer_path: Modify L/R PCM volume for voice-speaker from 801 to 817

2. FM table
- SB3 HANDSET.dat (Duncan)
1: VoIP SWB improve NS distortion under quiet environment
2: Adjust the RLR NOM/MIN for PTCRB certification
3: Align NS B_POST_FILT_0 to 4000/1000/1000 as P10 for TMOUS position T-MOS/POLQA unstable
4: Fine tune WB SFR for better TX POLQA MOS
5: Copy VOICE_GENERIC SWB -> RESERVED2 SWB
6: Copy VOICE_GENERIC NB/WB/SWB TX -> HANDSET_HAC TX

- SB3 Headset (Gene)
1. Enable mixer for voice call on RX1 and RX2
2. Disable Mixer for VoIP call on RX1 and RX2
3. Enable SWB RX low delay for Voice and VoIP call  on BB, Condor V21, Condor F821, 3rd party adaptor, Condor V21 Headphone

-SB3 Spekaer (Ricky)
1.RX fine tuning - all bands with RLR 5.5dB
2. TX fine tuning for EVT1.1 - all bands SFR/SLR
3. TX performance unstable problem fixed
4. all bands Volume curve fine tune

- 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/283214955

Bug: 283214955
Test: verified by rickycheng@
Change-Id: I5e52733076ea3845795846f7f5ee166cbe83bcef
2023-05-18 12:30:28 +00:00
Jasmine Cha
391464076e Merge "audio: use VIRTUAL-SKIN-SPEAKER for playback throttle" into udc-d1-dev 2023-05-17 05:39:02 +00:00
Tai Kuo
12c436b395 Revert "haptics: update hapitcs sink and slot setting"
This reverts commit be92d60ec5.

Bug: 278018625
Test: Check audio coupled haptics at the sound preview app.
Change-Id: I35d52c31015c13670fc6d4e8ef57a3d0ea641391
2023-05-16 16:00:53 +08:00
Jasmine Cha
cc7f844429 audio: use VIRTUAL-SKIN-SPEAKER for playback throttle
Bug: 282062889
Test: manual test

Change-Id: I30fcb91c4f8dc8d9208389f551034e829166afda
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-05-15 03:42:31 +00:00
Treehugger Robot
3590c2c131 Merge "audio: add mute duration for primary output" into udc-d1-dev 2023-05-15 02:19:24 +00:00
Jasmine Cha
e82522ec9d audio: add mute duration for primary output
- beginning of previous notification is cut off.

Bug: 282118346
Test: preview notification

Change-Id: I914bee1db3a88883e52f8196382f64622744e1df
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-05-12 15:53:12 +08:00
Jasmine Cha
27d89c284b audio: update playback tuning tables
Release Updates:
 - Improvement to timbre and distortion to fix b/278032652
 - Improvement to dynamics (including volume pumping fixes)
 - Loudness update to fix b/278034786
 - Clarity update to fix b/278034414
 - Stereo balance update to fix b/280352917
 - Reverse landscape mode added (in INI and MPS files)
 - Volume curve update (to match previous projects)

Bug: 281863318
Test: manual test
 - Acoustic objective testing pass
 - Perceptual internal + demo testing pass

Change-Id: I5f4be7d438f9e367a54dd8a2adee04e0c1a69526
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2023-05-11 10:05:12 +08:00
Carter Hsu
e6565f034d Merge "audio: enable CCA for VoIP downlink" into udc-d1-dev 2023-05-08 08:49:59 +00:00
Poomarin Phloyphisut
ee227966b2 [USB Audio] Enable 192k support sample rate to hifi usb
related cl: ag/22549253

Test: Local Test.
Bug: 198122814
Change-Id: I3e0648f616a60f2a6e1fe5fadb30faf6c88978f7
2023-04-26 09:19:28 +00:00
Yung Ti Su
ffa841e738 add immersive_output
Bug: 275639025
Test: manual

Change-Id: I207402fcdeeead44f3e057101debde5b88951e79
Signed-off-by: Yung Ti Su <andysu@google.com>
2023-04-19 00:52:28 +00:00
Carter Hsu
a35e60d4f8 audio: enable CCA for VoIP downlink
Bug: 278151806
Test: build pass
Change-Id: Ia5bf8ae2b316c61452c4ba0891fdff61b26cf251
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-04-14 01:57:55 +00:00
Carter Hsu
38dd857f62 audio: enable the CCA control
Enable CCA for NB, WB and SWB

Bug: 267827552
Test: Verified on the test build
Change-Id: Idbdde78305a4e8dfe8df0e722af5e3bba9c04aed
Signed-off-by: Carter Hsu <carterhsu@google.com>
2023-03-14 09:37:45 +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
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
d2daa8004e Merge "[P23] Enable LE Audio broadcast offload" into udc-dev 2023-03-01 04:04:53 +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
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
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
TreeHugger Robot
3c28f2ea06 Merge "audio: enable gapless offload" 2023-02-01 11:25:25 +00:00