Skip to contentSkip to conversation

audio/avrcp: Fix not listing all players

PATCH Applied Luiz Augusto von Dentz 1 participant 2 messages Aug 31, 2015 – Sep 2, 2015 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 audio/avrcp: Fix not listing all players

From: Luiz Augusto von Dentz <[email protected]>

To list the available player GetFolderItems with scope 0x00 is used but the code currently don't set the range which means only the first player is returned.

---
 profiles/audio/avrcp.c | 2 ++
 1 file changed, 2 insertions(+)
profiles/audio/avrcp.c +2 -0
index d2b0065..48c302a 100644
@@ -3247,6 +3247,8 @@ static void avrcp_get_media_player_list(struct avrcp *session)
 	memset(buf, 0, sizeof(buf));
 
 	pdu->pdu_id = AVRCP_GET_FOLDER_ITEMS;
+	put_be32(0, &pdu->params[1]);
+	put_be32(UINT32_MAX, &pdu->params[5]);
 	pdu->param_len = htons(10);
 
 	avctp_send_browsing_req(session->conn, buf, sizeof(buf),
Signature · 1 line
2.4.3
author maintainer Applied
#1 lore raw

Hi,

Quoted 23 lines · Luiz Augusto von Dentz

From: Luiz Augusto von Dentz <[email protected]>

To list the available player GetFolderItems with scope 0x00 is used but the code currently don't set the range which means only the first player is returned.

---
 profiles/audio/avrcp.c | 2 ++
 1 file changed, 2 insertions(+)
profiles/audio/avrcp.c +2 -1
index d2b0065..48c302a 100644
@@ -3247,6 +3247,8 @@ static void avrcp_get_media_player_list(struct avrcp *session)
        memset(buf, 0, sizeof(buf));
 
        pdu->pdu_id = AVRCP_GET_FOLDER_ITEMS;
+       put_be32(0, &pdu->params[1]);
+       put_be32(UINT32_MAX, &pdu->params[5]);
        pdu->param_len = htons(10);
 
        avctp_send_browsing_req(session->conn, buf, sizeof(buf),
--
Quoted 1 line

2.4.3

Applied.

Signature · 1 line
Luiz Augusto von Dentz