summaryrefslogtreecommitdiffstats
path: root/btif/src
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-03-30 12:02:46 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:13 -0700
commit52f2d221d391280dff0f38cd3c504d85e3a1128b (patch)
tree884efff8ebf6603e19ff903ba4bc98e0a61ede0a /btif/src
parent254588bfe6c3e70625b0f725b908598f30f476c8 (diff)
downloadexternal_bluetooth_bluedroid-52f2d221d391280dff0f38cd3c504d85e3a1128b.zip
external_bluetooth_bluedroid-52f2d221d391280dff0f38cd3c504d85e3a1128b.tar.gz
external_bluetooth_bluedroid-52f2d221d391280dff0f38cd3c504d85e3a1128b.tar.bz2
Enabled stack AVDTP feature bit that prevents the stack from
auto-suspending streaming on AG incoming/outgoing call. The suspend procedure shall be initiated via the MediaPlayer/AudioFlinger interface Change-Id: I0473a62e29a10619d94d9ca2ff3aea15d5d51f94
Diffstat (limited to 'btif/src')
-rw-r--r--btif/src/btif_av.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/btif/src/btif_av.c b/btif/src/btif_av.c
index 87ee8fb..8ab884c 100644
--- a/btif/src/btif_av.c
+++ b/btif/src/btif_av.c
@@ -865,7 +865,10 @@ bt_status_t btif_av_execute_service(BOOLEAN b_enable)
/* TODO: Removed BTA_SEC_AUTHORIZE since the Java/App does not
* handle this request in order to allow incoming connections to succeed.
* We need to put this back once support for this is added */
- BTA_AvEnable(BTA_SEC_AUTHENTICATE, BTA_AV_FEAT_RCTG,
+ /* Added BTA_AV_FEAT_NO_SCO_SSPD - this ensures that the BTA does not
+ * auto-suspend av streaming on AG events(SCO or Call). The suspend shall
+ * be initiated by the app/audioflinger layers */
+ BTA_AvEnable(BTA_SEC_AUTHENTICATE, (BTA_AV_FEAT_RCTG | BTA_AV_FEAT_NO_SCO_SSPD),
bte_av_callback);
#endif
BTA_AvRegister(BTA_AV_CHNL_AUDIO, BTIF_AV_SERVICE_NAME, 0);