summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorsangwon.jeon <sangwon.jeon@lge.com>2013-10-17 21:42:50 +0900
committerVineeta Srivastava <vsrivastava@google.com>2013-10-24 09:30:00 -0700
commit866d5ff1463591e276b7f138c42466d9832c47d4 (patch)
tree2b4f350277e04e011f28e46e1820dc7d87b05f4e /hal
parent2c69188d9160b5e71ccffa6e42759c12fdb5965c (diff)
downloadandroid_hardware_qcom_audio-866d5ff1463591e276b7f138c42466d9832c47d4.tar.gz
android_hardware_qcom_audio-866d5ff1463591e276b7f138c42466d9832c47d4.tar.bz2
android_hardware_qcom_audio-866d5ff1463591e276b7f138c42466d9832c47d4.zip
hal: Fix for Audio Route issue when sound path changes
- if you make an outgoing call as mp3 playback is runnign with headset, Right side of headset is not functional when keep changing sound path from headset to speaker - Fix the issue by separating loop related of disable/enable_snd_device Bug: 11232052 Change-Id: Id02a6d7221c77cf4003d97749d75a062d8575d02
Diffstat (limited to 'hal')
-rw-r--r--hal/audio_hw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index 08d9c32c..d8e8ca87 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -311,6 +311,12 @@ static void check_usecases_codec_backend(struct audio_device *adev,
usecase = node_to_item(node, struct audio_usecase, list);
if (switch_device[usecase->id]) {
disable_snd_device(adev, usecase->out_snd_device, false);
+ }
+ }
+
+ list_for_each(node, &adev->usecase_list) {
+ usecase = node_to_item(node, struct audio_usecase, list);
+ if (switch_device[usecase->id]) {
enable_snd_device(adev, snd_device, false);
}
}