Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43e0c551 authored by Dhanalakshmi Siddani's avatar Dhanalakshmi Siddani Committed by Steve Kondik
Browse files

audio: Fix ringtone mute issue

- Voice call ringtone is muted after multi party call
- Primary output suspend count is incremented twice during multi party
  call and decremented only once, which is causing the primary o/p not
  opening at all after ending the call
- Fix is not to call close again on the closed output by checking the
  flag status

Change-Id: I2bcdcb2591942f48eac4635a3b36ee575787ee92
parent 9942a567
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -781,7 +781,7 @@ void AudioPolicyManager::setPhoneState(audio_mode_t state)
            ALOGD("SetPhoneState: Voice call state = %d", voice_call_state);
    }

    if (mode_in_call && voice_call_state) {
    if (mode_in_call && voice_call_state && !mvoice_call_state) {
        ALOGD("Entering to call mode oldState :: %d state::%d ",oldState, state);
        mvoice_call_state = voice_call_state;
        if (prop_playback_enabled) {