Commit graph

199 commits

Author SHA1 Message Date
vincenttew
052901d64e Update: audio tuning table am: 4bfaa9f2f3 am: 47f0f8d016 am: 5d16114baf
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16191708

Change-Id: I783944beb52e4132676b0b78786e734d75a70f90
2021-11-10 03:49:44 +00:00
vincenttew
5d16114baf Update: audio tuning table am: 4bfaa9f2f3 am: 47f0f8d016
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16191708

Change-Id: I225289b6a55945f3e763ca30a926186427e98ea5
2021-11-10 03:24:37 +00:00
vincenttew
93a1176824 Update: audio tuning table am: 4bfaa9f2f3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16191708

Change-Id: Ief9126fed491ec9893761ad3a61563b4f368fadf
2021-11-10 03:13:57 +00:00
Rios Kao
5bbba35f19 audio: add support for aec recording path am: 7b87bd2241 am: 3bbf4164a4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16057600

Change-Id: I753eb2128dbd90ec314fecc3d5493a4389683d18
2021-11-09 13:56:23 +00:00
Rios Kao
7b87bd2241 audio: add support for aec recording path
Add Audio Capture Eraser Enable to switch
    Eraser for recording path.
    For gain of this path, we shouldn't apply
    software gain, because the input source is
    from hotword pipeline.

Test: build pass
Bug: 172266161
Change-Id: Iabe372e7fe91e557ba9125af14bfb61606c09ea0
2021-11-09 13:05:24 +00:00
vincenttew
4bfaa9f2f3 Update: audio tuning table
Change list:
Update recording.gatf, templete file for modifying parameters to fit
the change of dynamic range compressor(DRC)(b/200794903), the DRC has
been changed from 1 band to 3 band.

Bug: 204745396
Test: build pass
Signed-off-by: vincenttew <vincenttew@google.com>
Change-Id: Ic0962536e50b310a159af15e7e191f130d41e969
2021-11-05 16:41:47 +08:00
Jasmine Cha
6c0b1b1034 audio: waves: add test file for unit test am: e303cad342 am: 0586179b4d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16123776

Change-Id: Ia1c421c8bda6e6a87d0dd70419cdd0c2660516ba
2021-11-02 06:40:07 +00:00
Jasmine Cha
e303cad342 audio: waves: add test file for unit test
Bug: 204272480
Test: atest audio_waves_halcontroller_tests

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I7aa5205c7443692c95b96ac6537d404e0e15d165
2021-11-02 06:18:13 +00:00
Carter Hsu
a435ebb39e audio: change format of deep-buffer to float am: 8ac0f68d29 am: 39b0976a8c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16004194

Change-Id: I1e193c2720313c4781f4c655efaac7dc7e3a5d37
2021-10-26 04:02:07 +00:00
Carter Hsu
07322dbd68 audio: change format of deep-buffer to float
Bug: 201593243
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I20ccdca02a134093846437fdc2f770935485853c
2021-10-26 03:35:38 +00:00
Rios Kao
2c35c05408 audio: add support for aec recording path [DO NOT MERGE]
Add Audio Capture Eraser Enable to switch
    Eraser for recording path.
    For gain of this path, we shouldn't apply
    software gain, because the input source is
    from hotword pipeline.

Test: build pass
Bug: 172266161
Change-Id: I2546e25c8ba428681fd778491cd66dca66051305
2021-10-14 19:17:10 +00:00
Jasmine Cha
278a538154 audio: waves: support custom action identification am: 25c8af397b am: 64a5691078
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16047102

Change-Id: I6be94c25d43a6949265b9f1cfc53790e093ce8d5
2021-10-14 11:51:21 +00:00
Jasmine Cha
0bc1dc0ae1 audio: waves: support custom action identification
Bug: 203029117
Test: build pass, LR mixed

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ib1e95efb8ea94bd187be7b681b6a94d53e0c5ce1
2021-10-14 06:56:03 +00:00
David Li
b05fb91f60 audio: Update tuning table for removing the risk of blocking rear microphone in 3rd party recorder use case am: 42ed6f18e0 am: 9781ca965c am: 2f37db27c4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16013672

Change-Id: Ic100b9092fd578d1f91ae421f9f30650c1d7ca77
2021-10-09 01:32:38 +00:00
David Li
24d99a3950 audio: Update tuning table for removing the risk of blocking rear microphone in 3rd party recorder use case am: 42ed6f18e0 am: 9781ca965c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16013672

