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
diff --git a/hal/voice.c b/hal/voice.c
index 527856f..bc9d5c7 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -131,8 +131,7 @@
}
session->state.current = CALL_INACTIVE;
- if (adev->mode == AUDIO_MODE_NORMAL)
- adev->voice.is_in_call = false;
+ adev->voice.is_in_call = false;
/* Disable sidetone only when no calls are active */
if (!voice_is_call_state_active(adev))