1# Copyright (c) 2022 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4mainmenu "Bluetooth: Broadcast Audio Sink"
5
6config SCAN_OFFLOAD
7	bool "Whether to wait for a Broadcast Assistant"
8	default y
9	# enable PAST support if we can
10	select BT_PER_ADV_SYNC_TRANSFER_RECEIVER if !BT_CTLR || BT_CTLR_SYNC_TRANSFER_RECEIVER_SUPPORT
11	help
12	  If set to true, the sample will start advertising connectable for
13	  Broadcast Assistants.
14
15config SCAN_SELF
16	bool "Whether to scan for Broadcast Sources without Broadcast Assistant"
17	default y
18	help
19	  If set to true, the sample will start scanning for Broadcast Sources
20	  without waiting for a Broadcast Assistant to connect.
21
22config SCAN_DELAY
23	int "Delay before starting scan (in seconds)"
24	range 0 255
25	default 10
26	depends on SCAN_SELF
27	help
28	  Time to advertise connectable for a Broadcast Assistant to connect
29	  before starting scanning for Broadcast Sources.
30
31config TARGET_BROADCAST_NAME
32	string "Target Broadcast Device Name"
33	default ""
34	help
35	  Name of target broadcast device. If not empty string, sink device
36	  will only listen to the specified broadcast source. Not case sensitive.
37
38config MAX_CODEC_FRAMES_PER_SDU
39	int "The maximum number of codec frame per SDU supported"
40	default 1
41	range 1 255
42	help
43	  Maximum number of codec frames per SDU supported by this device. Increasing this value
44	  allows support for a greater variaty of broadcasts, but also increases memory usage.
45
46config ENABLE_LC3
47	bool "Enable the LC3 codec"
48	# By default let's enable it in the platforms we know are capable of supporting it
49	default y
50	depends on CPU_HAS_FPU && \
51		(ARCH_POSIX || SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF5340_CPUAPP)
52	select LIBLC3
53	select FPU
54
55config USE_USB_AUDIO_OUTPUT
56	bool "Use USB Audio as output"
57	depends on ENABLE_LC3
58	select USB_DEVICE_STACK
59	select USB_DEVICE_AUDIO
60	select RING_BUFFER
61	help
62	  Enables USB audio as output as a USB peripheral. This does not support providing USB
63	  audio to e.g. speakers that are also USB peripherals, but can be connected to e.g. a
64	  phone or PC as a USB-in device (such as a USB microphone).
65	  USB audio only supports a single audio channel.
66
67config USE_SPECIFIC_BROADCAST_CHANNEL
68	bool "Use specific Broadcast Channel Audio Location"
69	default y
70	depends on USE_USB_AUDIO_OUTPUT
71	help
72	  Enables the use of a specific Channel Audio Location (see config TARGET_BROADCAST_CHANNEL).
73
74config TARGET_BROADCAST_CHANNEL
75	int "Broadcast Channel Audio Location to sync to"
76	range 0 3
77	default 1
78	depends on USE_SPECIFIC_BROADCAST_CHANNEL
79	help
80	  Channel Audio Location to sync to. These corresponds to the bt_audio_location,
81	  supporting mono, left and right channels
82
83source "Kconfig.zephyr"
84