diff --git a/samples/bluetooth/bap_broadcast_sink/Kconfig b/samples/bluetooth/bap_broadcast_sink/Kconfig index 2d483082fd47..7b6c225289ba 100644 --- a/samples/bluetooth/bap_broadcast_sink/Kconfig +++ b/samples/bluetooth/bap_broadcast_sink/Kconfig @@ -48,7 +48,7 @@ config ENABLE_LC3 # By default let's enable it in the platforms we know are capable of supporting it default y depends on CPU_HAS_FPU && \ - (ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP) + (ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP || SOC_MIMXRT1062) select LIBLC3 select FPU diff --git a/samples/bluetooth/bap_broadcast_source/Kconfig b/samples/bluetooth/bap_broadcast_source/Kconfig index 27e0fcf384c8..8f368344afab 100644 --- a/samples/bluetooth/bap_broadcast_source/Kconfig +++ b/samples/bluetooth/bap_broadcast_source/Kconfig @@ -25,7 +25,7 @@ config ENABLE_LC3 # By default let's enable it in the platforms we know are capable of supporting it default y depends on CPU_HAS_FPU && \ - (ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP) + (ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP || SOC_MIMXRT1062) select LIBLC3 select FPU diff --git a/subsys/bluetooth/common/Kconfig b/subsys/bluetooth/common/Kconfig index 2b7b698d8f8e..70ea204dbc26 100644 --- a/subsys/bluetooth/common/Kconfig +++ b/subsys/bluetooth/common/Kconfig @@ -172,6 +172,19 @@ config BT_BUF_EVT_DISCARDABLE_COUNT it will not cause the allocation for other critical events to block and may even eliminate deadlocks in some cases. +config BT_BUF_EVT_SYNCHRONOUS_COUNT + int "Number of synchronous HCI Event buffers" + range 1 $(UINT8_MAX) + # number of buffer require for bap-broadcast BIS counts + default BT_BAP_BROADCAST_SRC_STREAM_COUNT if BT_BAP_BROADCAST_SOURCE + default 1 + help + Number of buffers in a separate pool for events which the HCI + stack depedent to manage it's command buffer queue, host to + controller buffer credits etc. The events command_complete, + number of command processed(nocp) etc considered under this + event pool and processed on priority. + config BT_BUF_CMD_TX_SIZE int "Maximum support HCI Command buffer length" default $(UINT8_MAX) if (BT_EXT_ADV || BT_CLASSIC || BT_ISO_CENTRAL || BT_CHANNEL_SOUNDING) diff --git a/subsys/bluetooth/host/buf.c b/subsys/bluetooth/host/buf.c index 6e05b3efd513..13a94728ee62 100644 --- a/subsys/bluetooth/host/buf.c +++ b/subsys/bluetooth/host/buf.c @@ -64,7 +64,8 @@ static void iso_rx_freed_cb(void) * the HCI transport to fill buffers in parallel with `bt_recv` * consuming them. */ -NET_BUF_POOL_FIXED_DEFINE(sync_evt_pool, 1, SYNC_EVT_SIZE, 0, NULL); +NET_BUF_POOL_FIXED_DEFINE(sync_evt_pool, CONFIG_BT_BUF_EVT_SYNCHRONOUS_COUNT, SYNC_EVT_SIZE, 0, + NULL); NET_BUF_POOL_FIXED_DEFINE(discardable_pool, CONFIG_BT_BUF_EVT_DISCARDABLE_COUNT, BT_BUF_EVT_SIZE(CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE),