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

Commit cdce407b authored by Vidyakumar Athota's avatar Vidyakumar Athota
Browse files

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
parent 24f1c8db
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -302,12 +302,6 @@ static int update_call_states(struct audio_device *adev,
            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);