All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] profiles/avrcp: Fix PDU for SetAbsoluteVolume with top level bit set
@ 2025-03-19 12:12 Frédéric Danis
  2025-03-19 13:28 ` [BlueZ] " bluez.test.bot
  2025-03-19 20:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Frédéric Danis @ 2025-03-19 12:12 UTC (permalink / raw)
  To: linux-bluetooth

This is required for passing PTS test case AVRCP/TG/VLH/BI-02-C
(To verify the behavior of the TG receiving a SetAbsoluteVolume
command with the top level bit set).
---
 profiles/audio/avrcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index 65f1adbdd..8d1e03b93 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -1793,7 +1793,7 @@ static uint8_t avrcp_handle_set_absolute_volume(struct avrcp *session,
 		goto err;
 	}
 
-	volume = pdu->params[0] & 0x7F;
+	volume = pdu->params[0] = pdu->params[0] & 0x7F;
 
 	media_transport_update_device_volume(session->dev, volume);
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-19 19:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 12:12 [PATCH BlueZ] profiles/avrcp: Fix PDU for SetAbsoluteVolume with top level bit set Frédéric Danis
2025-03-19 13:28 ` [BlueZ] " bluez.test.bot
2025-03-19 20:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.