diff mbox series

[BlueZ,v1] avrcp: Fix not marking AVRCP_EVENT_VOLUME_CHANGED as supported

Message ID 20241108181921.309039-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1] avrcp: Fix not marking AVRCP_EVENT_VOLUME_CHANGED as supported | expand

Commit Message

Luiz Augusto von Dentz Nov. 8, 2024, 6:19 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

If avrcp_volume_supported return true then AVRCP_EVENT_VOLUME_CHANGED
shall be marked as supported.

Fixes: https://github.com/bluez/bluez/issues/1007
---
 profiles/audio/avrcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c
index b5e6548e6600..9fe8f55e5dbf 100644
--- a/profiles/audio/avrcp.c
+++ b/profiles/audio/avrcp.c
@@ -4268,7 +4268,7 @@  static void target_init(struct avrcp *session)
 	if (target->version < 0x0104)
 		return;
 
-	if (!avrcp_volume_supported(target))
+	if (avrcp_volume_supported(target))
 		session->supported_events |=
 				(1 << AVRCP_EVENT_VOLUME_CHANGED);