From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> bap_create_io already handle streams of differents types. --- profiles/audio/bap.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c index dfc71edf66e0..911cdd0a45be 100644 --- a/profiles/audio/bap.c +++ b/profiles/audio/bap.c @@ -1714,11 +1714,6 @@ static void bap_state(struct bt_bap_stream *stream, uint8_t old_state, break; case BT_BAP_STREAM_STATE_CONFIG: if (ep && !ep->id) { - if - (bt_bap_pac_get_type(ep->lpac) == BT_BAP_BCAST_SINK) { - bap_create_bcast_io(data, ep, stream, true); - return; - } bap_create_io(data, ep, stream, true); if (!ep->io) { error("Unable to create io"); -- 2.41.0