Commit graph

228 commits

Author SHA1 Message Date
Rios Kao
eb39f55e3a Merge "caimito: remove useless argument of speaker." into 24D1-dev 2024-03-19 01:44:53 +00:00
Rios Kao
816bc81f42 caimito: remove useless argument of speaker.
note:
     Rotation is uses for tablet project only.

Test: build pass.
Bug: 330083943
Change-Id: I9ecc8d73b282c1aab15b90813c35376e54a4bdf0
2024-03-18 04:25:33 +00:00
William Huang
83bdd0afef Merge "Move offload spatializer config to device-specific folder." into 24D1-dev 2024-03-18 02:50:16 +00:00
William Huang
ee08a28ff2 Move offload spatializer config to device-specific folder.
Also update the configs to http://go/txcl/33962 (commit 3c51d9c2071f9adec5dbeb3f49f83b15e92247a7).

Bug: 307842941
Change-Id: I2f305441b7bc030f55318da52079a5a295e91ab1
Signed-off-by: William Huang <yushh@google.com>
2024-03-15 09:24:56 +00:00
Treehugger Robot
f7aea63386 Merge "[USB Audio AIDL] Add mixer path for "usb-device-microphones"" into 24D1-dev 2024-03-13 16:17:07 +00:00
Treehugger Robot
d21652bd5a Merge "audio: adjust the latency value for av sync" into 24D1-dev 2024-03-13 16:16:24 +00:00
Poomarin Phloyphisut
439a40fa37 [USB Audio AIDL] Add mixer path for "usb-device-microphones"
Bug: 329147872
Test: Local test
Change-Id: I96bc9736ba37837b22d184777046f5e0084b4570
2024-03-13 02:13:47 +00:00
millerliang
45a646dcc4 audio: adjust the latency value for av sync
Bug: 328473598
Test: Camera recording, Video playback
Change-Id: Iefc4498b4e7977d054266cbc32ccff7078858f2d
Signed-off-by: millerliang <millerliang@google.com>
2024-03-12 07:27:21 +00:00
Rios Kao
2b65d041cb Merge "caimito: add sound-trigger-microphones" into 24D1-dev 2024-03-12 01:50:24 +00:00
Jason Hsu
6d939ec3d8 audio: 2024/03/06 Fortemedia table check in for V642
<change list>
TK4:
-HA/HH/HE/BT
1. index 397 short term change to 0x8001 for adaptive NS off

CM4:
-HA/HH/HE/BT
1. index 397 short term change to 0x8001 for adaptive NS off
HH(Duncan)
WB/SWB RX max vol EQ for distortion pass
HA(Duncan)
Update NS tuning for SWB noisy environment sound quality issue

KM4:
-HA/HH/HE/BT
1. index 397 short term change to 0x8001 for adaptive NS off

Bug: 328329355
Test: Verified by Acoustic team
Change-Id: I4533916ea0c28540543e5334d51f4145241176e7
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2024-03-11 04:17:27 +00:00
William Huang
0411b2e091 Enable offload spatialization on caimito.
Note that this depends on the AoC changes at http://gpar/q/topic:%225_1ch_asp_caf%22.

Bug: 307842941
Test: manual test
Signed-off-by: William Huang <yushh@google.com>
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9c8ce1bd4590625fc1d1c4b7633413f9abce15e0)
Merged-In: I2e3d633929f2fc76e19ed0810351226ed52314e6
Change-Id: I2e3d633929f2fc76e19ed0810351226ed52314e6
2024-03-07 22:35:07 +00:00
Treehugger Robot
08d2ba261d Merge "audio: update recording table" into 24D1-dev 2024-03-06 19:27:40 +00:00
Rios Kao
64becd453f caimito: add sound-trigger-microphones
Test: end-to-end and host test.
Bug: 328340282
Change-Id: Ib4adac74b0ffd1dd05a6368e447f21978d1f6d99
2024-03-06 05:52:00 +00:00
Yixuan Jiang
9fc9a1b499 audio: update recording table
[Subject]
Check in recording tuning table for device
  Update recording.gatf & audio_platform_configuration.xml

[Details]

Change list ver 5.0 for EVT 1.1 :
1. Tuning table for enabling Mic COMP module

