All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ bluez] bass: remove the device of BIS source when modify operation.
@ 2025-04-16 10:12 ` Yang Li via B4 Relay
  0 siblings, 0 replies; 4+ messages in thread
From: Yang Li @ 2025-04-16 10:12 UTC (permalink / raw)
  To: Linux Bluetooth; +Cc: Yang Li

When the Client sends a modify operation and PA Sync is
"Do not synchronize to PA", the BIS source information
needs to be cleared.

Fixes: https://github.com/bluez/bluez/issues/1145
---
Signed-off-by: Yang Li <yang.li@amlogic.com>
---
 profiles/audio/bass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/profiles/audio/bass.c b/profiles/audio/bass.c
index c36f43277..4bbb1bf17 100644
--- a/profiles/audio/bass.c
+++ b/profiles/audio/bass.c
@@ -1427,6 +1427,9 @@ static int handle_mod_src_req(struct bt_bcast_src *bcast_src,
 
 			bt_bass_set_pa_sync(dg->src,
 				BT_BASS_NOT_SYNCHRONIZED_TO_PA);
+
+			/* Remove device of BIS source*/
+			btd_adapter_remove_device(device_get_adapter(dg->device), dg->device);
 		} else {
 			bass_update_bis_sync(dg, bcast_src);
 		}

---
base-commit: f8e7bcfdfb83a6a3becabdba1e4448bf04e32db5
change-id: 20250416-bass_modify-7accebe87323

Best regards,
-- 
Yang Li <yang.li@amlogic.com>


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

end of thread, other threads:[~2025-04-24 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16 10:12 [PATCH BlueZ bluez] bass: remove the device of BIS source when modify operation Yang Li
2025-04-16 10:12 ` Yang Li via B4 Relay
2025-04-16 11:35 ` [BlueZ,bluez] " bluez.test.bot
2025-04-24 17:02 ` bluez.test.bot

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.