summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisael Lopez Cruz2014-08-20 18:26:34 -0500
committerGerrit Code Review2014-08-28 20:01:42 -0500
commitffc9fcbadd694cb4b0d6796464bd8f2fb349d20b (patch)
tree8932f72bf1e9d43981137fa556da24489bd401b5 /audio/legacy/audio_hw.c
parent18655bbdd98befb464d8f6a12ba3d860c0d6fc10 (diff)
downloaddevice-ti-jacinto6evm-ffc9fcbadd694cb4b0d6796464bd8f2fb349d20b.tar.gz
device-ti-jacinto6evm-ffc9fcbadd694cb4b0d6796464bd8f2fb349d20b.tar.xz
device-ti-jacinto6evm-ffc9fcbadd694cb4b0d6796464bd8f2fb349d20b.zip
audio: Legacy: Fix leave voice call
The AudioHAL must leave the voice call only when it's no longer in the IN_CALL state. Previously, the voice call leave sequence was incorrectly executed when entering other modes (e.g. RINGTONE). Change-Id: Id0134706fcf1f5999a765c5152ff77ba15d86015 Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'audio/legacy/audio_hw.c')
-rw-r--r--audio/legacy/audio_hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/legacy/audio_hw.c b/audio/legacy/audio_hw.c
index e54ee45..84e5b30 100644
--- a/audio/legacy/audio_hw.c
+++ b/audio/legacy/audio_hw.c
@@ -1393,7 +1393,7 @@ static int adev_set_mode(struct audio_hw_device *dev, audio_mode_t mode)
1393 ALOGE("adev_set_mode() failed to initialize voice call %d", ret); 1393 ALOGE("adev_set_mode() failed to initialize voice call %d", ret);
1394 goto out; 1394 goto out;
1395 } 1395 }
1396 } else { 1396 } else if (adev->mode == AUDIO_MODE_IN_CALL) {
1397 leave_voice_call(adev); 1397 leave_voice_call(adev);
1398 } 1398 }
1399 1399