Bug: 327138345
Bug: 327137905
Bug: 327138336

Change-Id: I25ed3032d249a8c657e23b9f7e6b4e42774bf7f3
Merged-In: I25ed3032d249a8c657e23b9f7e6b4e42774bf7f3
Signed-off-by: Yixuan Jiang <yixuanjiang@google.com>
2024-03-06 02:32:54 +00:00
Carter Hsu
32eb2b8931 audio: 2024/02/29 Fortemedia table check in
<change list>
TK4
- Handset (Ricky)
1. HAWB Modify TdDRC expander as short term for BWE noise issue on (max to max-2)
- Handsfree (Ricky)
1. HHSWB fine tune (max-1 to min) for EVT1.1
2. HHWB fine tune for EVT1.1
     TX/RX: PreEQ, TdDRC, EQ

- Headset (Gene)
1. HE WB: Mitigate the NB call RX noise after speech due to noise from NW and boosted by BWE.
2. HE WB: Enable 120Hz HFP for both TX and RX
3. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE

- BT (Gene)
1. BTWB and BTWB_NREC WB Rx FNS level from 0x0006 to 0x000F for CCA BWE



CM4
- Headset (Gene)
1. HE WB: Mitigate the NB call RX noise after speech due to noise from NW and boosted by BWE.
2. HE WB: Enable 120Hz HFP for both TX and RX
3. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE

- BT (Gene)
1. BTWB and BTWB_NREC WB Rx FNS level from 0x0006 to 0x000F for CCA BWE


KM4
- Headset (Gene)
1. HE WB: Mitigate the NB call RX noise after speech due to noise from NW and boosted by BWE.
2. HE WB: Enable 120Hz HFP for both TX and RX
3. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE

Bug: 327555914
Test: Verified by Acoustic team
Change-Id: I2939312348ac6d9a13ac4be86460d49839b545ca
Signed-off-by: Carter Hsu <carterhsu@google.com>
(cherry picked from commit 2678747eae)
2024-03-05 11:22:16 +00:00
Carter Hsu
b72d3f68a0 audio: [KM4/CM4/TK4] 2024/02/26 Fortemedia table check in
<change list>
TK4
- Handset (Ricky)
1. HA fine tune for EVT1.1 on WB/SWB
     TX/RX: TdDRC, EQ
-Handsfree (Ricky)
1. HH fine une for EVT1.1 on SWB
    TX: Pre-EQ, TdDRC
    RX: TdDRC gain/ limiter(Limiter THR => 50C3 (-4dB)), EQ for Max vol
2. Disable adative NS on WB/SWB

- Headset (Gene)
1. Improve HE  Blackbird WB TX echo noise
2. Enable WB DL FENS for F821 adaptor

KM4
- Headset (Gene)
1. Improve HE  Blackbird WB TX echo noise
2. Enable WB DL FENS for F821 adaptor

CM4
- Headset (Gene)
1. Improve HE  Blackbird WB TX echo noise
2. Enable WB DL FENS for F821 adaptor

- Handset/Handsfree (Duncan)
1: HHWB 3QUEST NMOS improvement
2: HHWB/SWB RX TdDRC limiter threshold 0x5800/0x5900 to avoid pop sound
3: HHWB RX max volume fine tune for FR and distortion 1020Hz
4: HHWB SLR tune to 10.6dB
5: HHSWB SFR, RFRmax tuning for distortion pass

Bug: 326846982
Test: Verified by Acoustic team
Change-Id: I16b038fe1fb9206bfa9cc83bd0657902a0f6e47b
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-02-27 11:00:01 +08:00
Rios Kao
b1e6a0387f Merge "audio: fix vts for microphone information." into main 2024-02-21 12:56:36 +00:00
Rios Kao
06c566503c audio: fix vts for microphone information.
note:
     Depending the realized in framework side, the microhone
     information only report the corresponding devices info
     surfaced via SDK. That means reporting bottom / back mic
     are necessary.

