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

Commit 91df2cd0 authored by Carter Hsu's avatar Carter Hsu
Browse files

Revert "audio-hal: Update voice 'in_call' flag"

This reverts commit 945625ef.

Bug: 68969429
Bug: 79266068
Test: manual voice-call test
parent 7780106b
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -162,7 +162,6 @@ static int update_calls(struct audio_device *adev)
    struct voice_session *session = NULL;
    int fd = 0;
    int ret = 0;
    bool is_voice_sess_active = false;

    ALOGD("%s: enter:", __func__);

@@ -223,12 +222,6 @@ static int update_calls(struct audio_device *adev)
                          __func__, usecase_id);
                } else {
                    session->state.current = session->state.new;

                    // The flag is not reset if another voice session is active as routing/mode is
                    // set globally instead of per session.
                    voice_extn_is_call_state_active(adev, &is_voice_sess_active);
                    if (!is_voice_sess_active)
                        adev->voice.in_call = false;
                }
                break;