Commit graph

196 commits

Author SHA1 Message Date
Carter Hsu
7870ae25e9 audio: update camcorder tuning for refactor
tuning 2021/05/11

Bug: 186801118
Bug: 181869495
Bug: 186721091
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I97da52d76a69606243ca516057a9c09bb337d259
2021-05-12 01:09:43 +00:00
Jasmine Cha
b794f75763 audio: waves: support handset device
Bug: 165776638
Test: VOIP / voice/ playback/ record

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I2133cedac1cf718e3632df5f292a2688fc009428
2021-05-11 11:37:39 +00:00
millerliang
cdeb65a6c2 audio: remove bt path for raw and mmap playback
In AOC, ULL support requires the sink to be ULL
Speaker, Analog HP and USB are ULL Sinks,
Modem and BT are LL

Bug: 165737390
Test: OboeTester --> TEST OUTPUT
Change-Id: I23da02a52586e2f5d017142b5947dd082cdc2c62
2021-05-10 22:11:38 +08:00
Carter Hsu
c35126b2ef audio: update Raven/Oriole mixer path to V2.0
<Change List>
For mixer_paths.xml to both O6 & R4,
1. Update path name "voice-speaker" to choose VMON of bottom speaker AMP as EC reference under telephony HH mode.
2. Add the "boost peak current limit" control of cirrus speaker amps for initial value(3.50A) and below paths name.
    - "speaker" for stereo speaker playback, top amp with 1.70A, bottom amp with 1.90A
    - "speaker-safe" for mono speaker playback(ringtone, alarm, notification), bottom amp with 3.50A
    - "voice-handset" for telephony HA mode, top amp with 3.50A
    - "voice-speaker" for telephone HH mode, bottom amp with 3.50A
Bug: 174448901
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I8bb847fbf1fc8632edf7a4f27b22184a4dd828d4
2021-05-10 04:03:07 +00:00
millerliang
9c06c83aa3 audio: add to support low-latency-record(fast intput)
AudioRecord not support PCM_FLOAT on FAST path yet.(b/77913243)
Use 16-bit format for low-latency-record.

Bug: 175673727
Test: OboeTester
Change-Id: I450d161cd1b236717ad01287b95f56a284443040
2021-05-07 16:58:11 +08:00
Jasmine Cha
8cebbe53c6 audio: update FM tuning (20210506)
- R4O6
  1. HA NB/WB/SWB/FB : EPD_Offset = 0x000
  2. HA NB/WB/SWB/FB : TX Mic dead parameter implented (includ HA-HAC TX)
    =>TX_MAINMIC_BLKFACTOR
    =>TX_REFMIC_BLKFACTOR
    =>DTD_THR1_7
    =>DTD_THE2_8
  3. HH NB/WB/SWB/FB : TX Mic dead parameter implented
    =>TX_MAINMIC_BLKFACTOR
    =>TX_REFMIC_BLKFACTOR
    =>DTD_THR1_7
    =>DTD_THE2_8
  4. Adding [EC off] / [NS off] / [ECNS off] on HAFB and HHFB

Bug: 174635995
Test: manual test

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I23f6ad50ef42b3c6875cda54cb5179f5df423cfc
2021-05-07 02:27:00 +00:00
millerliang
80c7d2ef11 audio: add to support mmap record
Add to support mmap-record

Bug: 175673727
Test: OboeTester
Change-Id: Ib3dc9b5df969e972b6a1155a216eeb4e5e353b3f
Signed-off-by: millerliang <millerliang@google.com>
2021-05-06 13:59:32 +00:00
David Li
a10a9d85f2 audio: replace audio_pre_process with offload_effect and remove audio_pre_process
Move AEC and NS to the liboffloadeffect

Bug: 187153996
Test: make -j128
Test: run cts --include-filter "CtsMediaTestCases android.media.cts.AudioPreProcessingTest"
Change-Id: Ic4b7260b483b776ca917dc3694b7d66ba7eefde7
2021-05-06 02:28:43 +00:00
Vince Leung
fd3f417352 Remove audio-coupled-haptics support
Temporarily remove haptics support so that Telecom fallback mechanism of
default vibration will play whenever audio coupled haptics is not
supported.

