Removed the generation of broadcast id inside the stack. It is now up to the application to generate this by itself. The CAP sample has been modified to allow either a static broadcast, or a random one. All of this is handled in the application. Signed-off-by: Fredrik Danebjer <frdn@demant.com>
62 lines
1.7 KiB
Text
62 lines
1.7 KiB
Text
# Copyright (c) 2023 Demant A/S
|
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
mainmenu "Bluetooth: Broadcast Audio Source"
|
|
|
|
choice BAP_LC3_PRESET
|
|
prompt "The BAP LC3 Preset to be used"
|
|
default BAP_BROADCAST_16_2_1
|
|
|
|
config BAP_BROADCAST_16_2_1
|
|
bool "BAP_LC3_BROADCAST_PRESET_16_2_1 preset"
|
|
help
|
|
Using the BAP_LC3_BROADCAST_PRESET_16_2_1 preset.
|
|
|
|
config BAP_BROADCAST_24_2_1
|
|
bool "BAP_LC3_BROADCAST_PRESET_24_2_1 preset"
|
|
help
|
|
Using the BAP_LC3_BROADCAST_PRESET_24_2_1 preset.
|
|
|
|
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 CPU_HAS_FPU && \
|
|
(ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP)
|
|
select LIBLC3
|
|
select FPU
|
|
|
|
config USE_USB_AUDIO_INPUT
|
|
bool "Use USB Audio as input"
|
|
# By default, use the USB Audio path is disabled.
|
|
default n
|
|
depends on ENABLE_LC3
|
|
select USB_DEVICE_STACK
|
|
select USB_DEVICE_AUDIO
|
|
select RING_BUFFER
|
|
|
|
config BROADCAST_CODE
|
|
string "The broadcast code (if any) to use for encrypted broadcast"
|
|
default ""
|
|
help
|
|
Setting a non-empty string for this option will encrypt the broadcast using this
|
|
string as the broadcast code. The length of the string shall be between 1 and 16 octets.
|
|
|
|
config STATIC_BROADCAST_ID
|
|
bool "Use static broadcast ID"
|
|
default y
|
|
help
|
|
Enabling this option will make the application use static broadcast ID, as opposed to a
|
|
randomly generated one.
|
|
|
|
config BROADCAST_ID
|
|
hex "The static broadcast ID to use"
|
|
range 0x000000 0xFFFFFF
|
|
depends on STATIC_BROADCAST_ID
|
|
help
|
|
This is the 3-octet broadcast ID advertised if static broadcast IDs are enabled.
|
|
|
|
source "Kconfig.zephyr"
|