hal: voice: fix no sound issue in voice call am: 43e14821fa
am: 60d7268b16
Change-Id: I9de54ce70472c8cd5b74d60cb215ba4ea2f23353
diff --git a/hal/voice.c b/hal/voice.c
index d2215b6..f3250c9 100644
--- a/hal/voice.c
+++ b/hal/voice.c
@@ -124,8 +124,10 @@
session->state.current = CALL_INACTIVE;
/* Disable sidetone only when no calls are active */
- if (!voice_is_call_state_active(adev))
+ if (!voice_is_call_state_active(adev)) {
+ adev->voice.in_call = false;
voice_set_sidetone(adev, uc_info->out_snd_device, false);
+ }
ret = platform_stop_voice_call(adev->platform, session->vsid);