Bug: 186720581
Test: manually verify on raviole that default vibration plays for
ringtone

Change-Id: I77e4a4a7ff19e6665434d9318271d20cd64e6c1d
Signed-off-by: Vince Leung <leungv@google.com>
2021-05-06 01:11:50 +00:00
Yung Ti Su
5ed1fe327d audio: add bt-mic for audio capture
slider / whitefin

Bug: 185209822
Test: build pass

Signed-off-by: Yung Ti Su <andysu@google.com>
Change-Id: Id8da30e39773e625d4e77890452f1c6489755452
2021-05-05 04:10:29 +00:00
Jasmine Cha
a0503c472b waves: O6/R4: update preset file. (20210504)
- O6
  - Improves the loudness of O6 while maintaining tonal balance.
  - Improve loudness and tonal balance of ringtones and notifications
    on speaker-safe.
- R4
  - Significantly increases the perceived loudness of the
    speakers at maximum volume.
  - Improves the tonal balance and is tuned for distortion
    mitigation for 1.8A current limits.
  - Improves the loudness and tonal balance of ringtones and
    notifications on speaker-safe.

Bug: 179089765
Bug: 179089856
Test: playback, mute on/off, bypass, lr swap/mixed

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I6bc5abfcb2d393c51946524861119629f158cbe2
2021-05-04 02:03:11 +00:00
Carter Hsu
7c81054244 audio: add bt-mic for audio capture
Bug: 185209822
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I4d37148ed75e57e8077b6a752b190ee87d289a9a
2021-05-03 17:17:33 +00:00
Robert Lee
4460dac76b audio: bypass aoc post processing on speaker for factory audio test
For Cirrus amp, ASP means Audio Serial Port.
For AoC, ASP means Audio Signal Processing.

Bug: 184238845
Test: manual test factory test command
Change-Id: I8d62535056ef680e14ccc708c8f722a3dfab12ab
Signed-off-by: Robert Lee <lerobert@google.com>
2021-04-29 09:18:46 +00:00
Roger Fang
29c600ea29 device: google: load audio_ext module to support audio suez
Bug: 171854614
Test: manually test passed
Signed-off-by: Roger Fang <rogerfang@google.com>
Change-Id: Ib3cb34d045d80ba69f930dab0d9277c72208ae97
2021-04-28 03:10:20 +00:00
juyuchen
47166c6085 audio: update audio platform table
Increase period size to avoid using Fastmixer in the deep buffer
playback.

Bug: 185096280
Test: manual audio tests
Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: I8ce12f151eaa9b711e1dacaf12e2f70c0555bf30
2021-04-27 11:15:12 +00:00
HW Lee
eab909573b audio: remove unsupported TinyALSA controls
Bug: 185443616
Test: build pass
Signed-off-by: HW Lee <hwlee@google.com>
Change-Id: I84abb4a1d59ff8344d7fc308be7f82c21b591b00
2021-04-22 01:31:14 +00:00
Carter Hsu
e34a7c4e4e audio: update Fortemedia table 20210419_v538
//R4O6
1. HA NB/WB/SWB/FB : adjust Mic SRC assignment /  RX& TX  Response adjust
2. HH NB/WB/SWB:  TX/RX distortion fine tuning,  WB TX PGA gain -> 0x1000
3. HE TTY  HCO: sync the latest of HH RX
4. HE TTY VCO: sync the latest of HH TX
5. HE Headphone:  sync the latest of HH TX

Bug: 174635995
Test: phone call
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: Ie384611a64bf6f837909f586fa4003345e4d292c
2021-04-21 06:54:05 +00:00
Robert Lee
88ff6ea244 audio: update speaker firmware and tuning
Bug: 179534284
Test: Manual verify speaker basic function work
Change-Id: I8f1dc408717042e8e8a6d1e30cca2548a45ee337
Signed-off-by: Robert Lee <lerobert@google.com>
2021-04-19 12:15:53 +00:00
Carter Hsu
f4852afcda audio: update camcorder tuning 20210407
Change list(R4/O6):
    1. Update the parameters in each module(IIR_1, SUR, IIR_2, AGC, MBDRC)
    2. Aim for different scenario(based on the rotation the the DUT) provide
       different tuning parameters
    3. Fine-tuning the zoom gain of AZ

Bug: 181869495
Test: camcorder
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1d0aa78f657fcfc20bf5a570bbbebb28f4896bba
2021-04-15 08:47:55 +00:00
Jasmine Cha
2a6d256369 audio: switch Audio HAL to V7
- update audio_policy_configuration tables by those instructions.
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/oriole/config/audio_policy_configuration.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/oriole/config/audio_policy_configuration_bluetooth_legacy_hal.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/oriole/config/audio_policy_configuration_a2dp_offload_disabled.xml 6.0

./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/raven/config/audio_policy_configuration.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/raven/config/audio_policy_configuration_bluetooth_legacy_hal.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/raven/config/audio_policy_configuration_a2dp_offload_disabled.xml 6.0

./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/whitefin/config/audio_policy_configuration.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/whitefin/config/audio_policy_configuration_bluetooth_legacy_hal.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/whitefin/config/audio_policy_configuration_a2dp_offload_disabled.xml 6.0

./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/slider/config/audio_policy_configuration.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/slider/config/audio_policy_configuration_bluetooth_legacy_hal.xml 6.0
./hardware/interfaces/audio/7.0/config/update_audio_policy_config.sh device/google/raviole/audio/slider/config/audio_policy_configuration_a2dp_offload_disabled.xml 6.0

bug:180878031
Test: atest VtsHalAudioV6_0TargetTest
      atest VtsHalAudioV7_0TargetTest
      atest VtsHalAudioEffectV6_0TargetTest
      atest VtsHalAudioEffectV7_0TargetTest
      atest VtsHalAudioPolicyV1_0TargetTest
      manual audio test - playback/record/voice call

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I003875ed041feeedbb7d16f517063cec164382be
2021-04-14 16:35:01 +08:00
juyuchen
aad4426870 audio: update speaker tuning information
Bug: 181874512
Test: build pass

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: I276871d88e4b8cbb40b5568afc60ea0c5bd45ae5
2021-04-13 08:39:31 +00:00
HW Lee
5faf342d2f audio: add initial values of controls
Bug: 184696656
Test: build pass
Signed-off-by: HW Lee <hwlee@google.com>
Change-Id: Iad3d8b9e2bcf75efbdc2397b12e866b995fdb848
2021-04-13 04:46:35 +00:00
David Li
e9fbea2a99 audio: initialize mixer_control Incall Sink Mute and Incall Mic Mute
Bug: 177914228
Bug: 165750425
Bug: 180983997
Bug: 180984364
Test: call screen mode 2, mute microphone in voice call
Change-Id: I7535e6d2c9f739a0e2c7f867f4ca54430d587da0
2021-04-13 01:43:38 +00:00
Carter Hsu
e6841911c8 audio: update Fortemedia table 20210406_V538
BT
    WB TX EQ change from 1 to be 0 at 62.5Hz~125Hz band. Apply on all BT scenarios on WB.
    FB RX, enable HPF 50Hz. Apply on all BT scenarios on FB.
HE TTY
    Change gain
    UL:
    TX PGA gain is changed from -13.5 to be -8.5dB
    DL:
    RX PGA is changed from -12dB to be -3.99
    RX VOL is change from -23dB to be 0dB
    Apply to all TTY full, VCO, HCO
    Apply to all bandwidth
    Apply SPK TX to VCO TX
    Apply SPK RX to HCO RX