Test: atest VtsHalAudioCoreTargetTest
Bug: 300735639
Change-Id: Ib514d1f87f607d1bfab0818dbff16bd3623b313e
2024-02-21 03:56:10 +00:00
vincenttew
38f0d70aa2 audio: update recording tuning table
Change list ver 4.0 for EVT 1.1 :
1. Spatial audio calibration for EVT 1.1
2. MIC path IIR
3. PGC update parameters based on rms-baed calculation
4. update template.xml with SNS(off) on MIC

Bug: 324162417
Bug: 324162415
Bug: 324160489
Change-Id: Ic3ce060a0a478183ac8440f8da0a7b88170f1065
Signed-off-by: vincenttew <vincenttew@google.com>
2024-02-07 18:19:18 +08:00
Carter Hsu
6c1380bafc Merge "audio: 2024/02/02 Fortemedia table" into main 2024-02-06 01:58:51 +00:00
David Li
c0e1a53e61 audio: refactor spatializer offload playback
Bug: 307842941
Test: manual test
Change-Id: I7487b3c0359098171e6da6759c28b9ed5f8fbff1
2024-02-05 13:59:09 +00:00
Carter Hsu
05c94614af audio: 2024/02/02 Fortemedia table
<changelist- FM table>
"TK4
- Handset (Ricky)
1. HA all BWs Disable AMS
2. HA WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
- Handsfree (Ricky)
1. HH all BWs Disable AMS
2. HH WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
3. HH all BWs Adaptive NS thd (index397) set to 0x0190
4. HH all BWs Disable LPF
- Headset (Gene)
1. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
KM4
- Handset (Ricky)
1. HA all BWs Disable AMS
2. HA WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
- Handsfree (Ricky)
1. HH all BWs Disable AMS
2. HH WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
3. HH all BWs Adaptive NS thd (index397) set to 0x0190
4. HH all BWs Disable LPF
- Headset (Gene)
1. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE

CM4
- Handset (Duncan)
1. HA all BWs Disable AMS
2. HA WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
- Handsfree (Duncan)
1. HH all BWs Disable AMS
2. HH WB Rx FNS level from 0x0006 to 0x000F for CCA BWE
- Headset (Gene)
1. HE WB Rx FNS level from 0x0006 to 0x000F for CCA BWE"

<change list - audio platform>
Enable stereo for BT VoIP

Bug: 323464302
Test: Verified by Acoustic team
Change-Id: I486d589eca68108a82dc071bb68a57fc39222eef
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-02-05 06:32:13 +00:00
Carter Hsu
31b17727a0 Merge "audio: enable SoundDose on AIDL HAL" into main 2024-02-05 06:12:39 +00:00
Treehugger Robot
04225f6c9c Merge "audio: update waves tuning and volume curve" into main 2024-02-05 02:26:32 +00:00
Carter Hsu
75fc34c8ca Merge "audio: enable BWE" into main 2024-02-05 02:22:30 +00:00
Carter Hsu
fb4a7dbc0f audio: enable SoundDose on AIDL HAL
Bug: 315915954
Test: atest CtsMediaAudioTestCases:android.media.audio.cts.SoundDoseHelperTest
Change-Id: I4ca8a8f975fbf0ce17f4b4234bfb47868a06d26d
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-02-05 01:25:39 +00:00
Jasmine Cha
761eba7c20 audio: update waves tuning and volume curve
Bug: 323256159
Bug: 323259548
Bug: 323259548
Test: manual test

Change-Id: Ic3e27dd911b1036dbd893d98ecb089d16e7835be
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-02-02 06:35:36 +00:00
Carter Hsu
2ed8c88e4d Merge "audio: 2024/01/29 Fortemedia table" into main 2024-02-01 01:55:54 +00:00
Treehugger Robot
9ac8092dc6 Merge "audio: fix record tuning" into main 2024-01-30 10:12:51 +00:00
Jasmine Cha
4db0307c1d audio: fix record tuning
- remove VOICE_RECOGNITION source for spatial capture
- move Mic Spatial Module Enable to audio hal control

Bug: 322926141
Test: manual test - camcorder/voice record with bluenote

Change-Id: I5057762e172ca35367a1929c67f3d364feece00c
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-01-30 16:58:11 +08:00
Carter Hsu
a394f5bff6 audio: 2024/01/29 Fortemedia table
<Change list>
KM4
- Handset (Owen)
1. Rx: Modify NB/WB/SWB DRC Limiter THR to -3dB(5A90)
2. Copy 1 from Generic to RX co-used cases ( T-mobile / Reserve2).

