audio/avrcp: Bump TG to version 1.5 14/51814/1
authorBharat Panda <bharat.panda@samsung.com>
Mon, 16 Nov 2015 10:03:10 +0000 (15:33 +0530)
committerBharat Panda <bharat.panda@samsung.com>
Mon, 16 Nov 2015 10:03:10 +0000 (15:33 +0530)
As AVRCP 1.5 features has been added and 1.4 is deprecated,
version 1.5 should be used instead.

git repo link:
http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=8a29308b4c581aec9042bf8fbe56f654c44ae506

Change-Id: If2c2d6b4e5890b0401a3f90522613190f54c64fb

profiles/audio/avrcp.c

index db3d788..b16efe8 100644 (file)
 #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
 
@@ -297,7 +299,7 @@ static sdp_record_t *avrcp_ct_record(void)
        feat = feat | AVRCP_FEATURE_CATEGORY_2;
 #endif
 #else
-       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 |
@@ -353,7 +355,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;
 #ifdef __TIZEN_PATCH__
        adapter_avrcp_ct_ver = avrcp_ver;
 #endif
@@ -408,7 +410,7 @@ static sdp_record_t *avrcp_tg_record(void)
        feat = feat | AVRCP_FEATURE_CATEGORY_2;
 #endif
 #else
-       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 |
@@ -460,7 +462,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;
 #ifdef __TIZEN_PATCH__
        adapter_avrcp_tg_ver = avrcp_ver;
 #endif