summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2014-04-22 15:36:17 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2014-04-22 15:36:17 -0700
commit5a55119371cb1199073c5c315e4f0b7eafce9c52 (patch)
tree7b13384ff4d5f249651077183c0173563f7dcdeb /hal
parent6b75dd74ef165065546ceaad98ca908632211837 (diff)
parentc17cab6487f97c2e44ad2588d0b0229344429b5a (diff)
downloadandroid_hardware_qcom_audio-5a55119371cb1199073c5c315e4f0b7eafce9c52.tar.gz
android_hardware_qcom_audio-5a55119371cb1199073c5c315e4f0b7eafce9c52.tar.bz2
android_hardware_qcom_audio-5a55119371cb1199073c5c315e4f0b7eafce9c52.zip
Merge "hal: fix BT device switch issue for audio playback during VoIP call"
Diffstat (limited to 'hal')
-rw-r--r--hal/audio_hw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 9d392c24..31c23ed5 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -637,7 +637,8 @@ int select_devices(struct audio_device *adev, audio_usecase_t uc_id)
}
} else if (voice_extn_compress_voip_is_active(adev)) {
voip_usecase = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
- if (voip_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) {
+ if ((voip_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) &&
+ (usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND)) {
in_snd_device = voip_usecase->in_snd_device;
out_snd_device = voip_usecase->out_snd_device;
}