From 793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5 Mon Sep 17 00:00:00 2001 From: Ravi Nagarajan Date: Wed, 21 Mar 2012 20:02:10 +0530 Subject: Handle scenarios where call is incoming/outgoing/connected/waiting when a headset connects Change-Id: Idcb6390cffdab45e816b232cab65232af1b2b4be --- bta/ag/bta_ag_cmd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bta') diff --git a/bta/ag/bta_ag_cmd.c b/bta/ag/bta_ag_cmd.c index af86e26..7e69780 100644 --- a/bta/ag/bta_ag_cmd.c +++ b/bta/ag/bta_ag_cmd.c @@ -1496,6 +1496,11 @@ void bta_ag_hfp_result(tBTA_AG_SCB *p_scb, tBTA_AG_API_RESULT *p_result) case BTA_AG_OUT_CALL_ALERT_RES: /* send indicators */ bta_ag_send_call_inds(p_scb, p_result->result); + if (p_result->data.audio_handle == bta_ag_scb_to_idx(p_scb) && + !(p_scb->features & BTA_AG_FEAT_NOSCO)) + { + bta_ag_sco_open(p_scb, (tBTA_AG_DATA *) p_result); + } break; case BTA_AG_OUT_CALL_CONN_RES: -- cgit v1.1