Bluetooth: Audio: Add PACS for broadcast sink

Add support for using PACS and/or capabilities for
the broadcast sink role. PACS and capabilities were
originally only supported for the unicast server
role, so the PACS callbacks were moved their own
struct, as if a device supports both the unicast
server role and the broadcast sink role, it will
only have a single PACS instance.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-04-12 16:11:18 +02:00 committed by Carles Cufí
commit bb6c0866d8
11 changed files with 167 additions and 82 deletions

View file

@ -153,6 +153,8 @@ config BT_AUDIO_BROADCAST_SINK
bool "Bluetooth Broadcast Sink Audio Support [EXPERIMENTAL]"
select EXPERIMENTAL
select BT_ISO_SYNC_RECEIVER
depends on BT_PERIPHERAL
depends on BT_PAC_SNK
help
This option enables support for Bluetooth Broadcast Sink Audio using
Isochronous channels.
@ -243,7 +245,7 @@ config BT_AUDIO_STREAM
config BT_AUDIO_CAPABILITY
# Virtual/hidden option
bool
default y if BT_ASCS || BT_AUDIO_BROADCAST_SINK
default y if BT_PACS
rsource "Kconfig.pacs"
rsource "Kconfig.ascs"