- Handsfree (Owen)
1. Rx: Modify NB/WB/SWB DRC Limiter THR to -4dB(5000)
2. Copy 1 from Generic to Rx co-uaed cases (RX: HH Reserve2_SWB / TTY-HCO wo/wi Reserve2_SWB).
3. Modify NB/WB/SWB/RESERVE2 Rx DRC LIMITER_THRD from -1dB(7214) to -2.5dB(6000)

- Headset (Gene)
1. Modify HE WB/SWB NS parameter

TK4
- Handset (Ricky)
1. HA WB/SWB RX volume curve fine tuned.
2. HA SWB NS updated
3. Sync Genric parameter to other
- Handsfree (Ricky)
1. HH WB/SWB RX volume curve fine tuned
2. HH WB/SWB TdDRC limiter thrd fine tuned (0x5A9D) to prevent FIR abnormal output
3. HH WB/SWB NS updated
4. Sync Generic paramter to other

- Headset (Gene)
1. Modify HE WB/SWB NS parameter

CM4
- Headset (Gene)
1. Modify HE WB/SWB NS parameter

Bug: 322721373
Test: Verified by Acoustic team
Change-Id: If1be8b2d04f6e50ff29ebce6638a749d2a5c73ad
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-01-30 08:25:05 +08:00
Jasmine Cha
c94fe9ae9d audio: enable CCA BWE
Bug: 320802286
Test: manual test

Change-Id: Ia4b3954a40e57458a71f1d935a2bd261a621933a
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-01-29 11:05:50 +08:00
Carter Hsu
68a4288225 audio: enable BWE
Bug: 320802286
Test: build pass
Change-Id: Ib458dd8a63628e3138b016fd71dfb27365b5f531
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-01-29 01:48:18 +00:00
yixuanjiang
f5868bbbd0 audio: recording tuning table for EVT1.0 device
Update recording.gatf for SNS params since remove linear gain value
Update template.xml for CHRE part
[Details]
1. update SNS tuning parameters for EVT 1.0 device because of gain removal in front.
2. remove one line in template.xml for CHRE part
   <param id="297" name="chre_gain" type="uint32"/>

Bug: 322446230
Bug: 322446226
Bug: 322445774
Test: verify by darrenyen@
Change-Id: I8554d65538200be288ad74a37d488fe9fbc19bbe
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2024-01-26 10:00:15 +00:00
Rios Kao
75b632cdb6 caimito: remove useless command in smartfeature.
note: - The old tuning file has deprecated commands which removed
       from firmware already. That would casue gtest failure.
Bug: 322291792
Test: run aoc_sound_trigger_adapter_test and verify the value from
      aoc interface.
Change-Id: I5a332f271cdfa5ec5dcf6c6c45b077ba447da18d
2024-01-25 09:14:27 +00:00
Treehugger Robot
684a7ee7ca Merge "audio: align mixer paths and add missing paths" into main 2024-01-23 08:27:50 +00:00
Carter Hsu
6fdac3d3f6 Merge "audio: 2024/01/22 Fortemedia table check in" into main 2024-01-23 03:03:21 +00:00
David Li
a43128dd4d audio: align mixer paths and add missing paths
- add controls
     "HAC AMP EN",
     "EP5 TX Mixer INTERNAL_MIC_US_TX"
     "BUILDIN US MIC ID CAPTURE LIST"
 - add paths
     "builtin-mic-id-capture-list"
     "microphones (UNPROCESSED)"
     "back-microphones (UNPROCESSED)"
     "ultrasound-microphones"
 - move the mic id list to a path and other microphones devices use the
   path.

Bug: 301535551
Test: manually test
Change-Id: I669e69774fc90577ba1a056ec4ca36a25196fcf7
2024-01-23 10:47:27 +08:00
Treehugger Robot
2bd297d015 Merge "audio: Update recording.gatf & template.xml for AZ2.1/PGC format" into main 2024-01-22 12:28:51 +00:00
Carter Hsu
c25bb4524c audio: 2024/01/22 Fortemedia table check in
<Change list:>
"TK4
- Headset  (Gene)
   Modify TX/RX DRC gain on CONDOR_CERTIFICATION1-VOICE_GENERIC-WB / SWB for the CCAv3 BWE feature.

