summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-26 17:07:56 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-08-28 10:37:04 +0300
commit8a29308b4c581aec9042bf8fbe56f654c44ae506 (patch)
tree135699ff6437c7a3daf7b47877315d836ae5ed9a /profiles
parent60050fe469df1536466d1c6819670ce70ca92287 (diff)
downloadbluez-8a29308b4c581aec9042bf8fbe56f654c44ae506.tar.gz
audio/avrcp: Bump TG to version 1.5
1.4 is deprecated and 1.5 should be used instead.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/audio/avrcp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 5a1c8a391..2d76f5481 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -137,6 +137,8 @@
#define AVRCP_CHARSET_UTF8 106
#define AVRCP_BROWSING_TIMEOUT 1
+#define AVRCP_CT_VERSION 0x0106
+#define AVRCP_TG_VERSION 0x0105
#if __BYTE_ORDER == __LITTLE_ENDIAN
@@ -277,7 +279,7 @@ static sdp_record_t *avrcp_ct_record(void)
sdp_record_t *record;
sdp_data_t *psm[2], *version, *features;
uint16_t lp = AVCTP_CONTROL_PSM, ap = AVCTP_BROWSING_PSM;
- uint16_t avrcp_ver = 0x0106, avctp_ver = 0x0103;
+ uint16_t avctp_ver = 0x0103;
uint16_t feat = ( AVRCP_FEATURE_CATEGORY_1 |
AVRCP_FEATURE_CATEGORY_2 |
AVRCP_FEATURE_CATEGORY_3 |
@@ -332,7 +334,7 @@ static sdp_record_t *avrcp_ct_record(void)
/* Bluetooth Profile Descriptor List */
sdp_uuid16_create(&profile[0].uuid, AV_REMOTE_PROFILE_ID);
- profile[0].version = avrcp_ver;
+ profile[0].version = AVRCP_CT_VERSION;
pfseq = sdp_list_append(NULL, &profile[0]);
sdp_set_profile_descs(record, pfseq);
@@ -370,7 +372,7 @@ static sdp_record_t *avrcp_tg_record(void)
sdp_list_t *aproto_browsing, *proto_browsing[2] = {0};
uint16_t lp = AVCTP_CONTROL_PSM;
uint16_t lp_browsing = AVCTP_BROWSING_PSM;
- uint16_t avrcp_ver = 0x0104, avctp_ver = 0x0103;
+ uint16_t avctp_ver = 0x0103;
uint16_t feat = ( AVRCP_FEATURE_CATEGORY_1 |
AVRCP_FEATURE_CATEGORY_2 |
AVRCP_FEATURE_CATEGORY_3 |
@@ -420,7 +422,7 @@ static sdp_record_t *avrcp_tg_record(void)
/* Bluetooth Profile Descriptor List */
sdp_uuid16_create(&profile[0].uuid, AV_REMOTE_PROFILE_ID);
- profile[0].version = avrcp_ver;
+ profile[0].version = AVRCP_TG_VERSION;
pfseq = sdp_list_append(NULL, &profile[0]);
sdp_set_profile_descs(record, pfseq);