Change-Id: I4cea9ffef4f31e8bbcf5166e3ddf96ea431d94f3
2021-10-09 01:18:59 +00:00
David Li
398917cf16 audio: Update tuning table for removing the risk of blocking rear microphone in 3rd party recorder use case am: 42ed6f18e0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16013672

Change-Id: I36a88e8bd01889196a1733236b0ca858adbe7f85
2021-10-09 01:02:50 +00:00
David Li
65bb51f95f audio: Update tuning table for removing the risk of blocking rear microphone in 3rd party recorder use case
Reason:
-Change the microphone assignment from rear mic to top mic since there is a risk that the rear mic will be blocked when users put devices on the desk.

Change list:
Update recording.gatf file for changing microphone assignment in handset_mono_mic usecase

Validation:
3rd party camcorder/recorder and GCA function are good and validation was used SD1A.210817.026 (7772856)

Bug: 202467646
Test: forrest build
Change-Id: I3b0f8a7ba590925fc70f28bdd3bbb4b29938fd68
2021-10-09 00:46:29 +00:00
Carter Hsu
5c6e991c0d audio: update O6/R4 Aaram volume curve am: e5484251ec am: df94b156aa am: fc517ba9b0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16005300

Change-Id: I170ce24c3ca694f954e3713d64b522b1f4548477
2021-10-08 08:33:17 +00:00
Eric Laurent
f5663a145f audio config: fix minimum alarm volume am: d9f59c1496 am: 652fb4f952 am: f648a35753
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15958180

Change-Id: Ib53681eb8e2f8a90aacf98f0377d67fa651f7c3e
2021-10-08 08:33:16 +00:00
Carter Hsu
44df45931e audio: update O6/R4 Aaram volume curve am: e5484251ec am: df94b156aa
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16005300

Change-Id: I7a2fc4371aa12bca5575d34a10e51a94e67fb1ba
2021-10-08 08:18:34 +00:00
Eric Laurent
7808c8d398 audio config: fix minimum alarm volume am: d9f59c1496 am: 652fb4f952
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15958180

Change-Id: Id49d04cc974a9a7eff0cd0659c20277eefe3ca4f
2021-10-08 08:18:34 +00:00
Carter Hsu
4d42f48baf audio: update O6/R4 Aaram volume curve am: e5484251ec
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/16005300

Change-Id: I1ef019c1be30e2fd4b65a70edce264b679d117ab
2021-10-08 08:07:01 +00:00
Eric Laurent
442155a8c8 audio config: fix minimum alarm volume am: d9f59c1496
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15958180

Change-Id: I09ca426b6aea65559fcc5e69ab354af6664b7449
2021-10-08 08:07:00 +00:00
Carter Hsu
8852d7bcee audio: update O6/R4 Aaram volume curve
O6
Change:
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
        <point>0,-4800</point>
R4
Change:
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
        <point>0,-5200</point>

Bug: 201069348
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ia5f82e06bc272d93172892692c7987993786b754
2021-10-08 12:02:04 +08:00
Eric Laurent
0800e891ec audio config: fix minimum alarm volume
The ALARM volume curve on SPEAKER device must have a lowest
point with abscisse 0 instead of 1 to prevent the stream from
being muted when lowest UI index is selected.

Bug: 201069348
Test: set alarm volume to min and play alarm
Change-Id: I29dda66002562e9ce889bd4f8b0154c2837f7be5
2021-10-08 12:01:03 +08:00
Robert Lee
6c3610ca4f audio: update speaker protection bin am: 753a76d114 am: c057d325d3 am: a6426a1d24
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15998330

Change-Id: Ic4ad70a803a823186ac8f4ef393e9618e34308fc
2021-10-07 04:13:26 +00:00
Robert Lee
3b4fd647a3 audio: update speaker protection bin am: 753a76d114 am: c057d325d3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15998330

Change-Id: Ia750a930774280f7a73673e5258de990ab16b403
2021-10-07 04:02:01 +00:00
Robert Lee
0116a23229 audio: update speaker protection bin am: 753a76d114
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15998330

Change-Id: I5bad70f67ebc00c944d714b041a201c3d46818a6
2021-10-07 03:47:13 +00:00
Robert Lee
b571f4881a audio: update speaker protection bin
O6 Top Speaker "DOE2" Bin file changes:
- XMAX reduced by 0.05mm w/ Waves processing in circuit.
- TMAX reduced by 10degC w/ Waves processing in circuit.

