1# Copyright (c) 2023 Demant A/S
2# Copyright (c) 2023 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4
5mainmenu "Bluetooth: Broadcast Audio Source"
6
7choice BAP_LC3_PRESET
8	prompt "The BAP LC3 Preset to be used"
9	default BAP_BROADCAST_16_2_1
10
11config BAP_BROADCAST_16_2_1
12	bool "BAP_LC3_BROADCAST_PRESET_16_2_1 preset"
13	help
14	  Using the BAP_LC3_BROADCAST_PRESET_16_2_1 preset.
15
16config BAP_BROADCAST_24_2_1
17	bool "BAP_LC3_BROADCAST_PRESET_24_2_1 preset"
18	help
19	  Using the BAP_LC3_BROADCAST_PRESET_24_2_1 preset.
20
21endchoice
22
23config ENABLE_LC3
24	bool "Enable the LC3 codec"
25	# By default let's enable it in the platforms we know are capable of supporting it
26	default y
27	depends on CPU_HAS_FPU && \
28		(ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP)
29	select LIBLC3
30	select FPU
31
32config USE_USB_AUDIO_INPUT
33	bool "Use USB Audio as input"
34	# By default, use the USB Audio path is disabled.
35	default n
36	depends on ENABLE_LC3
37	select USB_DEVICE_STACK
38	select USB_DEVICE_AUDIO
39	select RING_BUFFER
40
41config BROADCAST_CODE
42	string "The broadcast code (if any) to use for encrypted broadcast"
43	default ""
44	help
45	   Setting a non-empty string for this option will encrypt the broadcast using this
46	   string as the broadcast code. The length of the string shall be between 1 and 16 octets.
47
48source "Kconfig.zephyr"
49