From b8bf845a094e57a1b27687acc3ffb6a08a6f0f3a Mon Sep 17 00:00:00 2001 From: Silviu Florian Barbulescu Date: Tue, 16 Apr 2024 15:06:30 +0300 Subject: [PATCH] bluez: disable by default the registration of the BAP broadcast sink and BAP broadcast source The support can be enabled, from the config file with "bap_bcast_source" and "bap_bcast_sink". --- spa/plugins/bluez5/bluez5-dbus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spa/plugins/bluez5/bluez5-dbus.c b/spa/plugins/bluez5/bluez5-dbus.c index aca2c75eb..de5552de8 100644 --- a/spa/plugins/bluez5/bluez5-dbus.c +++ b/spa/plugins/bluez5/bluez5-dbus.c @@ -5847,6 +5847,10 @@ static int parse_roles(struct spa_bt_monitor *monitor, const struct spa_dict *in } profiles &= res; + } else { + /* Default disable BAP_BROADCAST_SINK and BAP_BROADCAST_SOURCE */ + profiles &= (SPA_BT_PROFILE_A2DP_SINK | SPA_BT_PROFILE_BAP_SINK | + SPA_BT_PROFILE_A2DP_SOURCE | SPA_BT_PROFILE_BAP_SOURCE); } res = 0;