diff options
| author | Laxminath Kasam <lkasam@codeaurora.org> | 2012-03-08 14:19:52 +0530 |
|---|---|---|
| committer | Giulio Cervera <giulio.cervera@gmail.com> | 2012-05-08 20:01:04 +0200 |
| commit | 3d20fd4bce955268055bdd0f77a79bede14935a2 (patch) | |
| tree | d3690d2e6130b81d59fdeee4adf8de01addfb4ba | |
| parent | bc86f3e7daeaa72f942a9adc57001928f0080991 (diff) | |
| download | android_hardware_qcom_media-3d20fd4bce955268055bdd0f77a79bede14935a2.tar.gz android_hardware_qcom_media-3d20fd4bce955268055bdd0f77a79bede14935a2.tar.bz2 android_hardware_qcom_media-3d20fd4bce955268055bdd0f77a79bede14935a2.zip | |
hardware/qcom: 8660: Fix to mute issue from second voip call
- Make a voip call, mute the mic and end the call.
Now make another voip call, observe mic mute still
present.
- the mute flag related to voip session is not reset
when the call ended. It will result in carry forwarding
the mute to next new voip session and remains muted
until the mic Mute button is pressed again.
- Reset the mute flag of voip and voice session
at the end of respective call sessions.
CRs-Fixed: 343241
(cherry picked from commit dff334e51d45705c5f39caa76eb20431b0791c85)
Change-Id: Id09380338421fcb6c1d8098ac258505fc3d0f772
| -rw-r--r-- | audio/msm8x60/AudioHardware.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/msm8x60/AudioHardware.cpp b/audio/msm8x60/AudioHardware.cpp index 87813d04..9ce0aa47 100644 --- a/audio/msm8x60/AudioHardware.cpp +++ b/audio/msm8x60/AudioHardware.cpp @@ -1778,6 +1778,7 @@ static status_t do_route_audio_rpc(uint32_t device, LOGD("Ending Voice call"); msm_end_voice_ext(voice_session_id); voice_session_id = 0; + voice_session_mute = 0; #else msm_end_voice(); #endif @@ -3356,6 +3357,7 @@ status_t AudioHardware::AudioStreamOutDirect::standby() mFd = mHardware->mVoipFd = -1; LOGV("driver closed"); voip_session_id = 0; + voip_session_mute = 0; } } #endif @@ -4287,6 +4289,7 @@ status_t AudioHardware::AudioStreamInVoip::standby() LOGV("driver closed"); isDriverClosed = true; voip_session_id = 0; + voip_session_mute = 0; } mState = AUDIO_INPUT_CLOSED; } |
