From: "Frédéric Danis" <frederic.danis@collabora.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ] profiles/avrcp: Fix PDU for SetAbsoluteVolume with top level bit set
Date: Wed, 19 Mar 2025 13:12:18 +0100 [thread overview]
Message-ID: <20250319121218.166878-1-frederic.danis@collabora.com> (raw)
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
next reply other threads:[~2025-03-19 12:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-19 12:12 Frédéric Danis [this message]
2025-03-19 13:28 ` [BlueZ] profiles/avrcp: Fix PDU for SetAbsoluteVolume with top level bit set bluez.test.bot
2025-03-19 20:00 ` [PATCH BlueZ] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250319121218.166878-1-frederic.danis@collabora.com \
--to=frederic.danis@collabora.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.