Add support to create stream for bcast source --- src/shared/bap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/shared/bap.c b/src/shared/bap.c index 49d9838fb..97bf65c24 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -5038,6 +5038,10 @@ static bool find_ep_pacs(const void *data, const void *user_data) case BT_BAP_STREAM_STATE_CONFIG: case BT_BAP_STREAM_STATE_QOS: return true; + default: + if (ep->stream->lpac->type == + BT_BAP_BCAST_SOURCE) + return true; } return false; @@ -5159,7 +5163,7 @@ struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap, struct bt_bap_qos *pqos, struct iovec *data) { - struct bt_bap_stream *stream; + struct bt_bap_stream *stream = NULL; struct bt_bap_endpoint *ep; struct match_pac match; @@ -5227,7 +5231,8 @@ struct bt_bap_stream *bt_bap_stream_new(struct bt_bap *bap, } } - stream = ep->stream; + if (lpac->type != BT_BAP_BCAST_SOURCE) + stream = ep->stream; if (!stream) stream = bap_stream_new(bap, ep, lpac, rpac, data, true); -- 2.39.2