diff options
author | Ravi Nagarajan <nravi@broadcom.com> | 2012-03-21 20:02:10 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:13 -0700 |
commit | 793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5 (patch) | |
tree | bd9017e4352e68bb5aaa3ebd18396a99e0a4128c /bta/ag | |
parent | 2409c30542ccd73a612c215c8ab584b1736bcc52 (diff) | |
download | external_bluetooth_bluedroid-793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5.zip external_bluetooth_bluedroid-793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5.tar.gz external_bluetooth_bluedroid-793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5.tar.bz2 |
Handle scenarios where call is incoming/outgoing/connected/waiting when a headset connects
Change-Id: Idcb6390cffdab45e816b232cab65232af1b2b4be
Diffstat (limited to 'bta/ag')
-rw-r--r-- | bta/ag/bta_ag_cmd.c | 5 |
1 files changed, 5 insertions, 0 deletions
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: |