Bluetooth: Audio: Add BAP broadcast source support

Add the BAP broadcast source implementation. This role
allows a device to broadcast ISO data.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-01-10 15:06:08 +01:00 committed by Johan Hedberg
commit ab87e0a2ba
7 changed files with 783 additions and 8 deletions

View file

@ -120,13 +120,34 @@ config BT_AUDIO_UNICAST_CLIENT_ASE_SRC_COUNT
endif # BT_AUDIO_UNICAST_CLIENT
endif # BT_AUDIO_UNICAST
config BT_AUDIO_BROADCAST
bool "Bluetooth Broadcast Audio Support"
config BT_AUDIO_BROADCAST_SOURCE
bool "Bluetooth Broadcast Source Audio Support [EXPERIMENTAL]"
select EXPERIMENTAL
select BT_ISO_BROADCASTER
select BT_ISO_SYNC_RECEIVER
help
This option enables support for Bluetooth Broadcast Audio using
This option enables support for Bluetooth Broadcast Source Audio using
Isochronous channels.
if BT_AUDIO_BROADCAST_SOURCE
config BT_AUDIO_BROADCAST_SRC_COUNT
int "Basic Audio Broadcaster source count"
default 1
range 0 BT_ISO_MAX_BIG
help
This option sets the number of broadcast sources to support.
One broadcast source can send multiple streams
(up to BT_AUDIO_BROADCAST_SRC_STREAM_COUNT per broadcast source).
config BT_AUDIO_BROADCAST_SRC_STREAM_COUNT
int "Basic Audio Broadcast Source Stream count"
default 1
range 0 BT_ISO_MAX_CHAN
help
This option sets the maximum number of streams per broadcast source
to support.
endif # BT_AUDIO_BROADCAST_SOURCE
config BT_AUDIO_DEBUG
bool "Enable debug logs"
@ -179,12 +200,19 @@ config BT_AUDIO_DEBUG_UNICAST_CLIENT
Use this option to enable Basic Audio Profile debug logs for the
Bluetooth Audio functionality.
config BT_AUDIO_DEBUG_BROADCAST_SOURCE
bool "Bluetooth Audio Broadcast Source debug"
depends on BT_AUDIO_BROADCAST_SOURCE
help
Use this option to enable Bluetooth Audio Broadcast Source debug logs
for the Bluetooth Audio functionality.
endif # BT_AUDIO_DEBUG
config BT_AUDIO_STREAM
# Virtual/hidden option
bool
default y if BT_ASCS || BT_AUDIO_UNICAST_CLIENT
default y if BT_ASCS || BT_AUDIO_UNICAST_CLIENT || BT_AUDIO_BROADCAST_SOURCE
config BT_AUDIO_CAPABILITIES
# Virtual/hidden option