This patch refactors the flow for the BAP Broadcast Sink. After discovering a new Broadcast Source a short PA Sync will be tried. Depending on the BASE information present in the PA and the local PACS capabilities of the Sink, one remote media endpoint will be created for each compatible BIS. Configuring one of these endpoints results in creating a stream and a media transport for the corresponding BIS. Andrei Istodorescu (6): shared/bap: Add API to convert BASE into bt_bap_base queue shared/bap: Add API to convert parsed BASE into pac data btio: Check for non-zero qos before setting it shared/bap: Add Broadcast QOS copy functions bap: Do PA Sync for each BAP Broadcast source discovered shared/bap: Remove stream double configuration btio/btio.c | 12 +- profiles/audio/bap.c | 308 ++++++++---------------- src/shared/bap.c | 547 +++++++++++++++++++++++++++++++++++++++---- src/shared/bap.h | 38 ++- 4 files changed, 643 insertions(+), 262 deletions(-) base-commit: c1851987ca2c6e41d1e0e166e959b754e369c254 -- 2.40.1