diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2014-08-20 18:26:34 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@git.omapzoom.org> | 2014-08-28 20:01:42 -0500 |
commit | ffc9fcbadd694cb4b0d6796464bd8f2fb349d20b (patch) | |
tree | 8932f72bf1e9d43981137fa556da24489bd401b5 | |
parent | 18655bbdd98befb464d8f6a12ba3d860c0d6fc10 (diff) | |
download | jacinto6evm-ffc9fcbadd694cb4b0d6796464bd8f2fb349d20b.tar.gz |
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>
-rw-r--r-- | audio/legacy/audio_hw.c | 2 |
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) ALOGE("adev_set_mode() failed to initialize voice call %d", ret); goto out; } - } else { + } else if (adev->mode == AUDIO_MODE_IN_CALL) { leave_voice_call(adev); } |