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

Commit be61ed01 authored by Zhou Song's avatar Zhou Song Committed by Gerrit - the friendly Code Review server
Browse files

hal: update in_call state to false when call stopped

Sometimes the mode of HAL may be not in AUDIO_MODE_NORMAL while
active call stopped, then it will return with incorrect call state
to APM.

Update the state to false regardless of the HAL mode when active
call stopped.

Change-Id: I8b1c356f65ec273802cda282b1500a3859e837ce
CRs-Fixed: 899756
parent 260759cd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -131,7 +131,6 @@ int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id)
    }

    session->state.current = CALL_INACTIVE;
    if (adev->mode == AUDIO_MODE_NORMAL)
    adev->voice.is_in_call = false;

    /* Disable sidetone only when no calls are active */