diff options
author | Ravi Nagarajan <nravi@broadcom.com> | 2012-03-27 20:10:19 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:13 -0700 |
commit | f2b7dab37bdd8736b9ffb2b8e99e77236850b81c (patch) | |
tree | 534fdf9bd61f13613d79d572024d67e0901823aa /bta | |
parent | 793a50c94f27855c9ed8a7a4f8df4c64eb6d4ef5 (diff) | |
download | external_bluetooth_bluedroid-f2b7dab37bdd8736b9ffb2b8e99e77236850b81c.zip external_bluetooth_bluedroid-f2b7dab37bdd8736b9ffb2b8e99e77236850b81c.tar.gz external_bluetooth_bluedroid-f2b7dab37bdd8736b9ffb2b8e99e77236850b81c.tar.bz2 |
Add support for Voice Recognition. Stack will verify that the peer supports VR prior to sending VR events. Additionally, response to BVRA from headset will come from the app
Change-Id: Id00897e92277fec1e8f8f1cdd0596c4435b76e1d
Diffstat (limited to 'bta')
-rw-r--r-- | bta/ag/bta_ag_cmd.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bta/ag/bta_ag_cmd.c b/bta/ag/bta_ag_cmd.c index 7e69780..5d60405 100644 --- a/bta/ag/bta_ag_cmd.c +++ b/bta/ag/bta_ag_cmd.c @@ -1007,12 +1007,8 @@ void bta_ag_at_hfp_cback(tBTA_AG_SCB *p_scb, UINT16 cmd, UINT8 arg_type, break; case BTA_AG_HF_CMD_BVRA: - /* if feature send OK, else don't call callback, send ERROR */ - if (p_scb->features & BTA_AG_FEAT_VREC) - { - bta_ag_send_ok(p_scb); - } - else + /* if feature not supported don't call callback, send ERROR. App will send OK */ + if (!(p_scb->features & BTA_AG_FEAT_VREC)) { event = 0; bta_ag_send_error(p_scb, BTA_AG_ERR_OP_NOT_SUPPORTED); |