Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # ALSA soundcard-configuration |
| 3 | config SND_TIMER |
| 4 | tristate |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
| 6 | config SND_PCM |
| 7 | tristate |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 8 | select SND_TIMER if SND_PCM_TIMER |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Russell King | 838d163 | 2015-05-09 11:26:42 +0100 | [diff] [blame] | 10 | config SND_PCM_ELD |
| 11 | bool |
| 12 | |
Russell King | 9203dd0 | 2015-05-09 11:26:47 +0100 | [diff] [blame] | 13 | config SND_PCM_IEC958 |
| 14 | bool |
| 15 | |
Daniel Mack | b7ae6f3 | 2013-08-12 10:42:37 +0200 | [diff] [blame] | 16 | config SND_DMAENGINE_PCM |
Daniel Mack | 903eb31 | 2013-08-15 16:03:52 +0200 | [diff] [blame] | 17 | tristate |
Daniel Mack | b7ae6f3 | 2013-08-12 10:42:37 +0200 | [diff] [blame] | 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | config SND_HWDEP |
| 20 | tristate |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Takashi Iwai | 111b0cd | 2017-06-09 15:11:58 +0200 | [diff] [blame] | 22 | config SND_SEQ_DEVICE |
| 23 | tristate |
| 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | config SND_RAWMIDI |
| 26 | tristate |
Takashi Iwai | 111b0cd | 2017-06-09 15:11:58 +0200 | [diff] [blame] | 27 | select SND_SEQ_DEVICE if SND_SEQUENCER != n |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | |
Takashi Iwai | e3a8a5b | 2023-05-23 09:53:24 +0200 | [diff] [blame] | 29 | config SND_UMP |
| 30 | tristate |
| 31 | select SND_RAWMIDI |
| 32 | |
Takashi Iwai | 0b5288f | 2023-05-23 09:53:35 +0200 | [diff] [blame] | 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 | |
Takashi Iwai | 5c845be | 2012-01-13 09:53:53 +0100 | [diff] [blame] | 42 | config SND_COMPRESS_OFFLOAD |
| 43 | tristate |
| 44 | |
Mark Brown | 0d94e41 | 2008-07-28 19:05:36 +0100 | [diff] [blame] | 45 | config SND_JACK |
| 46 | bool |
| 47 | |
Takashi Iwai | fe0d128 | 2016-02-17 09:44:25 +0100 | [diff] [blame] | 48 | # enable input device support in jack layer |
| 49 | config SND_JACK_INPUT_DEV |
| 50 | bool |
| 51 | depends on SND_JACK |
| 52 | default y if INPUT=y || INPUT=SND |
| 53 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | config SND_OSSEMUL |
Takashi Iwai | eb3b705 | 2017-06-09 13:56:05 +0200 | [diff] [blame] | 55 | bool "Enable OSS Emulation" |
Tejun Heo | d886e87 | 2008-08-28 16:42:51 +0200 | [diff] [blame] | 56 | select SOUND_OSS_CORE |
Takashi Iwai | eb3b705 | 2017-06-09 13:56:05 +0200 | [diff] [blame] | 57 | help |
| 58 | This option enables the build of OSS emulation layer. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | |
| 60 | config SND_MIXER_OSS |
| 61 | tristate "OSS Mixer API" |
Takashi Iwai | eb3b705 | 2017-06-09 13:56:05 +0200 | [diff] [blame] | 62 | depends on SND_OSSEMUL |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 63 | help |
| 64 | To enable OSS mixer API emulation (/dev/mixer*), say Y here |
Mauro Carvalho Chehab | 5fb94e9 | 2018-05-08 15:14:57 -0300 | [diff] [blame] | 65 | and read <file:Documentation/sound/designs/oss-emulation.rst>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 66 | |
| 67 | Many programs still use the OSS API, so say Y. |
| 68 | |
| 69 | To compile this driver as a module, choose M here: the module |
| 70 | will be called snd-mixer-oss. |
| 71 | |
| 72 | config SND_PCM_OSS |
| 73 | tristate "OSS PCM (digital audio) API" |
Takashi Iwai | eb3b705 | 2017-06-09 13:56:05 +0200 | [diff] [blame] | 74 | depends on SND_OSSEMUL |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 75 | select SND_PCM |
| 76 | help |
| 77 | To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y |
Mauro Carvalho Chehab | 5fb94e9 | 2018-05-08 15:14:57 -0300 | [diff] [blame] | 78 | here and read <file:Documentation/sound/designs/oss-emulation.rst>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | |
| 80 | Many programs still use the OSS API, so say Y. |
| 81 | |
| 82 | To compile this driver as a module, choose M here: the module |
| 83 | will be called snd-pcm-oss. |
| 84 | |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 85 | config SND_PCM_OSS_PLUGINS |
| 86 | bool "OSS PCM (digital audio) API - Include plugin system" |
| 87 | depends on SND_PCM_OSS |
Krzysztof Kozlowski | 82e8d72 | 2019-10-04 16:49:31 +0200 | [diff] [blame] | 88 | default y |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 89 | help |
Krzysztof Kozlowski | 82e8d72 | 2019-10-04 16:49:31 +0200 | [diff] [blame] | 90 | If you disable this option, the ALSA's OSS PCM API will not |
| 91 | support conversion of channels, formats and rates. It will |
| 92 | behave like most of new OSS/Free drivers in 2.4/2.6 kernels. |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 93 | |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 94 | config SND_PCM_TIMER |
| 95 | bool "PCM timer interface" if EXPERT |
| 96 | default y |
| 97 | help |
Randy Dunlap | ac1efcf | 2016-01-27 18:04:10 -0800 | [diff] [blame] | 98 | If you disable this option, pcm timer will be unavailable, so |
| 99 | those stubs that use pcm timer (e.g. dmix, dsnoop & co) may work |
Elijah Harding | a893b7f | 2022-03-17 18:52:01 -0700 | [diff] [blame] | 100 | incorrectly. |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 101 | |
Randy Dunlap | ac1efcf | 2016-01-27 18:04:10 -0800 | [diff] [blame] | 102 | For some embedded devices, we may disable it to reduce memory |
Jie Yang | 90bbaf6 | 2015-10-16 17:57:46 +0800 | [diff] [blame] | 103 | footprint, about 20KB on x86_64 platform. |
| 104 | |
Takashi Iwai | bbaf5e9 | 2008-10-24 18:16:50 +0200 | [diff] [blame] | 105 | config SND_HRTIMER |
| 106 | tristate "HR-timer backend support" |
| 107 | depends on HIGH_RES_TIMERS |
| 108 | select SND_TIMER |
| 109 | help |
| 110 | Say Y here to enable HR-timer backend for ALSA timer. ALSA uses |
| 111 | the hrtimer as a precise timing source. The ALSA sequencer code |
| 112 | also can use this timing source. |
| 113 | |
| 114 | To compile this driver as a module, choose M here: the module |
| 115 | will be called snd-hrtimer. |
| 116 | |
Clemens Ladisch | 332682b | 2005-11-20 14:07:47 +0100 | [diff] [blame] | 117 | config SND_DYNAMIC_MINORS |
Clemens Ladisch | b10e539 | 2006-06-27 08:41:26 +0200 | [diff] [blame] | 118 | bool "Dynamic device file minor numbers" |
Clemens Ladisch | 332682b | 2005-11-20 14:07:47 +0100 | [diff] [blame] | 119 | help |
| 120 | If you say Y here, the minor numbers of ALSA device files in |
| 121 | /dev/snd/ are allocated dynamically. This allows you to have |
| 122 | more than 8 sound cards, but requires a dynamic device file |
| 123 | system like udev. |
| 124 | |
| 125 | If you are unsure about this, say N here. |
| 126 | |
Takashi Iwai | 7bb2491 | 2013-05-15 08:46:39 +0200 | [diff] [blame] | 127 | config SND_MAX_CARDS |
| 128 | int "Max number of sound cards" |
| 129 | range 4 256 |
| 130 | default 32 |
| 131 | depends on SND_DYNAMIC_MINORS |
| 132 | help |
| 133 | Specify the max number of sound cards that can be assigned |
| 134 | on a single machine. |
| 135 | |
Takashi Iwai | 59d4858 | 2005-12-01 10:51:58 +0100 | [diff] [blame] | 136 | config SND_SUPPORT_OLD_API |
| 137 | bool "Support old ALSA API" |
Takashi Iwai | 59d4858 | 2005-12-01 10:51:58 +0100 | [diff] [blame] | 138 | default y |
| 139 | help |
| 140 | Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3 |
| 141 | or older). |
| 142 | |
Jie Yang | e0ecb05 | 2015-05-27 19:45:44 +0800 | [diff] [blame] | 143 | config SND_PROC_FS |
Krzysztof Kozlowski | 82e8d72 | 2019-10-04 16:49:31 +0200 | [diff] [blame] | 144 | bool "Sound Proc FS Support" if EXPERT |
| 145 | depends on PROC_FS |
| 146 | default y |
| 147 | help |
| 148 | Say 'N' to disable Sound proc FS, which may reduce code size about |
| 149 | 9KB on x86_64 platform. |
| 150 | If unsure say Y. |
Jie Yang | e0ecb05 | 2015-05-27 19:45:44 +0800 | [diff] [blame] | 151 | |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 152 | config SND_VERBOSE_PROCFS |
| 153 | bool "Verbose procfs contents" |
Jie Yang | e0ecb05 | 2015-05-27 19:45:44 +0800 | [diff] [blame] | 154 | depends on SND_PROC_FS |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 155 | default y |
| 156 | help |
| 157 | Say Y here to include code for verbose procfs contents (provides |
Krzysztof Kozlowski | 82e8d72 | 2019-10-04 16:49:31 +0200 | [diff] [blame] | 158 | useful information to developers when a problem occurs). On the |
| 159 | other side, it makes the ALSA subsystem larger. |
Jaroslav Kysela | 21a3479 | 2006-01-13 09:12:11 +0100 | [diff] [blame] | 160 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | config SND_VERBOSE_PRINTK |
| 162 | bool "Verbose printk" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | help |
| 164 | Say Y here to enable verbose log messages. These messages |
| 165 | will help to identify source file and position containing |
| 166 | printed messages. |
| 167 | |
| 168 | You don't need this unless you're debugging ALSA. |
| 169 | |
Takashi Iwai | c27e1ef | 2022-06-10 08:45:37 +0200 | [diff] [blame] | 170 | config SND_CTL_FAST_LOOKUP |
| 171 | bool "Fast lookup of control elements" if EXPERT |
| 172 | default y |
| 173 | select XARRAY_MULTI |
| 174 | help |
| 175 | This option enables the faster lookup of control elements. |
| 176 | It will consume more memory because of the additional Xarray. |
| 177 | If you want to choose the memory footprint over the performance |
| 178 | inevitably, turn this off. |
| 179 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 180 | config SND_DEBUG |
| 181 | bool "Debug" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | help |
| 183 | Say Y here to enable ALSA debug code. |
| 184 | |
Takashi Iwai | 62cf872 | 2008-05-20 12:15:15 +0200 | [diff] [blame] | 185 | config SND_DEBUG_VERBOSE |
| 186 | bool "More verbose debug" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 187 | depends on SND_DEBUG |
| 188 | help |
Takashi Iwai | 62cf872 | 2008-05-20 12:15:15 +0200 | [diff] [blame] | 189 | Say Y here to enable extra-verbose debugging messages. |
Krzysztof Kozlowski | 82e8d72 | 2019-10-04 16:49:31 +0200 | [diff] [blame] | 190 | |
Takashi Iwai | 62cf872 | 2008-05-20 12:15:15 +0200 | [diff] [blame] | 191 | Let me repeat: it enables EXTRA-VERBOSE DEBUGGING messages. |
| 192 | So, say Y only if you are ready to be annoyed. |
Jaroslav Kysela | 61fb63c | 2006-04-24 21:57:16 +0200 | [diff] [blame] | 193 | |
| 194 | config SND_PCM_XRUN_DEBUG |
| 195 | bool "Enable PCM ring buffer overrun/underrun debugging" |
| 196 | default n |
Takashi Iwai | b7d90a3 | 2006-04-25 12:56:04 +0200 | [diff] [blame] | 197 | depends on SND_DEBUG && SND_VERBOSE_PROCFS |
Jaroslav Kysela | 61fb63c | 2006-04-24 21:57:16 +0200 | [diff] [blame] | 198 | help |
| 199 | Say Y to enable the PCM ring buffer overrun/underrun debugging. |
| 200 | It is usually not required, but if you have trouble with |
| 201 | sound clicking when system is loaded, it may help to determine |
| 202 | the process or driver which causes the scheduling gaps. |
Takashi Iwai | e922b00 | 2008-02-18 13:03:13 +0100 | [diff] [blame] | 203 | |
Takashi Iwai | f5e829f | 2022-06-09 14:02:19 +0200 | [diff] [blame] | 204 | config SND_CTL_INPUT_VALIDATION |
| 205 | bool "Validate input data to control API" |
| 206 | help |
| 207 | Say Y to enable the additional validation for the input data to |
| 208 | each control element, including the value range checks. |
| 209 | An error is returned from ALSA core for invalid inputs without |
| 210 | passing to the driver. This is a kind of hardening for drivers |
| 211 | that have no proper error checks, at the cost of a slight |
| 212 | performance overhead. |
| 213 | |
Takashi Iwai | 1b7ec51 | 2022-06-09 14:02:17 +0200 | [diff] [blame] | 214 | config SND_CTL_DEBUG |
| 215 | bool "Enable debugging feature for control API" |
Takashi Iwai | fbd3eb7 | 2020-01-04 09:35:56 +0100 | [diff] [blame] | 216 | depends on SND_DEBUG |
| 217 | help |
Takashi Iwai | 1b7ec51 | 2022-06-09 14:02:17 +0200 | [diff] [blame] | 218 | Say Y to enable the debugging feature for ALSA control API. |
| 219 | It performs the additional sanity-checks for each control element |
| 220 | read access, such as whether the values returned from the driver |
| 221 | are in the proper ranges or the check of the invalid access at |
| 222 | out-of-array areas. The error is printed when the driver gives |
| 223 | such unexpected values. |
| 224 | When you develop a driver that deals with control elements, it's |
| 225 | strongly recommended to try this one once and verify whether you see |
| 226 | any relevant errors or not. |
Takashi Iwai | fbd3eb7 | 2020-01-04 09:35:56 +0100 | [diff] [blame] | 227 | |
Hui Wang | 2d670ea | 2021-01-27 16:56:39 +0800 | [diff] [blame] | 228 | config SND_JACK_INJECTION_DEBUG |
| 229 | bool "Sound jack injection interface via debugfs" |
| 230 | depends on SND_JACK && SND_DEBUG && DEBUG_FS |
| 231 | help |
| 232 | This option can be used to enable or disable sound jack |
| 233 | software injection. |
| 234 | Say Y if you are debugging via jack injection interface. |
| 235 | If unsure select "N". |
| 236 | |
Takashi Iwai | e922b00 | 2008-02-18 13:03:13 +0100 | [diff] [blame] | 237 | config SND_VMASTER |
| 238 | bool |
Michal Marek | 0528c74 | 2009-05-26 17:07:52 +0200 | [diff] [blame] | 239 | |
Takashi Iwai | cc6a8ac | 2008-06-17 16:39:06 +0200 | [diff] [blame] | 240 | config SND_DMA_SGBUF |
| 241 | def_bool y |
| 242 | depends on X86 |
| 243 | |
Jaroslav Kysela | 22d8de6 | 2021-03-17 18:29:42 +0100 | [diff] [blame] | 244 | config SND_CTL_LED |
| 245 | tristate |
| 246 | select NEW_LEDS if SND_CTL_LED |
| 247 | select LEDS_TRIGGERS if SND_CTL_LED |
| 248 | select LEDS_TRIGGER_AUDIO if SND_CTL_LED |
| 249 | |
Michal Marek | 0528c74 | 2009-05-26 17:07:52 +0200 | [diff] [blame] | 250 | source "sound/core/seq/Kconfig" |