Commit Graph

33 Commits

Author SHA1 Message Date
millerliang 1e84ccdc30 audio: add delay settings for playback and capture
AudioTrack/AudioRecord timestamps are off by 30ms
when tested with the Clarity app

Bug: 158430162
Test: Manual test with Clarity apk
Signed-off-by: millerliang <millerliang@google.com>
Change-Id: I5ce5027badcf4de9f5047936a3575baef421d26c
2020-07-06 16:33:34 +08:00
Jason Hsu b19567794e audio: update audio table
audio_platform_info.xml:
Modify Record acdb id path
<device name="SND_DEVICE_IN_USB_HEADSET_MIC" acdb_id="44"/> => From 4 to 44
<device name="SND_DEVICE_IN_VOICE_RECOG_USB_HEADSET_MIC" acdb_id="143"/> => New add

ACDB:
1. HAC FB fine tune from Annie
2. HE Recording (acdb id :44) modify
 - Change Recording topology to AUDIO_TX_MONO_COPP_MBDRC_V4
 - Apply parameter, 18dB gain in Audio Mic gain , and pre-gain set to 0x1 in IIR

Bug: 158717246
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I2fd20bdccd344807b4b98ec389088318345ff5b9
2020-06-16 01:37:34 +08:00
Jason Hsu 445011aaad audio: update audio table
1. For mixer_paths_noextcodec_snd.xml,
    a. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "voice-rec-mic".
    b. Add strings for gain visibility of path name "handset-stereo-dmic-ef".
    c. Change gain setup from 13dB(value 40) to 22dB(value 52) and add strings for gain visibility of path name "voice-rec-dmic-ef".
    d. Change gain setup from 0dB(value 23) to 22dB(value 52) of path name "three-mic".
    e. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-mic".
    f.  Change gain setup from 13dB(value 40) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-stereo-mic".
    g. Change gain setup from 0dB(value 23) to 5dB(value 30) and add strings for gain visibility of path name "unprocessed-three-mic".

2. For audio_platform_info_noextcodec_snd.xml,
    a. Apply acdb id_144 for SND_DEVICE_IN_VOICE_REC_DMIC_STEREO.
    b. Update "microphone_characteristics" and "input_snd_device_mic_mapping" to fit R3 configurations.

Bug: 145244105
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I5cc6c87c0a4cf100e993fce1906a253966bc564c
2020-06-10 15:15:56 +08:00
Cyan_Hsieh ee61f152d0 Merge branch 'rvc-dev' into rvc-d1-dev
Change-Id: I6ec66f04fee0d2fd8a1a78b7dad67af40e9f1c62
2020-06-02 18:48:49 +08:00
JJ Lee 1ab04aed6c audio: add mixer paths for call screen mode
Bug: 140384450
Test: build pass, call screen mode functions
Change-Id: Iec1740df2a9b507dc31839a45410cd5e34a2838a
Signed-off-by: JJ Lee <leejj@google.com>
2020-06-02 18:39:17 +08:00
yixuanjiang 5ea7630e9c audio: update pcmid on speaker calib tx and rx usecase
Bug: 156714478
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
Change-Id: Ic1b54057154e0dbef4f7be065682b42af1760df0
2020-05-29 21:22:47 +08:00
justinweng e4347f4df3 audio: update audio_platform_info table
Add backend for speaker and bluetooth headset
Separate backend name between handset and speaker

Bug: 149062941
Test: ringtone and voice call

Signed-off-by: justinweng <justinweng@google.com>
Change-Id: Iaecf1659193859025bf01258afd3018ceefeb488
2020-05-29 21:22:02 +08:00
juyuchen e519f201e5 audio: update pcmid on speaker calib tx and rx usecase
Bug: 153495182
Bug: 153403319
Test: manual audio tests.

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: Idd932025104a4d167515d4c0ebc998796002f21a
2020-05-29 21:21:57 +08:00
Jason Hsu f17858c9da audio: update audio_platform_info table
1. Modify headphone RX acdb id:
      <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="10"/> -->
      <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="56"/>

 2. Add Condor with mic acdb id in VOIP:
                <!-- condor_VOIP-->
                <ext_device name="SND_DEVICE_IN_USB_HEADSET_MIC_AEC" usbid="18d1:5034" acdb_id="55" />

