summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYung Ti Su <andysu@google.com>2018-06-22 17:38:47 +0800
committerYixuan Jiang <yixuanjiang@google.com>2018-12-06 03:32:54 +0000
commit0bb200f93c8724e3c7805fc9448930239fddb127 (patch)
treeb8325a2a2508a337dd5141b41cc25e39703faaaf
parentc1b7608539dbe41d75c19a6e242cbcbb906c705a (diff)
downloadandroid_hardware_qcom_audio-0bb200f93c8724e3c7805fc9448930239fddb127.tar.gz
android_hardware_qcom_audio-0bb200f93c8724e3c7805fc9448930239fddb127.tar.bz2
android_hardware_qcom_audio-0bb200f93c8724e3c7805fc9448930239fddb127.zip
hal: fix for voip volume setting when select_devices()
voip volume setting will not be applied correctly when select_devices() since its usecase type won't necessary be voip_usecase check for voip_usecase existance and not a capture type instead. Bug: 110446256 Bug: 120052983 Test: self tested 20 times making a DUO video call Change-Id: If3e6bc46be02a83ccf92bd56fc48a9c88c1e21bd Signed-off-by: Yung Ti Su <andysu@google.com>
-rw-r--r--hal/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 98d67c47..aa3cb7e2 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1482,7 +1482,7 @@ int select_devices(struct audio_device *adev,
voice_set_sidetone(adev, out_snd_device, true);
}
- if (usecase == voip_usecase) {
+ if (usecase->type != PCM_CAPTURE && voip_usecase) {
struct stream_out *voip_out = voip_usecase->stream.out;
audio_extn_utils_send_app_type_gain(adev,
voip_out->app_type_cfg.app_type,