Skip to contentSkip to conversation

audio/AVRCP: Always assign a player to TG role

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Oct 29, 2013 – Oct 30, 2013 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 audio/AVRCP: Always assign a player to TG role

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

Currently the code does not assign a player if version is bellow 1.3, but sometimes the version may not be initialized correctly e.g: record could not be fetch.

Futhermore by assigning a player for 1.0 CT it won't break backward compatibility as no commands will be sent but adds the possibility to respond properly in case the CT is sending commands above its own version which is a violation of the spec but unfortunately there exists such stacks on the market.

---
 profiles/audio/avrcp.c | 3 ---
 1 file changed, 3 deletions(-)
profiles/audio/avrcp.c +0 -3
index 296067c..cd027c6 100644
@@ -3363,9 +3363,6 @@ static void target_init(struct avrcp *session)
 	if (service != NULL)
 		btd_service_connecting_complete(service, 0);
 
-	if (target->version < 0x0103)
-		return;
-
 	player = g_slist_nth_data(server->players, 0);
 	if (player != NULL) {
 		target->player = player;
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Luiz,

Quoted 4 lines · Luiz Augusto von Dentz

Currently the code does not assign a player if version is bellow 1.3, but sometimes the version may not be initialized correctly e.g: record could not be fetch.

Quoted 8 lines

Futhermore by assigning a player for 1.0 CT it won't break backward compatibility as no commands will be sent but adds the possibility to respond properly in case the CT is sending commands above its own version which is a violation of the spec but unfortunately there exists such stacks on the market.

---
 profiles/audio/avrcp.c | 3 ---
 1 file changed, 3 deletions(-)

Applied. Thanks.

Johan