summaryrefslogtreecommitdiffstats
path: root/stack/sdp/sdp_api.c
diff options
context:
space:
mode:
authorAyan Ghosh <abghosh@codeaurora.org>2015-09-16 21:50:28 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:22:18 -0600
commit01497688be5d86a2261afc2a4255067b7ef94c4a (patch)
tree5c5a08bd2e4dd565d25ca56034ff42c3d9b0c70c /stack/sdp/sdp_api.c
parent2f92ec14074acd509c6e6b574744fa0c9591829a (diff)
downloadandroid_system_bt-01497688be5d86a2261afc2a4255067b7ef94c4a.tar.gz
android_system_bt-01497688be5d86a2261afc2a4255067b7ef94c4a.tar.bz2
android_system_bt-01497688be5d86a2261afc2a4255067b7ef94c4a.zip
Dynamic AVRC version change based on Remote's capability
- Update DUT's adevertised AVRCP version as 1.4 or more if remote is capable of Avrcp File browsing with feature supported as 1.4 or more. - For other remote DUT always displays Avrcp version as 1.3. - For browsing capable remote, browsing feature works when remote does SDP after repair. Change-Id: I00679397559cfb3b9efffeb92fc6b2755b851fea
Diffstat (limited to 'stack/sdp/sdp_api.c')
-rw-r--r--stack/sdp/sdp_api.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/stack/sdp/sdp_api.c b/stack/sdp/sdp_api.c
index ee41ff272..699a9c12a 100644
--- a/stack/sdp/sdp_api.c
+++ b/stack/sdp/sdp_api.c
@@ -32,6 +32,7 @@
#include "l2cdefs.h"
#include "hcidefs.h"
#include "hcimsgs.h"
+#include "avrc_defs.h"
#include "sdp_api.h"
#include "sdpint.h"
@@ -1283,5 +1284,22 @@ UINT8 SDP_SetTraceLevel (UINT8 new_level)
*******************************************************************************/
BOOLEAN SDP_Dev_Blacklisted_For_Avrcp15 (BD_ADDR addr)
{
- return sdp_dev_blacklisted_for_avrcp15 (addr);
+ int ver;
+ BOOLEAN ret = sdp_dev_blacklisted_for_avrcp15(addr);
+ SDP_TRACE_ERROR("%s", __func__);
+ if (ret != TRUE)
+ {
+ ver = sdp_get_stored_avrc_tg_version (addr);
+ SDP_TRACE_ERROR("Stored AVRC TG version: 0x%x", ver);
+ if (ver >= AVRC_REV_1_4)
+ {
+ ret = FALSE;
+ }
+ else
+ {
+ ret = TRUE;
+ }
+ }
+ SDP_TRACE_ERROR("%s: blacklisted: %d", __func__, ret);
+ return ret;
}