Bug: 174635995
Test: phone call
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I3e3972de1bd5680d499c5137e04db434a021a822
2021-04-07 07:28:00 +00:00
juyuchen
56926638e1 audio: update speaker firmware and tuning
Tuning changes:
- Tuning for f0 limit samples for both top and bottom speakers
- HPF is now cutoff @ 120Hz (used to be 150Hz) for both top and bottom speakers

Firmware changes:
- Upgrade to v6.47 firmware for protection, cal, and diag firmware

Bug: 181874512
Test: manual audio tests

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: I2ed80d2397a2f0fde4a8591e0986e3a3abf8e1b0
2021-04-06 15:42:15 +08:00
Carter Hsu
3755b08b67 audio: add VoIP RX/TX
Bug: 165755752
Test: Build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1393c55447b50dbff8ad590e48b9046a7f4ecc7d
2021-03-30 00:44:05 +00:00
Jasmine Cha
56f0aac772 audio: waves: support 64-bit algfx lib
Bug: 183174341
Test: manual audio test / playback

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I03337ac977836a04c5996f2833f42fbbeb0f2b42
2021-03-29 08:56:18 +00:00
justinweng
cd5aaf7fdf add AAC to A2DP offload support format
Bug: 168584138
Test: builds pass

Signed-off-by: justinweng <justinweng@google.com>
Change-Id: I59768fc12d759ceb2ab9569c57417a9b0f6c7026
2021-03-25 10:57:48 +00:00
millerliang
094c57ce4a audio: add to support raw and mmap
Add to support raw-playback and mmap-playback

Bug: 165737390
Test: OboeTester->Test Output
Signed-off-by: millerliang <millerliang@google.com>
Change-Id: I2e9f530bd5d4c6d1f8d6bc3504d2fd0472631fcb
2021-03-25 15:16:36 +08:00
Carter Hsu
353818761a audio: update camcorder tuning
Change list:
    update the parameters on each module on Camcorder(enable module: IIR1,
    linear gain, Surround, IIR2, AGC, MBDRC)

Bug: 181869495
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I9afc4cf202f65138d78040421a10148e2b5097b7
2021-03-25 07:09:54 +00:00
David Li
3a300b35c9 audio: add "LVM Enable" and "Decoder Reference Enable"
Turn on "LVM Enable" when the offload playback path is applied.

Bug: 180984363
Bug: 165719427
Test: make -j128
Test: test LVM effects and visualizer on offload playback on oriole
Change-Id: I5e64575ce39fe0e8d9f54913ccab9cc47da8763e
2021-03-25 03:04:18 +00:00
Carter Hsu
a38369e11c audio: update Fortemedia tables 20210323_V537
1. HA TX/RX FB tuning - TdDRC/FdEQ/PreEQ/PGA, and sync to HAC-TX
2. HH TX/RX FB tuning - TdDRC/FdEQ/PreEQ/PGA
3. HE no mic heaset NB/WB/SWB/FB - sync HH TX
4. TTY HCO/VCO NB/WB/SWB/FB - sync HH RX/TX
5. BT
    - BT HAC TX NB/WB/SWB/FB- sync HH TX
    - Downlink
           * Set RX PGA Gain to be 0.
               For all bandwidth NB, WB, SWB and FB.
	       For all BT scenarios: BTNB-NREC-off, BTNB-NREC-on, BTWB-NREC-off, BTWB-NREC-On,  BT-HAC.
           * Merge RX BT setting to BT-HAC for NB, WB, SWB and FB.
           * Set volume to be 0dB for all volume step.  For all bandwidth NB, WB, SWB and FB.
             For all BT scenarios: BTNB-NREC-off, BTNB-NREC-on, BTWB-NREC-off, BTWB-NREC-On, BT-HAC.

Bug: 174635995
Test: build pass
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I0b9fd9e8421577c1bb07913e2740c60ed5a51b05
2021-03-24 11:26:41 +08:00
Jasmine Cha
42ba6144f5 audio:waves: update tuning table (0322)
- improving the tonal balance in the treble region

