Commit | Line | Data |
---|---|---|
ec8f24b7 | 1 | # SPDX-License-Identifier: GPL-2.0-only |
1da177e4 LT |
2 | # ALSA soundcard-configuration |
3 | config SND_TIMER | |
4 | tristate | |
1da177e4 LT |
5 | |
6 | config SND_PCM | |
7 | tristate | |
90bbaf66 | 8 | select SND_TIMER if SND_PCM_TIMER |
1da177e4 | 9 | |
838d1631 RK |
10 | config SND_PCM_ELD |
11 | bool | |
12 | ||
9203dd01 RK |
13 | config SND_PCM_IEC958 |
14 | bool | |
15 | ||
b7ae6f31 | 16 | config SND_DMAENGINE_PCM |
903eb318 | 17 | tristate |
b7ae6f31 | 18 | |
1da177e4 LT |
19 | config SND_HWDEP |
20 | tristate | |
1da177e4 | 21 | |
111b0cdb TI |
22 | config SND_SEQ_DEVICE |
23 | tristate | |
24 | ||
1da177e4 LT |
25 | config SND_RAWMIDI |
26 | tristate | |
111b0cdb | 27 | select SND_SEQ_DEVICE if SND_SEQUENCER != n |
1da177e4 | 28 | |
e3a8a5b7 TI |
29 | config SND_UMP |
30 | tristate | |
31 | select SND_RAWMIDI | |
32 | ||
0b5288f5 TI |
33 | config SND_UMP_LEGACY_RAWMIDI |
34 | bool "Legacy raw MIDI support for UMP streams" | |
35 | depends on SND_UMP | |
36 | help | |
37 | This option enables the legacy raw MIDI support for UMP streams. | |
38 | When this option is set, an additional rawmidi device for the | |
39 | legacy MIDI 1.0 byte streams is created for each UMP Endpoint. | |
40 | The device contains 16 substreams corresponding to UMP groups. | |
41 | ||
3e39acf5 IO |
42 | config SND_CORE_TEST |
43 | tristate "Sound core KUnit test" | |
44 | depends on KUNIT | |
6da404e7 | 45 | select SND_PCM |
3e39acf5 IO |
46 | default KUNIT_ALL_TESTS |
47 | help | |
48 | This options enables the sound core functions KUnit test. | |
49 | ||
50 | KUnit tests run during boot and output the results to the debug | |
51 | log in TAP format (https://testanything.org/). Only useful for | |
52 | kernel devs running KUnit test harness and are not for inclusion | |
53 | into a production build. | |
54 | ||
55 | For more information on KUnit and unit tests in general, refer | |
56 | to the KUnit documentation in Documentation/dev-tools/kunit/. | |
57 | ||
58 | ||
5c845beb TI |
59 | config SND_COMPRESS_OFFLOAD |
60 | tristate | |
61 | ||
0d94e41a MB |
62 | config SND_JACK |
63 | bool | |
64 | ||
fe0d128c TI |
65 | # enable input device support in jack layer |
66 | config SND_JACK_INPUT_DEV | |
67 | bool | |
68 | depends on SND_JACK | |
69 | default y if INPUT=y || INPUT=SND | |
70 | ||
1da177e4 | 71 | config SND_OSSEMUL |
eb3b705a | 72 | bool "Enable OSS Emulation" |
d886e87c | 73 | select SOUND_OSS_CORE |
eb3b705a TI |
74 | help |
75 | This option enables the build of OSS emulation layer. | |
1da177e4 LT |
76 | |
77 | config SND_MIXER_OSS | |
78 | tristate "OSS Mixer API" | |
eb3b705a | 79 | depends on SND_OSSEMUL |
1da177e4 LT |
80 | help |
81 | To enable OSS mixer API emulation (/dev/mixer*), say Y here | |
5fb94e9c | 82 | and read <file:Documentation/sound/designs/oss-emulation.rst>. |
1da177e4 LT |
83 | |
84 | Many programs still use the OSS API, so say Y. | |
85 | ||
86 | To compile this driver as a module, choose M here: the module | |
87 | will be called snd-mixer-oss. | |
88 | ||
89 | config SND_PCM_OSS | |
90 | tristate "OSS PCM (digital audio) API" | |
eb3b705a | 91 | depends on SND_OSSEMUL |
1da177e4 LT |
92 | select SND_PCM |
93 | help | |
94 | To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y | |
5fb94e9c | 95 | here and read <file:Documentation/sound/designs/oss-emulation.rst>. |
1da177e4 LT |
96 | |
97 | Many programs still use the OSS API, so say Y. | |
98 | ||
99 | To compile this driver as a module, choose M here: the module | |
100 | will be called snd-pcm-oss. | |
101 | ||
21a3479a JK |
102 | config SND_PCM_OSS_PLUGINS |
103 | bool "OSS PCM (digital audio) API - Include plugin system" | |
104 | depends on SND_PCM_OSS | |
82e8d723 | 105 | default y |
21a3479a | 106 | help |
82e8d723 KK |
107 | If you disable this option, the ALSA's OSS PCM API will not |
108 | support conversion of channels, formats and rates. It will | |
109 | behave like most of new OSS/Free drivers in 2.4/2.6 kernels. | |
21a3479a | 110 | |
90bbaf66 JY |
111 | config SND_PCM_TIMER |
112 | bool "PCM timer interface" if EXPERT | |
113 | default y | |
114 | help | |
ac1efcfb RD |
115 | If you disable this option, pcm timer will be unavailable, so |
116 | those stubs that use pcm timer (e.g. dmix, dsnoop & co) may work | |
a893b7fc | 117 | incorrectly. |
90bbaf66 | 118 | |
ac1efcfb | 119 | For some embedded devices, we may disable it to reduce memory |
90bbaf66 JY |
120 | footprint, about 20KB on x86_64 platform. |
121 | ||
bbaf5e97 TI |
122 | config SND_HRTIMER |
123 | tristate "HR-timer backend support" | |
124 | depends on HIGH_RES_TIMERS | |
125 | select SND_TIMER | |
126 | help | |
127 | Say Y here to enable HR-timer backend for ALSA timer. ALSA uses | |
128 | the hrtimer as a precise timing source. The ALSA sequencer code | |
129 | also can use this timing source. | |
130 | ||
131 | To compile this driver as a module, choose M here: the module | |
132 | will be called snd-hrtimer. | |
133 | ||
332682b1 | 134 | config SND_DYNAMIC_MINORS |
b10e5391 | 135 | bool "Dynamic device file minor numbers" |
332682b1 CL |
136 | help |
137 | If you say Y here, the minor numbers of ALSA device files in | |
138 | /dev/snd/ are allocated dynamically. This allows you to have | |
139 | more than 8 sound cards, but requires a dynamic device file | |
140 | system like udev. | |
141 | ||
142 | If you are unsure about this, say N here. | |
143 | ||
7bb2491b TI |
144 | config SND_MAX_CARDS |
145 | int "Max number of sound cards" | |
146 | range 4 256 | |
147 | default 32 | |
148 | depends on SND_DYNAMIC_MINORS | |
149 | help | |
150 | Specify the max number of sound cards that can be assigned | |
151 | on a single machine. | |
152 | ||
59d48582 TI |
153 | config SND_SUPPORT_OLD_API |
154 | bool "Support old ALSA API" | |
59d48582 TI |
155 | default y |
156 | help | |
157 | Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3 | |
158 | or older). | |
159 | ||
e0ecb05a | 160 | config SND_PROC_FS |
82e8d723 KK |
161 | bool "Sound Proc FS Support" if EXPERT |
162 | depends on PROC_FS | |
163 | default y | |
164 | help | |
165 | Say 'N' to disable Sound proc FS, which may reduce code size about | |
166 | 9KB on x86_64 platform. | |
167 | If unsure say Y. | |
e0ecb05a | 168 | |
21a3479a JK |
169 | config SND_VERBOSE_PROCFS |
170 | bool "Verbose procfs contents" | |
e0ecb05a | 171 | depends on SND_PROC_FS |
21a3479a JK |
172 | default y |
173 | help | |
174 | Say Y here to include code for verbose procfs contents (provides | |
82e8d723 KK |
175 | useful information to developers when a problem occurs). On the |
176 | other side, it makes the ALSA subsystem larger. | |
21a3479a | 177 | |
1da177e4 LT |
178 | config SND_VERBOSE_PRINTK |
179 | bool "Verbose printk" | |
1da177e4 LT |
180 | help |
181 | Say Y here to enable verbose log messages. These messages | |
182 | will help to identify source file and position containing | |
183 | printed messages. | |
184 | ||
185 | You don't need this unless you're debugging ALSA. | |
186 | ||
c27e1efb TI |
187 | config SND_CTL_FAST_LOOKUP |
188 | bool "Fast lookup of control elements" if EXPERT | |
189 | default y | |
190 | select XARRAY_MULTI | |
191 | help | |
192 | This option enables the faster lookup of control elements. | |
193 | It will consume more memory because of the additional Xarray. | |
194 | If you want to choose the memory footprint over the performance | |
195 | inevitably, turn this off. | |
196 | ||
1da177e4 LT |
197 | config SND_DEBUG |
198 | bool "Debug" | |
1da177e4 LT |
199 | help |
200 | Say Y here to enable ALSA debug code. | |
201 | ||
62cf872a TI |
202 | config SND_DEBUG_VERBOSE |
203 | bool "More verbose debug" | |
1da177e4 LT |
204 | depends on SND_DEBUG |
205 | help | |
62cf872a | 206 | Say Y here to enable extra-verbose debugging messages. |
82e8d723 | 207 | |
62cf872a TI |
208 | Let me repeat: it enables EXTRA-VERBOSE DEBUGGING messages. |
209 | So, say Y only if you are ready to be annoyed. | |
61fb63c0 JK |
210 | |
211 | config SND_PCM_XRUN_DEBUG | |
212 | bool "Enable PCM ring buffer overrun/underrun debugging" | |
213 | default n | |
b7d90a35 | 214 | depends on SND_DEBUG && SND_VERBOSE_PROCFS |
61fb63c0 JK |
215 | help |
216 | Say Y to enable the PCM ring buffer overrun/underrun debugging. | |
217 | It is usually not required, but if you have trouble with | |
218 | sound clicking when system is loaded, it may help to determine | |
219 | the process or driver which causes the scheduling gaps. | |
e922b002 | 220 | |
f5e829f9 TI |
221 | config SND_CTL_INPUT_VALIDATION |
222 | bool "Validate input data to control API" | |
223 | help | |
224 | Say Y to enable the additional validation for the input data to | |
225 | each control element, including the value range checks. | |
226 | An error is returned from ALSA core for invalid inputs without | |
227 | passing to the driver. This is a kind of hardening for drivers | |
228 | that have no proper error checks, at the cost of a slight | |
229 | performance overhead. | |
230 | ||
1b7ec514 TI |
231 | config SND_CTL_DEBUG |
232 | bool "Enable debugging feature for control API" | |
fbd3eb7f TI |
233 | depends on SND_DEBUG |
234 | help | |
1b7ec514 TI |
235 | Say Y to enable the debugging feature for ALSA control API. |
236 | It performs the additional sanity-checks for each control element | |
237 | read access, such as whether the values returned from the driver | |
238 | are in the proper ranges or the check of the invalid access at | |
239 | out-of-array areas. The error is printed when the driver gives | |
240 | such unexpected values. | |
241 | When you develop a driver that deals with control elements, it's | |
242 | strongly recommended to try this one once and verify whether you see | |
243 | any relevant errors or not. | |
fbd3eb7f | 244 | |
2d670ea2 HW |
245 | config SND_JACK_INJECTION_DEBUG |
246 | bool "Sound jack injection interface via debugfs" | |
247 | depends on SND_JACK && SND_DEBUG && DEBUG_FS | |
248 | help | |
249 | This option can be used to enable or disable sound jack | |
250 | software injection. | |
251 | Say Y if you are debugging via jack injection interface. | |
252 | If unsure select "N". | |
253 | ||
e922b002 TI |
254 | config SND_VMASTER |
255 | bool | |
0528c749 | 256 | |
cc6a8acd TI |
257 | config SND_DMA_SGBUF |
258 | def_bool y | |
259 | depends on X86 | |
260 | ||
22d8de62 JK |
261 | config SND_CTL_LED |
262 | tristate | |
263 | select NEW_LEDS if SND_CTL_LED | |
264 | select LEDS_TRIGGERS if SND_CTL_LED | |
22d8de62 | 265 | |
0528c749 | 266 | source "sound/core/seq/Kconfig" |