From: Bharat Panda Date: Wed, 9 Dec 2015 07:05:21 +0000 (+0530) Subject: audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying X-Git-Tag: accepted/tizen/mobile/20151219.044147~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9024e886daa399e68065e39b36b95b831c9eeb2;p=platform%2Fupstream%2Fbluez.git audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying 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 --- diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 058fc00..80c1ff2 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -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); }