Bug:179089765 #comment13
Test: mute on/off, L/R mixed, L/R swap

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: Ife791670350dbfddceb420d583c487dc6ce72a68
2021-03-23 07:06:23 +00:00
yixuanjiang
3d84c1a5a9 audio: gain modify on handset-mic
Request From HW Darren and only modify on o6/r4

Test: verify by HW Darren
Bug: 182761985
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: I5461ed54078dce1a532b345a923530fa00ddd97f
2021-03-19 17:33:15 +08:00
YB Chiu
bff2bffb51 [MFG_API] [audio] update mixer table for usb headset gain
the usb headset gain control change to below
playback : tinymix -D 1 "Headset Playback Volume"
capture : tinymix -D 1 "Headset Capture Volume"

Bug: 182438057

Test: build pass
Change-Id: Ie66d0dfdb4975fae772be6a5d6524ad2358c7627
2021-03-18 03:06:59 +00:00
David Li
8a702b11f5 audio: add mixer_path for call screen mode 4 and hearing aid
Test: call screen mode 2 and 4, normal voice call
Bug: 165750425
Bug: 177914228
Bug: 181924779
Bug: 165753519
Change-Id: I2373dab47e54bda8b8bb9d7d4fbcde42c2f921d0
2021-03-18 02:20:28 +00:00
TreeHugger Robot
79bf7f2e01 Merge "audio: update Waves tuning for O6" into sc-dev 2021-03-16 10:27:34 +00:00
HW Lee
b51e60eca7 Merge "audio: factory: remove temporal solution of gain control" into sc-dev 2021-03-16 10:06:56 +00:00
Jasmine Cha
a473cc65f0 audio: update Waves tuning for O6
First tuning for O6 from JJP.
  - significantly improved loudness
  - low frequency extension
  - improved treble balance

Bug: 179089765
Test: audio playback - LR mix/LR swap

Signed-off-by: Jasmine Cha <chajasmine@google.com>
Change-Id: I673b112ca1a8c31201308cfd0c238393edf09634
2021-03-16 14:21:09 +08:00
yixuanjiang
b765c3f825 audio: Add PDM mic enabling flexibility
fix the multi-channel recording creates fail issue

Bug: 181849225
Bug: 174448901
Bug: 176208349
Test: verify by HW Oneal
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: I728ebb2633257583a245c61b559fba4ec726efd4
2021-03-12 13:59:19 +08:00
HW Lee
1fb8cfcc6d audio: factory: remove temporal solution of gain control
Bug: 182429145
Test: build pass
Signed-off-by: HW Lee <hwlee@google.com>
Change-Id: I0e3bb560c83824c71dcfe7232df43a0f563c513f
2021-03-11 09:06:55 +00:00
David Li
0a7ce9cef8 audio: add incall playback and capture to policy config and mixer path
Bug: 165750425
Test: make -j128, test call screen feature on oriole
Change-Id: I9d002359d119bc65932442d27aa5a13cc9193be0
2021-03-11 16:10:40 +08:00
Carter Hsu
4f61648333 Merge "audio: enable AAC codec for compress-offload" into sc-dev 2021-03-09 07:31:17 +00:00
rioskao
00ba8df5a4 support music_break model for whi product
Bug: 176410687
Test: test with STTAP
Change-Id: I2d109ce2e5e078173256c84b52a1e4f176fb5502
2021-03-08 10:44:34 +08:00
Carter Hsu
f8beeb1f06 audio: enable AAC codec for compress-offload
AAC_LC, AAC_HE_V1, AAC_HW_V2

Bug: 170647768
Test: AAC playback by compress-offload
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I84af6c9e8435de98ddbc4c6e8995989665c4d1ed
2021-03-08 09:42:28 +08:00
Robin Peng
cd374d8ea9 Move slider into gs101 and <device>
from: 026342771c6642980cb4653b1ec4d857a5d8be54

Bug: 167996145
Change-Id: I08376762c559b3a7fd2cd2d743d090269ed52c94
2021-03-06 16:30:54 +08:00