diff options
author | kunleiz <kunleiz@codeaurora.org> | 2016-03-15 17:40:20 +0800 |
---|---|---|
committer | Ricardo Cerqueira <ricardo@cyngn.com> | 2016-10-23 21:30:49 +0100 |
commit | 4a5b2bfa25b9a4e24e0f3ccad22038fcc81b3e15 (patch) | |
tree | 1d0973a51e0645f91d7a95a5bcce66edb664ae91 | |
parent | d59ad5526cf1bbbb9ba49d052f4327ad17bb0b82 (diff) | |
download | hardware_qcom_audio-stable/cm-13.0-caf-8937-ZNH2K.tar.gz hardware_qcom_audio-stable/cm-13.0-caf-8937-ZNH2K.tar.bz2 hardware_qcom_audio-stable/cm-13.0-caf-8937-ZNH2K.zip |
hal: Fix the input device is disabled when VOICE and VOIP are activestable/cm-13.0-caf-8937-ZNH2K
Tx mute is observed when VOICE and VOIP are active.When voice and voip
usecases are present, which share the same backend, then the Tx device
disable/enable sequence isn't properly follwed, which cause disabling
tx mic.
Fix this by adding proper check at disable/enable of devices
for capture usecases that share same backend.
CRs-Fixed: 988594
Change-Id: Id8d34574efac3b9cc860341449e426f2790656da
-rwxr-xr-x | hal/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index e2f8dba1..9ef88e2b 100755 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -757,7 +757,7 @@ static void check_and_route_capture_usecases(struct audio_device *adev, usecase->in_snd_device != snd_device && ((uc_info->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) && (((usecase->devices & ~AUDIO_DEVICE_BIT_IN) & AUDIO_DEVICE_IN_ALL_CODEC_BACKEND) || - (usecase->type == VOICE_CALL))) && + (usecase->type == VOICE_CALL) || (usecase->type == VOIP_CALL))) && (usecase->id != USECASE_AUDIO_SPKR_CALIB_TX)) { ALOGV("%s: Usecase (%s) is active on (%s) - disabling ..", __func__, use_case_table[usecase->id], |