CM4
- Headset  (Gene)
   Modify TX/RX DRC gain on CONDOR_CERTIFICATION1-VOICE_GENERIC-WB / SWB for the CCAv3 BWE feature.

KM4
- Headset  (Gene)
   Modify TX/RX DRC gain on CONDOR_CERTIFICATION1-VOICE_GENERIC-WB / SWB for the CCAv3 BWE feature.

- Handset (Owen)
1. Rx: Modify WB(Vol-0)/SWB(Vol-0 to Vol-5) Vol Step SpkVol gain, SWB DRC gain(10.8dB)&EQ, and NB DRC gain(8dB Vol-0 to Vol-5).
2. Copy 1 from Generic to RX co-used cases ( T-mobile / Reserve2).

- Handsfree (Owen)
1. Rx: Modify WB(Vol-0 to Vol-5)/SWB(Vol-5) Vol Step SpkVol gain, modify SWB DRC gain(14dB), and correct SWB THRD(Slant_0=0000 Vol-0).
2. Copy 1 from Generic to Rx co-uaed cases (RX: HH Reserve2_SWB / TTY-HCO wo/wi Reserve2_SWB).
3. Modify NB/WB/SWB/RESERVE2 Rx DRC LIMITER_THRD from -1dB(7214) to -2.5dB(6000)"

Bug: 321595934
Test: Verified by Acoustic team
Change-Id: Iacfc247fffad921ade7ab50f141d29dca3b595d4
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-01-22 14:58:10 +08:00
David Li
1e3c013eca audio: add path for voice call over BT heaing AID
Bug: 319182435
Test: manual test
Change-Id: Ib38477c7e45e34e66f369751b533260fa4cd4b8f
2024-01-21 15:10:53 +08:00
David Li
f87be8d9af Merge "audio: add offloaded spatializer use case" into main 2024-01-21 04:31:26 +00:00
yixuanjiang
d0ef2cb6be audio: Update recording.gatf & template.xml for AZ2.1/PGC format
[Details]
1. update SUR tuning parameters for EVT 1.0 device and using AZ2.1 format.
2. manual fill-in Mic COMP EQ in IIR1 module before Mic COMP ON
3. update PGC template and syne with the latest parameters

Bug: 321164880
Bug: 321164128
Bug: 321164775
verify: HW wjacky
Change-Id: I1375b75570d7aa837d000324059339b282f2bf41
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2024-01-19 10:08:05 +00:00
David Li
9790519457 audio: add offloaded spatializer use case
Bug: 307842941
Test: n/a
Change-Id: I072f7642baea2c7b32bca7eba31cdbe4a82cd3b4
2024-01-19 17:48:36 +08:00
Treehugger Robot
ce61883be2 Merge "audio: enable using wb tuning for nb voice" into main 2024-01-17 09:23:32 +00:00
Carter Hsu
c53cc93d0b Merge "audio: FM tuning 20240111" into main 2024-01-16 07:06:58 +00:00
Jasmine Cha
7f8c50ba5c audio: enable using wb tuning for nb voice
Bug: 314707600
Test: manual test - making phone call and check log

Change-Id: I4d11bf1ed8db3604843ff79cb5775a292a0da1aa
Signed-off-by: Jasmine Cha <chajasmine@google.com>
2024-01-16 14:20:18 +08:00
Carter Hsu
eb3fdfc901 Merge "audio: apply WB tuning for voice NB" into main 2024-01-16 05:50:37 +00:00
Yung Ti Su
ed182b9342 Merge "add immersive output for ble devices" into main 2024-01-15 09:32:35 +00:00
Carter Hsu
bf793ac56a audio: apply WB tuning for voice NB
Bug: 314707600
Test: Verified by test build
Change-Id: I3be83364d538094fb414259ebd2b333f969ddd28
Signed-off-by: Carter Hsu <carterhsu@google.com>
2024-01-15 01:30:41 +00:00