summaryrefslogtreecommitdiffstats
path: root/btif/co
diff options
context:
space:
mode:
authorKausik Sinnaswamy <kausik@broadcom.com>2012-03-09 10:54:02 -0800
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:13 -0700
commit837acf40a4968449f044cfd3cd15f7f120617eb5 (patch)
treed2e71deec39c3a5e2e9651726662748fdf6440ac /btif/co
parent5140bed9a19aadca962184ebc9ed823d5d7cb745 (diff)
downloadexternal_bluetooth_bluedroid-837acf40a4968449f044cfd3cd15f7f120617eb5.zip
external_bluetooth_bluedroid-837acf40a4968449f044cfd3cd15f7f120617eb5.tar.gz
external_bluetooth_bluedroid-837acf40a4968449f044cfd3cd15f7f120617eb5.tar.bz2
Added support to handle AVRCP 1.0 and incoming A2DP connections
Change-Id: I7863920895aa9fd77eccee4083319701bcbf4300
Diffstat (limited to 'btif/co')
-rw-r--r--btif/co/bta_av_co.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/btif/co/bta_av_co.c b/btif/co/bta_av_co.c
index 34a9a00..1dbd940 100644
--- a/btif/co/bta_av_co.c
+++ b/btif/co/bta_av_co.c
@@ -216,7 +216,7 @@ static tBTA_AV_CO_PEER *bta_av_co_get_peer(tBTA_AV_HNDL hndl)
FUNC_TRACE();
index = BTA_AV_CO_AUDIO_HNDL_TO_INDX(hndl);
-
+ APPL_TRACE_ERROR2("%s index:%d", __FUNCTION__, index);
/* Sanity check */
if (index >= BTA_AV_CO_NUM_ELEMENTS(bta_av_co_cb.peers))
{
@@ -1008,7 +1008,6 @@ static BOOLEAN bta_av_co_audio_peer_supports_codec(tBTA_AV_CO_PEER *p_peer, UINT
/* Configure the codec type to look for */
codec_type = bta_av_co_cb.codec_cfg.id;
-
for (index = 0; index < p_peer->num_sup_snks; index++)
{
if (p_peer->snks[index].codec_type == codec_type)
@@ -1379,6 +1378,12 @@ void bta_av_co_init(void)
/* Reset the control block */
memset(&bta_av_co_cb, 0, sizeof(bta_av_co_cb));
+#if defined(BTA_AV_CO_CP_SCMS_T) && (BTA_AV_CO_CP_SCMS_T == TRUE)
+ bta_av_co_cp_set_flag(BTA_AV_CP_SCMS_COPY_NEVER);
+#else
+ bta_av_co_cp_set_flag(BTA_AV_CP_SCMS_COPY_FREE);
+#endif
+
/* Reset the current config */
bta_av_co_audio_codec_reset();
}