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 (3): shared/bap: Add API to convert BASE into bt_bap_base queue shared/bap: Add API to convert parsed BASE into pac data bap: Do PA Sync for each BAP Broadcast source discovered profiles/audio/bap.c | 324 ++++++++++------------------ src/shared/bap.c | 502 +++++++++++++++++++++++++++++++++++++++---- src/shared/bap.h | 34 ++- 3 files changed, 602 insertions(+), 258 deletions(-) -- 2.40.1