From 74fe7728d22455922002bd741c20fd442fbbc7f6 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 21 Jan 2025 19:21:13 +0530 Subject: [PATCH] bluez5: media-sink: Set up node group for ASHA ASHA devices with the same HiSyncId should use the same node group/driver. --- spa/plugins/bluez5/media-sink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spa/plugins/bluez5/media-sink.c b/spa/plugins/bluez5/media-sink.c index 49dc5de79..79660f1a5 100644 --- a/spa/plugins/bluez5/media-sink.c +++ b/spa/plugins/bluez5/media-sink.c @@ -1496,6 +1496,10 @@ static void emit_node_info(struct impl *this, bool full) this->transport->device->adapter->address, this->transport->bap_big); node_group = node_group_buf; + } else if (this->transport && (this->transport->profile & SPA_BT_PROFILE_ASHA_SINK)) { + spa_scnprintf(node_group_buf, sizeof(node_group_buf), "[\"bluez-asha-%zd\"]", + this->transport->hisyncid); + node_group = node_group_buf; } const char *codec_profile = this->codec->asha ? "ASHA" : (this->codec->bap ? "BAP" : "A2DP");