From a263308cf293d235f86bafb0b714fbe7624f145e Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Thu, 21 Apr 2022 11:30:35 +0200 Subject: [PATCH] samples: Bluetooth: Audio sample board files cleanup Clean up some of the board specific configuration files. Removed all CONFIG_BT_CTLR* configs from the nRF5340 appcore conf files as that does not compile the controller. Ensured that the ISO buffer in the controller for nRF52840 can contain SDUs from all BAP LC3 minimum requirements, as the controller does not yet support segmentation of SDUs. Also fixed a few bad configurations (broadcast sink not enabling the sync support etc.). Signed-off-by: Emil Gydesen --- .../broadcast_audio_sink/boards/nrf52840dk_nrf52840.conf | 4 ++++ .../broadcast_audio_source/boards/nrf52840dk_nrf52840.conf | 2 ++ .../unicast_audio_client/boards/nrf52840dk_nrf52840.conf | 4 ++++ .../unicast_audio_server/boards/nrf52840dk_nrf52840.conf | 4 ++++ 4 files changed, 14 insertions(+) create mode 100644 samples/bluetooth/broadcast_audio_sink/boards/nrf52840dk_nrf52840.conf create mode 100644 samples/bluetooth/unicast_audio_client/boards/nrf52840dk_nrf52840.conf create mode 100644 samples/bluetooth/unicast_audio_server/boards/nrf52840dk_nrf52840.conf diff --git a/samples/bluetooth/broadcast_audio_sink/boards/nrf52840dk_nrf52840.conf b/samples/bluetooth/broadcast_audio_sink/boards/nrf52840dk_nrf52840.conf new file mode 100644 index 00000000000..36b466a0871 --- /dev/null +++ b/samples/bluetooth/broadcast_audio_sink/boards/nrf52840dk_nrf52840.conf @@ -0,0 +1,4 @@ +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 diff --git a/samples/bluetooth/broadcast_audio_source/boards/nrf52840dk_nrf52840.conf b/samples/bluetooth/broadcast_audio_source/boards/nrf52840dk_nrf52840.conf index fbf93ce3ea9..173f438edf9 100644 --- a/samples/bluetooth/broadcast_audio_source/boards/nrf52840dk_nrf52840.conf +++ b/samples/bluetooth/broadcast_audio_source/boards/nrf52840dk_nrf52840.conf @@ -1 +1,3 @@ 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 diff --git a/samples/bluetooth/unicast_audio_client/boards/nrf52840dk_nrf52840.conf b/samples/bluetooth/unicast_audio_client/boards/nrf52840dk_nrf52840.conf new file mode 100644 index 00000000000..57d674179ff --- /dev/null +++ b/samples/bluetooth/unicast_audio_client/boards/nrf52840dk_nrf52840.conf @@ -0,0 +1,4 @@ +CONFIG_BT_CTLR_CENTRAL_ISO=y + +# Supports the highest SDU size required by any BAP LC3 presets (155) +CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=155 diff --git a/samples/bluetooth/unicast_audio_server/boards/nrf52840dk_nrf52840.conf b/samples/bluetooth/unicast_audio_server/boards/nrf52840dk_nrf52840.conf new file mode 100644 index 00000000000..3c7c698c48b --- /dev/null +++ b/samples/bluetooth/unicast_audio_server/boards/nrf52840dk_nrf52840.conf @@ -0,0 +1,4 @@ +CONFIG_BT_CTLR_PERIPHERAL_ISO=y + +# Supports the highest SDU size required by any BAP LC3 presets (155) +CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE=155