hal: fix for voice + voip call concurrency
-When voice call interrups ongoing voip call, voip call goes
to hold state and voice call becomes active. During voice call end
stop_call is not being called because mode is not set to MODE_NORMAL.
Voip call becomes active and mode is set to MODE_IN_COMMUNICATION
after voice call end.
-Fix this issue by removing the dependency on MODE_NORMAL to end
voice call.
Change-Id: I0103f5c6833fb929cb7975f838bc2c5ec4d94313
CRs-Fixed: 633437
diff --git a/hal/voice_extn/voice_extn.c b/hal/voice_extn/voice_extn.c
index 5dbd7b9..9b7adf1 100644
--- a/hal/voice_extn/voice_extn.c
+++ b/hal/voice_extn/voice_extn.c
@@ -302,12 +302,6 @@
no_of_calls_active++;
}
- /* When there is only one call active, wait for audio policy manager to set
- * the mode to AUDIO_MODE_NORMAL and trigger routing to end the last call.
- */
- if (no_of_calls_active == 1 && call_state == CALL_INACTIVE)
- return 0;
-
if (session) {
session->state.new = call_state;
voice_extn_is_in_call(adev, &is_in_call);