sha1sum file:
315408679aa97caba462b4ba1290b2be514558ab  cs35l41-dsp1-spk-prot.bin

Bug: 202297689
Test: Build pass
Change-Id: I78252b9c0a02941601a0b13d9d2cb14661f3e102
Signed-off-by: Robert Lee <lerobert@google.com>
2021-10-07 01:54:27 +00:00
David Li
ae80981fbb audio: Update tunings for SA-lite optimization and enhance audio zoom performance am: 664101a562 am: d4365c91b5 am: 17d4f83a45
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15903132

Change-Id: I22b483487bae6e92acf048aadf4407b55235ba17
2021-09-27 10:26:28 +00:00
David Li
72121f36e7 audio: Update tunings for SA-lite optimization and enhance audio zoom performance am: 664101a562 am: d4365c91b5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15903132

Change-Id: Ifb360d00ab0ef63d6e2b9504bbfa1520c603c1b3
2021-09-27 10:16:47 +00:00
David Li
1af45f8233 audio: Update tunings for SA-lite optimization and enhance audio zoom performance am: 664101a562
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15903132

Change-Id: Ic72f61f5fc21ceafddecfdf77f94e82924e1a554
2021-09-27 10:03:24 +00:00
David Li
ec055fe259 audio: Update tunings for SA-lite optimization and enhance audio zoom performance
Reason:
- Optimize audio zoom quality in camcorder
- Add tuning parameters to fit single band DRC modification in AOC (b/198128358)

Change list:
Update recording.gatf file for modifing audio zoom tuning parameters
Update template.xml file to select single band DRC reference channel

Validation:
3rd party camcorder/recorder and GCA function are good and validation was used SD1A.210817.019.A7 (7719665)

Bug: 201031972
Test: forrest build
Change-Id: I45cf7dcb0edbd38d0041e3112d88ce29cefacb2f
2021-09-27 07:37:20 +00:00
millerliang
0b02260f22 audio: changet the period size of VoIP Record am: 47a8acc5f1 am: 87179e112b am: 24dc47bdc3 am: a292e519a1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15824293

Change-Id: Icaaf7beb2f7c9a9f4061573cc3dba7b37658f53b
2021-09-24 08:01:21 +00:00
millerliang
f503184b6d audio: changet the period size of VoIP Record am: 47a8acc5f1 am: 87179e112b am: 24dc47bdc3
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15824293

Change-Id: Ia3b42d2dba65e27ea9c3842a2ac537e44f5ac4e3
2021-09-24 07:48:17 +00:00
millerliang
4c87c94832 audio: changet the period size of VoIP Record am: 47a8acc5f1 am: f3e85379a4
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15824293

Change-Id: I341ba5e4b200ef4b9d242a4a7fa66bd53dd47df3
2021-09-24 07:36:05 +00:00
millerliang
823c84320c audio: changet the period size of VoIP Record am: 47a8acc5f1 am: 87179e112b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15824293

Change-Id: Ic17bc449305c97ad73b14975365c81e27b069e94
2021-09-24 07:35:43 +00:00
millerliang
5fb9498c64 audio: changet the period size of VoIP Record am: 47a8acc5f1
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15824293

Change-Id: I9051aef768a94eb34b32770dafe38ed25046007d
2021-09-24 07:14:38 +00:00
millerliang
a8c236c35c audio: changet the period size of VoIP Record
Change the period size of VoIP Record to 20ms.
Otherwise it will apply fast capture.
Fast capture timestamps are not supported yet.

Bug: 196912510
Test: Build pass
Change-Id: I6434a7596880712efa7cbfa03b3480efb5e2c2aa
2021-09-24 10:41:15 +08:00
Xinhui Zhou
d11462ae1f audio: deep buffer to floating point pcm data [DO NOT MERGE] am: ee3bc4db89 am: cb8dbcaaf2
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15799241

Change-Id: Ic41c4806edc3524f6c3d96d9144f7e062d8daa1f
2021-09-21 22:25:18 +00:00
Xinhui Zhou
923b3af81f audio: deep buffer to floating point pcm data [DO NOT MERGE] am: ee3bc4db89
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15799241

