summaryrefslogtreecommitdiffstats
path: root/hal
diff options
context:
space:
mode:
authorRavi Kumar Alamanda <ralama@codeaurora.org>2013-10-02 09:56:18 -0700
committerVineeta Srivastava <vsrivastava@google.com>2013-10-02 14:50:49 -0700
commited9c56ad071e5d0fb09ac7f310dc83a4553c1ad7 (patch)
treebec8120b96e9f45eb430480800a078279ce33aa6 /hal
parenta6c11c11e2e7aee28b544674f1158b7b057c0c52 (diff)
downloadandroid_hardware_qcom_audio-ed9c56ad071e5d0fb09ac7f310dc83a4553c1ad7.tar.gz
android_hardware_qcom_audio-ed9c56ad071e5d0fb09ac7f310dc83a4553c1ad7.tar.bz2
android_hardware_qcom_audio-ed9c56ad071e5d0fb09ac7f310dc83a4553c1ad7.zip
hal: Fix for Tx Mute issue when a new call accepted while in call
- While in a voice call, if an incoming call is accepted, Tx path is muted on some specific networks. - If there is an incoming call, Telephony sets the mode to RINGTONE, and the condition check in audio HAL leads to voice call tear down. When the call is accepted, the mode is set back to IN_CALL and voice call path is re-enabled but the voice drivers will be operating with default settings as there is no notification from Modem side in this case. For modem, there is no change in the call state i.e. just switched from caller 1 to caller2. - Fix the issue by ensuring that the voice call is teared down only if mode is set to NORMAL while call is progress. Bug: 10733490 Change-Id: I2f205bb055807bb8d25f81e2907f78cd98bb77ad
Diffstat (limited to 'hal')
-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 c89d88ea..c5e44aa2 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -1220,7 +1220,7 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs)
}
}
- if ((adev->mode != AUDIO_MODE_IN_CALL) && adev->in_call &&
+ if ((adev->mode == AUDIO_MODE_NORMAL) && adev->in_call &&
(out == adev->primary_output)) {
stop_voice_call(adev);
}