Skip to contentSkip to conversation

audio/avrcp: Fix ctype code of PlayItem and AddToNowPlaying

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Oct 12, 2015 – Oct 14, 2015 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 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
index 44f8929..7b60012 100644
@@ -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
author maintainer Applied
#1 lore raw

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
index 44f8929..7b60012 100644
@@ -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