Change-Id: I4ca8af2b8270665bd447859b010ad33ddbcd692e
2021-09-21 22:10:44 +00:00
Xinhui Zhou
411cd28a78 audio: deep buffer to floating point pcm data [DO NOT MERGE]
Bug: 199157246
Test: build pass
Signed-off-by: Xinhui Zhou <zxinhui@google.com>
Change-Id: I331d55403daadda3bb6699b3dfff0e759f782b95
2021-09-21 21:58:32 +00:00
Roger Fang
a7c875330f audio_usb: Enable ASRC in USB voice call path am: 18b3ec8f86 am: 32670f1046 am: 4859b70b8f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15782861

Change-Id: I732dbc5a8e87285f46bed94faecc11f7ef3a63f1
2021-09-09 06:04:43 +00:00
Roger Fang
be2bde46ba audio_usb: Enable ASRC in USB voice call path
Telephony downlink ASRC should be enabled for USB. See b/173577733.
Otherwise the downlink ring buffer will underflow or overflow

Bug: 199230403
Test: Local build + Telephony test for five minutes: No glitch observed.
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Ifbcd9252c97a7f794e0b142e69faf1b0f3041098
2021-09-08 15:06:00 +08:00
Jasmine Cha
c5211fa13a audio: update music playback volume curve am: b116b57820 am: a80efcbf3b am: a007fdf93f am: 06c9bb4994
Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15743308

Change-Id: I0943e0150b96f37f41a1bbc3f4e1897343d3a66b
2021-09-03 07:34:13 +00:00
Jasmine Cha
7ebc080458 audio: update music playback volume curve
- changes volume 1,2,3,4,5 (due to a sound quality noise floor issue)

Bug: 198224217
Test: manual power test (b/198224217#comment21)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ied7e88ad941e8a13e2080da6e2897b9541966dd0
2021-09-03 05:32:23 +00:00
Sasha Smundak
a5fd2bfbd0 Replace foreach loops with the calls to copy-files
Bug: 190051051
Test: treehugger
Change-Id: I7e48ce741f6c9d0997f024e567daeec926fecb11
2021-09-02 07:24:01 +00:00
David Li
b82bc02526 audio: update Media Record Tuning Files
R4O6
Update camcorder tunings files for FRC

Reason:
- The SA-lite pipeline is used for 3rd party camcorder/recorder and
    need to be updated tuning for audio quality (b/185293492)
- There is e-Noise issue could be noticed when using 3rd party
    camcorder/recorder

Change list:
Update audio_platform_configuration.xml file so that parameters in
    SA-lite pipeline can be loaded correctly
Update template.xml file to enable feature swapping microphone
    assessment in SA-lite pipeline
Update recording.gatf file for modifing tuning parameters

Validation:
3rd party camcorder/recorder function are good and validation was
    used SD1A.210817.007 (7665414)

Bug: 197492283
Test: forrest build passed
Change-Id: Ifc66519c92935dc4bd14d68a85a491f96429272a
2021-08-27 01:57:46 +00:00
Jasmine Cha
254cdef7be audio: update FM tables (20210729_v540)
///R4
1. HHNB/WB/SWB double talk fine tune with v5.3.11 lib fix
2. Headset TTY VCO: sync the latest of HH TX
3. Headset Headphone : sync the latest of HH TX
4. BT HAC : sync the latest of HH TX
5. Headset FB tuning for NS

///O6
1. HHNB/WB/SWB double talk fine tune with v5.3.11 lib fix
2. Headset TTY VCO: sync the latest of HH TX
3. Headset Headphone : sync the latest of HH TX
4. BT HAC : sync the latest of HH TX
5. Headset FB tuning for NS

Bug: 197716271
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6376ce7da579dcda09c6077182cd82c6fb2c2efb
2021-08-26 08:31:05 +00:00
Jasmine Cha
f21fa1b132 audio: update tuning tables (20210826)
Release Notes (R4):
- Retune top volumes for more balanced sound, less harsh
- Heavy emphasis on vocals, both depth and clarity
- DTMF volume curve reduced to better align w/ O6, F2, C2, B9
- SYSTEM volume curve reduced to better align touch sounds
- SYSTEM volume curve copied into AUDIBLE volume curve

Release notes (O6):
- Camera shutter (system sound) decreased volume curve to better align w/ R4/B9 and F2/C2
- Slight adjustment at min vol point for DTMF
- SYSTEM volume curve reduced to mitigate loud camera shutter
- SYSTEM volume curve copied into AUDIBLE volume curve

Bug:190960105
Test: High level tuning validation (b/190960105#comment15)

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Icf0c9e921017b5e06ec950452a78a9d89acf86f2
2021-08-26 01:15:23 +00:00