From bfbd3d902981665c08223515513dac457a721f29 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 9 Nov 2025 13:07:04 +0200 Subject: [PATCH] bap: make SetConfiguration() work similarly for ucast and bcast Change ucast SetConfiguration() to always create a new stream. Previously, it also removed all streams, but this is not useful now as it prevents client from creating multiple streams, and since it can use ClearConfiguration() to remove streams. --- profiles/audio/bap.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index 0883f6c47..85bba9543 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1140,13 +1140,6 @@ static DBusMessage *set_configuration(DBusConnection *conn, DBusMessage *msg, if (dbus_message_iter_get_arg_type(&props) != DBUS_TYPE_DICT_ENTRY) return btd_error_invalid_args(msg); - /* Broadcast source supports multiple setups, each setup will be BIS - * and will be configured with the set_configuration command - * TO DO reconfiguration of a BIS. - */ - if (bt_bap_pac_get_type(ep->lpac) != BT_BAP_BCAST_SOURCE) - ep_close(ep, NULL, NULL, NULL); - setup = setup_new(ep); if (setup_parse_configuration(setup, &props) < 0) { -- 2.47.3