Message ID | 20250319121218.166878-1-frederic.danis@collabora.com |
---|---|
State | New |
Headers | show |
Series | [BlueZ] profiles/avrcp: Fix PDU for SetAbsoluteVolume with top level bit set | expand |
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);