Bug: 152717319
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I71b3a228777587e65e0c128922dde4150b0d7b78
2020-05-29 21:21:55 +08:00
Robert Lee be5725bb3f audio: correct pcm id for speaker calibration usecase
Bug: 151568484
Test: builds
Change-Id: I819402d4510f6a1a663f913b5ca9ac4f0b13e834
Signed-off-by: Robert Lee <lerobert@google.com>
2020-05-29 21:21:52 +08:00
Jason Hsu 324c728146 audio: sync audio table
correct mic channel mapping setting

Bug: 151389403
Test: Manual test audio basic function and solo test tool

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I7ac3f934d8b3dc42dbb4af88bfaae72a8e045bc0
2020-05-29 21:21:22 +08:00
Jason Hsu cd3d43b312 audio: update audio table
Bug: 149263752
Test: local built pass

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: Ibe8fe48056a2e652daa59f89f0e0e79ee2126251
2020-05-29 21:21:16 +08:00
vincenttew 900ab57a1e audio: update audio table
Changelist:
1. Modify VOIP Handset SND name

Bug: 147470422
Test: build pass
Change-Id: Ia7b4534e81384b590223cbde7e70457ece15b7bb
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 21:20:14 +08:00
Robert Lee d75253d551 audio: fix resume music no sound after ringtone playback
Bug: 146538232
Test: Youtube resume has sound after reject incoming call
Change-Id: Ic675ed57d4f683ed048e605c405ff2495394aa29
Signed-off-by: Robert Lee <lerobert@google.com>
2020-05-29 21:20:05 +08:00
BubbleFang 36953228ad audio: update audio_platform and mixer for HAC
mixer : add HAC RX routing "voice-hac-handset"
audio platform:
add => <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" interface="QUIN_TDM_RX_0"/>
add => Spirent sim detect
modify=> <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="56"/>
modify=> <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" acdb_id="41"/>
modify=> <device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="4"/>

Bug: 146398789
Test: Local test
Change-Id: I3a8de25d94298877cc9ada809d5ace667e444a75
Signed-off-by: BubbleFang <bubblefang@google.com>
2020-05-29 21:18:51 +08:00
yixuanjiang 68266feee4 audio: update audio_platform and mixer for TTY
Bug: 145647615
Change-Id: I070c26dc985b72c39f0802aa79a8953a93c63d98
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2020-05-29 21:18:39 +08:00
justinweng eb8d11291b audio: update audio_platform_info table
Add backend for speaker and bluetooth headset
Separate backend name between handset and speaker

Bug: 149062941
Test: ringtone and voice call

Signed-off-by: justinweng <justinweng@google.com>
Change-Id: Iaecf1659193859025bf01258afd3018ceefeb488
2020-05-29 15:46:13 +08:00
juyuchen 68763b5d82 audio: update pcmid on speaker calib tx and rx usecase
Bug: 153495182
Bug: 153403319
Test: manual audio tests.

Signed-off-by: juyuchen <juyuchen@google.com>
Change-Id: Idd932025104a4d167515d4c0ebc998796002f21a
2020-05-29 15:46:12 +08:00
Jason Hsu 65ac9800c8 audio: update audio_platform_info table
1. Modify headphone RX acdb id:
      <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="10"/> -->
      <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="56"/>

 2. Add Condor with mic acdb id in VOIP:
                <!-- condor_VOIP-->
                <ext_device name="SND_DEVICE_IN_USB_HEADSET_MIC_AEC" usbid="18d1:5034" acdb_id="55" />

Bug: 152717319
Test: Verified by H/W
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I71b3a228777587e65e0c128922dde4150b0d7b78
2020-05-29 15:46:11 +08:00
Robert Lee 4eb7fcfc83 audio: correct pcm id for speaker calibration usecase
Bug: 151568484
Test: builds
Change-Id: I819402d4510f6a1a663f913b5ca9ac4f0b13e834
Signed-off-by: Robert Lee <lerobert@google.com>
2020-05-29 15:46:11 +08:00
Jason Hsu 86466ade94 audio: sync audio table
correct mic channel mapping setting

Bug: 151389403
Test: Manual test audio basic function and solo test tool

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I7ac3f934d8b3dc42dbb4af88bfaae72a8e045bc0
2020-05-29 15:45:59 +08:00
Jason Hsu 82ebf7d119 audio: update audio table
Bug: 149263752
Test: local built pass

Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: Ibe8fe48056a2e652daa59f89f0e0e79ee2126251
2020-05-29 15:45:56 +08:00
vincenttew ee6506d4d9 audio: update audio table
Changelist:
1. Modify VOIP Handset SND name

Bug: 147470422
Test: build pass
Change-Id: Ia7b4534e81384b590223cbde7e70457ece15b7bb
Signed-off-by: vincenttew <vincenttew@google.com>
2020-05-29 15:26:36 +08:00
Robert Lee 9b96b6bfc6 audio: fix resume music no sound after ringtone playback
Bug: 146538232
Test: Youtube resume has sound after reject incoming call
Change-Id: Ic675ed57d4f683ed048e605c405ff2495394aa29
Signed-off-by: Robert Lee <lerobert@google.com>
2020-05-29 15:26:29 +08:00
BubbleFang 1efd6aa17f audio: update audio_platform and mixer for HAC
mixer : add HAC RX routing "voice-hac-handset"
audio platform:
add => <device name="SND_DEVICE_OUT_VOICE_HAC_HANDSET" interface="QUIN_TDM_RX_0"/>
add => Spirent sim detect
modify=> <device name="SND_DEVICE_OUT_VOICE_USB_HEADPHONES" acdb_id="56"/>
modify=> <device name="SND_DEVICE_IN_HANDSET_DMIC_AEC_NS" acdb_id="41"/>
modify=> <device name="SND_DEVICE_IN_SPEAKER_MIC" acdb_id="4"/>

Bug: 146398789
Test: Local test
Change-Id: I3a8de25d94298877cc9ada809d5ace667e444a75
Signed-off-by: BubbleFang <bubblefang@google.com>
2020-05-29 15:21:23 +08:00
yixuanjiang ea026a868a audio: update audio_platform and mixer for TTY
Bug: 145647615
Change-Id: I070c26dc985b72c39f0802aa79a8953a93c63d98
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2020-05-29 15:21:09 +08:00
Jason Hsu 226c851263 audio: update platform_info table and mixer path table
Bug: 145244105
Test: built pass
Change-Id: I04647f494ceb5800684a65ca3546874c9da59fcd
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2019-12-05 16:16:58 +08:00
yixuanjiang ca9fc2e936 audio: update audio_platform and mixer
1. sync acdb setting
2. add echo ref for voip case

Bug: 144979768
Test: local
Change-Id: I638dd7d89d4693541ff0b4e79e4054aa0a497498
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2019-11-22 11:46:42 +00:00
vincenttew a32e3dc99c audio: update audio routing table
changelist:
3. correct BT feedback pcm device

Test: build pass
Change-Id: I7a75ccd1be4426edede3507c3beb2030d4c800f5
Signed-off-by: vincenttew <vincenttew@google.com>
2019-11-15 20:43:02 +08:00
juyuchen 2307ac9847 audio: update tables
1.
Set correct pcm ID to QUIN_TDM hostless playback and capture.

Bug: 144005527
Test: manual audio tests.

Change-Id: I11f9ac5763da88807c97660066f429c947badabd
Signed-off-by: juyuchen <juyuchen@google.com>
2019-11-08 14:52:21 +08:00
yixuanjiang 14e5f0332b audio: update mixer table for voice, record and backend name
Test: built passed
Change-Id: I66644b5a457b5e5169ec0d9f2a9169fc764a4f65
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2019-11-04 16:36:22 +08:00
juyuchen ce15fdb3a2 audio: update table
Bug: 142838853
Test: manual audio tests.

Change-Id: Id072a755310a45b37ef0688a16a7c52bb94422cc
Signed-off-by: juyuchen <juyuchen@google.com>
2019-10-31 21:38:04 +08:00
Jason Hsu ef2906ef40 audio: rename audio_platform_info.xml and add cs35l41 fw and bins.No.2
Bug: 140462305
Test: build pass

Change-Id: Iaad9ffeefa96462c4f735056be5b2efcc2bc7df1
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
2019-09-18 20:47:00 +08:00