public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] device: Initialize device volume with a valid value
@ 2026-01-22  6:36 Jinwang Li
  2026-01-22  7:50 ` [v1] " bluez.test.bot
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jinwang Li @ 2026-01-22  6:36 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: cheng.jiang, quic_chezhou, wei.deng, shuai.zhang, mengshi.wu,
	jinwang.li

When AVRCP is connected earlier than AVDTP, this invalid device volume
causes the A2DP sink to reject the peer's registration for the
EVENT_VOLUME_CHANGED notification. As a result, subsequent attempts to
set the volume fail.

Fixes: fa7828bddd21 ("transport: Fix not being able to initialize volume properly")
Signed-off-by: Jinwang Li <jinwang.li@oss.qualcomm.com>
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index af8df5f29..cd0b8802e 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4948,7 +4948,7 @@ static struct btd_device *device_new(struct btd_adapter *adapter,
 		return NULL;
 
 	device->tx_power = 127;
-	device->volume = -1;
+	device->volume = 127;
 	device->wake_id = -1U;
 
 	device->db = gatt_db_new();
-- 
2.34.1


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

end of thread, other threads:[~2026-03-05  8:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-22  6:36 [PATCH v1] device: Initialize device volume with a valid value Jinwang Li
2026-01-22  7:50 ` [v1] " bluez.test.bot
2026-02-25  9:10 ` [PATCH v1] " Jinwang Li
2026-02-25 14:52 ` Luiz Augusto von Dentz
2026-03-05  8:41   ` Jinwang Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox