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

Commit cc81cb8a authored by Mallikarjuna GB's avatar Mallikarjuna GB Committed by Andre Eisenbach
Browse files

Don't open SCO for 2nd MO call if a call is active

When user dials a 2nd call, do not open SCO if 1st call was
active on DUT earpiece or speaker.

Change-Id: I974f5bcf917e6972705e60cf1da195eae23f885a
parent 444a4d38
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1309,12 +1309,14 @@ static bt_status_t phone_state_change(int num_active, int num_held, bthf_call_st
                }
                break;
            case BTHF_CALL_STATE_DIALING:
                if (!(num_active + num_held))
                    ag_res.audio_handle = btif_hf_cb[idx].handle;
                res = BTA_AG_OUT_CALL_ORIG_RES;
                break;
            case BTHF_CALL_STATE_ALERTING:
                /* if we went from idle->alert, force SCO setup here. dialing usually triggers it */
                if (btif_hf_cb[idx].call_setup_state == BTHF_CALL_STATE_IDLE)
                if ((btif_hf_cb[idx].call_setup_state == BTHF_CALL_STATE_IDLE) &&
                        !(num_active + num_held))
                    ag_res.audio_handle = btif_hf_cb[idx].handle;
                res = BTA_AG_OUT_CALL_ALERT_RES;
                break;