sample: Bluetooth: Fix broadcast audio source sink conf file

Fix broadcast audio source and sink samples' conf file to
use Broadcast ISO feature in Zephyr Bluetooth Controller.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2023-04-08 10:32:37 +05:30 committed by Carles Cufí
commit 5648d02b29
11 changed files with 72 additions and 31 deletions

View file

@ -20,5 +20,7 @@ Building and Running
********************
This sample can be found under
:zephyr_file:`samples/bluetooth/broadcast_audio_sink` in the Zephyr tree.
Use `-DOVERLAY_CONFIG=overlay-bt_ll_sw_split.conf` to enable required ISO
feature support in Zephyr Bluetooth Controller on supported boards.
See :ref:`bluetooth samples section <bluetooth-samples>` for details.

View file

@ -1,6 +0,0 @@
CONFIG_BT_CTLR_SYNC_ISO=y
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_SYNC_ISO_PDU_LEN_MAX=155
# Supports the highest advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=251

View file

@ -1,6 +0,0 @@
CONFIG_BT_CTLR_SYNC_ISO=y
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_SYNC_ISO_PDU_LEN_MAX=155
# Supports the highest advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=251

View file

@ -0,0 +1,12 @@
# Zephyr Bluetooth Controller
CONFIG_BT_LL_SW_SPLIT=y
# Enable support for Broadcast ISO Sync
CONFIG_BT_CTLR_SYNC_ISO=y
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_SYNC_ISO_PDU_LEN_MAX=155
# Supports the highest advertising data that is set in a single HCI command in
# Zephyr Bluetooth Controller
CONFIG_BT_CTLR_SCAN_DATA_LEN_MAX=191

View file

@ -4,7 +4,21 @@ sample:
tests:
sample.bluetooth.broadcast_audio_sink:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf52_bsim
tags: bluetooth
platform_allow: >
qemu_cortex_m3
qemu_x86
nrf5340dk_nrf5340_cpuapp
integration_platforms:
- qemu_cortex_m3
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
tags: bluetooth
sample.bluetooth.broadcast_audio_sink.bt_ll_sw_split:
harness: bluetooth
platform_allow: >
nrf52833dk_nrf52820
nrf52833dk_nrf52833
integration_platforms:
- nrf52_bsim
- nrf52833dk_nrf52833
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
tags: bluetooth

View file

@ -23,5 +23,7 @@ Building and Running
********************
This sample can be found under
:zephyr_file:`samples/bluetooth/broadcast_audio_source` in the Zephyr tree.
Use `-DOVERLAY_CONFIG=overlay-bt_ll_sw_split.conf` to enable required ISO
feature support in Zephyr Bluetooth Controller on supported boards.
See :ref:`bluetooth samples section <bluetooth-samples>` for details.

View file

@ -1,7 +0,0 @@
CONFIG_BT_CTLR_ADV_ISO=y
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=155
# Sufficient ISO PDU length for any BAP LC3 presets (155)
CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX=155
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191

View file

@ -1,7 +0,0 @@
CONFIG_BT_CTLR_ADV_ISO=y
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=155
# Sufficient ISO PDU length for any BAP LC3 presets (155)
CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX=155
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191

View file

@ -1 +0,0 @@
CONFIG_BT_CTLR_ADV_ISO=y

View file

@ -0,0 +1,24 @@
# Zephyr Bluetooth Controller
CONFIG_BT_LL_SW_SPLIT=y
# Zephyr Controller tested maximum advertising data that can be set in a single HCI command
CONFIG_BT_CTLR_ADV_DATA_LEN_MAX=191
# Enable support for Broadcast ISO in Zephyr Bluetooth Controller
CONFIG_BT_CTLR_ADV_ISO=y
# Sufficient ISO PDU length for any BAP LC3 presets (155)
CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX=155
# Number of supported streams
CONFIG_BT_CTLR_ADV_ISO_STREAM_MAX=2
CONFIG_BT_CTLR_ISOAL_SOURCES=2
# FIXME: Host needs CONFIG_BT_ISO_TX_MTU + 4 bytes for sequence number, and optionally
# additional + 4 bytes for timestamp when not using BT_ISO_TIMESTAMP_NONE in bt_iso_chan_send(),
# otherwise Host tries to fragment ISO data.
# When Host is fixed, CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE can inherit the
# CONFIG_BT_ISO_TX_MTU value.
#
# Supports the highest SDU size required by any BAP LC3 presets (155)
CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=163

View file

@ -4,7 +4,21 @@ sample:
tests:
sample.bluetooth.broadcast_audio_source:
harness: bluetooth
platform_allow: qemu_cortex_m3 qemu_x86 nrf52_bsim
platform_allow: >
qemu_cortex_m3
qemu_x86
nrf5340dk_nrf5340_cpuapp
integration_platforms:
- qemu_x86
- nrf5340dk_nrf5340_cpuapp
tags: bluetooth
sample.bluetooth.broadcast_audio_sink.bt_ll_sw_split:
harness: bluetooth
platform_allow: >
nrf52833dk_nrf52820
nrf52833dk_nrf52833
integration_platforms:
- nrf52_bsim
- nrf52833dk_nrf52833
extra_args: OVERLAY_CONFIG=overlay-bt_ll_sw_split.conf
tags: bluetooth