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 ISO_PACKING_INTERLEAVED
33	bool "Use interleaved packing"
34	help
35	  Use interleaved packing between BIS ISO stream subevents.
36
37config USE_USB_AUDIO_INPUT
38	bool "Use USB Audio as input"
39	# By default, use the USB Audio path is disabled.
40	default n
41	depends on ENABLE_LC3
42	select USB_DEVICE_STACK_NEXT
43	select USBD_AUDIO2_CLASS
44	select RING_BUFFER
45
46config BROADCAST_CODE
47	string "The broadcast code (if any) to use for encrypted broadcast"
48	default ""
49	help
50	   Setting a non-empty string for this option will encrypt the broadcast using this
51	   string as the broadcast code. The length of the string shall be between 1 and 16 octets.
52
53config STATIC_BROADCAST_ID
54	bool "Use static broadcast ID"
55	default y
56	help
57	   Enabling this option will make the application use static broadcast ID, as opposed to a
58	   randomly generated one.
59
60config BROADCAST_ID
61	hex "The static broadcast ID to use"
62	range 0x000000 0xFFFFFF
63	depends on STATIC_BROADCAST_ID
64	help
65	   This is the 3-octet broadcast ID advertised if static broadcast IDs are enabled.
66
67# Source common USB sample options used to initialize new experimental USB device stack.
68# The scope of these options is limited to USB samples in project tree,
69# you cannot use them in your own application.
70source "samples/subsys/usb/common/Kconfig.sample_usbd"
71
72source "Kconfig.zephyr"
73