audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying
Luiz Augusto von Dentz
maintainerPATCH 1/1 audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying
From: Luiz Augusto von Dentz <[email protected]>
Both PlayItem and AddToNowPlaying should use control type not status.
--- profiles/audio/avrcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
profiles/audio/avrcp.c +2 -2
@@ -3030,7 +3030,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); }
@@ -3076,7 +3076,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); }
Signature · 1 line
2.4.3
Hi,
Quoted 30 lines · Luiz Augusto von Dentz
From: Luiz Augusto von Dentz <[email protected]>
Both PlayItem and AddToNowPlaying should use control type not status.
--- profiles/audio/avrcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)profiles/audio/avrcp.c +2
-3@@ -3030,7 +3030,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); }@@ -3076,7 +3076,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); } --
Quoted 1 line
2.4.3
Applied.
Signature · 1 line
Luiz Augusto von Dentz