audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying 58/53758/1
authorBharat Panda <bharat.panda@samsung.com>
Wed, 9 Dec 2015 07:05:21 +0000 (12:35 +0530)
committerBharat Panda <bharat.panda@samsung.com>
Wed, 9 Dec 2015 07:05:21 +0000 (12:35 +0530)
Both playItem and AddtoNowPlaying should use control type not status.

As per specification this has to be changed to control type to PASS
PTS test cases.

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

Change-Id: I03cb14c225bfbea1ba0c808de4bd838e7204eed0

profiles/audio/avrcp.c

index 058fc00..80c1ff2 100644 (file)
@@ -3064,7 +3064,7 @@ static void avrcp_play_item(struct avrcp *session, uint64_t uid)
 
        length = AVRCP_HEADER_LENGTH + ntohs(pdu->params_len);
 
-       avctp_send_vendordep_req(session->conn, AVC_CTYPE_STATUS,
+       avctp_send_vendordep_req(session->conn, AVC_CTYPE_CONTROL,
                                        AVC_SUBUNIT_PANEL, buf, length,
                                        NULL, session);
 }
@@ -3110,7 +3110,7 @@ static void avrcp_add_to_nowplaying(struct avrcp *session, uint64_t uid)
 
        length = AVRCP_HEADER_LENGTH + ntohs(pdu->params_len);
 
-       avctp_send_vendordep_req(session->conn, AVC_CTYPE_STATUS,
+       avctp_send_vendordep_req(session->conn, AVC_CTYPE_CONTROL,
                                        AVC_SUBUNIT_PANEL, buf, length,
                                        NULL, session);
 }