From 231372ca5e1545eb505dd22be1ff28d89b68fd22 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sat, 15 Nov 2025 14:58:30 +0200 Subject: [PATCH] bap: don't configure endpoints of all codecs at once When device is connected we currently try create all streams for all endpoints. If there are multiple (= vendor codecs), this likely causes creating multiple streams for same location, which is not allowed. Change it to create streams only for the first endpoint, for each direction. Sound server can later request switching to another endpoint if necessary. --- profiles/audio/bap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index ec3502b06..b07d65e68 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1922,7 +1922,10 @@ static bool pac_select(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac, bt_bap_select(data->bap, lpac, rpac, 0, &select->remaining, select_cb, ep); - return true; + /* For initial configuration consider only one endpoint (for each + * direction). + */ + return select->reconfigure; } static int bap_select_all(struct bap_data *data, bool reconfigure, -- 2.47.3