Bluetooth samples: broadcast audio: Add more test Kconfig options
Instead of handling some of the configuation thru board overlays let's handle it thru the sample Kconfig file, which reduces the amount of duplicate lines. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
631a6a765a
commit
c9f09b1d66
6 changed files with 22 additions and 9 deletions
|
@ -35,4 +35,12 @@ config TARGET_BROADCAST_NAME
|
||||||
Name of target broadcast device. If not empty string, sink device
|
Name of target broadcast device. If not empty string, sink device
|
||||||
will only listen to the specified broadcast source. Not case sensitive.
|
will only listen to the specified broadcast source. Not case sensitive.
|
||||||
|
|
||||||
|
config ENABLE_LC3
|
||||||
|
bool "Enable the LC3 codec"
|
||||||
|
# By default let's enable it in the platforms we know are capable of supporting it
|
||||||
|
default y
|
||||||
|
depends on (ARCH_POSIX || SOC_NRF5340_CPUAPP)
|
||||||
|
select LIBLC3
|
||||||
|
select FPU
|
||||||
|
|
||||||
source "Kconfig.zephyr"
|
source "Kconfig.zephyr"
|
||||||
|
|
|
@ -1,8 +1,3 @@
|
||||||
# For LC3 the following configs are needed
|
|
||||||
CONFIG_FPU=y
|
|
||||||
CONFIG_LIBLC3=y
|
|
||||||
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
|
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
|
||||||
# inctease stack size for that thread.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
# Enable encryption.
|
|
||||||
CONFIG_BT_TINYCRYPT_ECC=y
|
|
||||||
|
|
|
@ -14,3 +14,6 @@ CONFIG_BT_BUF_ACL_RX_SIZE=255
|
||||||
CONFIG_BT_BUF_ACL_TX_SIZE=251
|
CONFIG_BT_BUF_ACL_TX_SIZE=251
|
||||||
|
|
||||||
CONFIG_BT_DEVICE_NAME="Broadcast Audio Sink"
|
CONFIG_BT_DEVICE_NAME="Broadcast Audio Sink"
|
||||||
|
|
||||||
|
# Enable encryption.
|
||||||
|
CONFIG_BT_TINYCRYPT_ECC=y
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Copyright (c) 2023 Demant A/S
|
# Copyright (c) 2023 Demant A/S
|
||||||
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
mainmenu "Bluetooth: Broadcast Audio Source"
|
mainmenu "Bluetooth: Broadcast Audio Source"
|
||||||
|
@ -19,4 +20,12 @@ config BAP_BROADCAST_24_2_1
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config ENABLE_LC3
|
||||||
|
bool "Enable the LC3 codec"
|
||||||
|
# By default let's enable it in the platforms we know are capable of supporting it
|
||||||
|
default y
|
||||||
|
depends on (ARCH_POSIX || SOC_NRF5340_CPUAPP)
|
||||||
|
select LIBLC3
|
||||||
|
select FPU
|
||||||
|
|
||||||
source "Kconfig.zephyr"
|
source "Kconfig.zephyr"
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
# For LC3 the following configs are needed
|
|
||||||
CONFIG_FPU=y
|
|
||||||
CONFIG_LIBLC3=y
|
|
||||||
# When Host is fixed, CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE can inherit the CONFIG_BT_ISO_TX_MTU value.
|
# When Host is fixed, CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE can inherit the CONFIG_BT_ISO_TX_MTU value.
|
||||||
CONFIG_BT_ISO_TX_MTU=40
|
CONFIG_BT_ISO_TX_MTU=40
|
||||||
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
|
# The LC3 codec uses a large amount of stack. This app runs the codec in the work-queue, hence
|
||||||
# inctease stack size for that thread.
|
# inctease stack size for that thread.
|
||||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
|
||||||
CONFIG_MAIN_STACK_SIZE=4096
|
CONFIG_MAIN_STACK_SIZE=4096
|
||||||
CONFIG_BT_TINYCRYPT_ECC=y
|
|
||||||
|
|
|
@ -11,3 +11,5 @@ CONFIG_BT_BAP_BROADCAST_SRC_SUBGROUP_COUNT=2
|
||||||
CONFIG_BT_ISO_TX_BUF_COUNT=4
|
CONFIG_BT_ISO_TX_BUF_COUNT=4
|
||||||
|
|
||||||
CONFIG_BT_DEVICE_NAME="Broadcast Audio Source"
|
CONFIG_BT_DEVICE_NAME="Broadcast Audio Source"
|
||||||
|
|
||||||
|
CONFIG_BT_TINYCRYPT_ECC=y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue