xref: /openbmc/linux/sound/core/Kconfig (revision 5fb94e9c)
11da177e4SLinus Torvalds# ALSA soundcard-configuration
21da177e4SLinus Torvaldsconfig SND_TIMER
31da177e4SLinus Torvalds	tristate
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsconfig SND_PCM
61da177e4SLinus Torvalds	tristate
790bbaf66SJie Yang	select SND_TIMER if SND_PCM_TIMER
81da177e4SLinus Torvalds
9838d1631SRussell Kingconfig SND_PCM_ELD
10838d1631SRussell King	bool
11838d1631SRussell King
129203dd01SRussell Kingconfig SND_PCM_IEC958
139203dd01SRussell King	bool
149203dd01SRussell King
15b7ae6f31SDaniel Mackconfig SND_DMAENGINE_PCM
16903eb318SDaniel Mack	tristate
17b7ae6f31SDaniel Mack
181da177e4SLinus Torvaldsconfig SND_HWDEP
191da177e4SLinus Torvalds	tristate
201da177e4SLinus Torvalds
21111b0cdbSTakashi Iwaiconfig SND_SEQ_DEVICE
22111b0cdbSTakashi Iwai	tristate
23111b0cdbSTakashi Iwai
241da177e4SLinus Torvaldsconfig SND_RAWMIDI
251da177e4SLinus Torvalds	tristate
26111b0cdbSTakashi Iwai	select SND_SEQ_DEVICE if SND_SEQUENCER != n
271da177e4SLinus Torvalds
285c845bebSTakashi Iwaiconfig SND_COMPRESS_OFFLOAD
295c845bebSTakashi Iwai	tristate
305c845bebSTakashi Iwai
310d94e41aSMark Brownconfig SND_JACK
320d94e41aSMark Brown	bool
330d94e41aSMark Brown
34fe0d128cSTakashi Iwai# enable input device support in jack layer
35fe0d128cSTakashi Iwaiconfig SND_JACK_INPUT_DEV
36fe0d128cSTakashi Iwai	bool
37fe0d128cSTakashi Iwai	depends on SND_JACK
38fe0d128cSTakashi Iwai	default y if INPUT=y || INPUT=SND
39fe0d128cSTakashi Iwai
401da177e4SLinus Torvaldsconfig SND_OSSEMUL
41eb3b705aSTakashi Iwai	bool "Enable OSS Emulation"
42d886e87cSTejun Heo	select SOUND_OSS_CORE
43eb3b705aSTakashi Iwai	help
44eb3b705aSTakashi Iwai	  This option enables the build of OSS emulation layer.
451da177e4SLinus Torvalds
461da177e4SLinus Torvaldsconfig SND_MIXER_OSS
471da177e4SLinus Torvalds	tristate "OSS Mixer API"
48eb3b705aSTakashi Iwai	depends on SND_OSSEMUL
491da177e4SLinus Torvalds	help
501da177e4SLinus Torvalds	  To enable OSS mixer API emulation (/dev/mixer*), say Y here
515fb94e9cSMauro Carvalho Chehab	  and read <file:Documentation/sound/designs/oss-emulation.rst>.
521da177e4SLinus Torvalds
531da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
541da177e4SLinus Torvalds
551da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
561da177e4SLinus Torvalds	  will be called snd-mixer-oss.
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldsconfig SND_PCM_OSS
591da177e4SLinus Torvalds	tristate "OSS PCM (digital audio) API"
60eb3b705aSTakashi Iwai	depends on SND_OSSEMUL
611da177e4SLinus Torvalds	select SND_PCM
621da177e4SLinus Torvalds	help
631da177e4SLinus Torvalds	  To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y
645fb94e9cSMauro Carvalho Chehab	  here and read <file:Documentation/sound/designs/oss-emulation.rst>.
651da177e4SLinus Torvalds
661da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
671da177e4SLinus Torvalds
681da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
691da177e4SLinus Torvalds	  will be called snd-pcm-oss.
701da177e4SLinus Torvalds
7121a3479aSJaroslav Kyselaconfig SND_PCM_OSS_PLUGINS
7221a3479aSJaroslav Kysela	bool "OSS PCM (digital audio) API - Include plugin system"
7321a3479aSJaroslav Kysela	depends on SND_PCM_OSS
7421a3479aSJaroslav Kysela        default y
7521a3479aSJaroslav Kysela	help
7621a3479aSJaroslav Kysela          If you disable this option, the ALSA's OSS PCM API will not
7721a3479aSJaroslav Kysela          support conversion of channels, formats and rates. It will
7821a3479aSJaroslav Kysela          behave like most of new OSS/Free drivers in 2.4/2.6 kernels.
7921a3479aSJaroslav Kysela
8090bbaf66SJie Yangconfig SND_PCM_TIMER
8190bbaf66SJie Yang	bool "PCM timer interface" if EXPERT
8290bbaf66SJie Yang	default y
8390bbaf66SJie Yang	help
84ac1efcfbSRandy Dunlap	  If you disable this option, pcm timer will be unavailable, so
85ac1efcfbSRandy Dunlap	  those stubs that use pcm timer (e.g. dmix, dsnoop & co) may work
8690bbaf66SJie Yang	  incorrectlly.
8790bbaf66SJie Yang
88ac1efcfbSRandy Dunlap	  For some embedded devices, we may disable it to reduce memory
8990bbaf66SJie Yang	  footprint, about 20KB on x86_64 platform.
9090bbaf66SJie Yang
91bbaf5e97STakashi Iwaiconfig SND_HRTIMER
92bbaf5e97STakashi Iwai	tristate "HR-timer backend support"
93bbaf5e97STakashi Iwai	depends on HIGH_RES_TIMERS
94bbaf5e97STakashi Iwai	select SND_TIMER
95bbaf5e97STakashi Iwai	help
96bbaf5e97STakashi Iwai	  Say Y here to enable HR-timer backend for ALSA timer.  ALSA uses
97bbaf5e97STakashi Iwai	  the hrtimer as a precise timing source. The ALSA sequencer code
98bbaf5e97STakashi Iwai	  also can use this timing source.
99bbaf5e97STakashi Iwai
100bbaf5e97STakashi Iwai	  To compile this driver as a module, choose M here: the module
101bbaf5e97STakashi Iwai	  will be called snd-hrtimer.
102bbaf5e97STakashi Iwai
103332682b1SClemens Ladischconfig SND_DYNAMIC_MINORS
104b10e5391SClemens Ladisch	bool "Dynamic device file minor numbers"
105332682b1SClemens Ladisch	help
106332682b1SClemens Ladisch	  If you say Y here, the minor numbers of ALSA device files in
107332682b1SClemens Ladisch	  /dev/snd/ are allocated dynamically.  This allows you to have
108332682b1SClemens Ladisch	  more than 8 sound cards, but requires a dynamic device file
109332682b1SClemens Ladisch	  system like udev.
110332682b1SClemens Ladisch
111332682b1SClemens Ladisch	  If you are unsure about this, say N here.
112332682b1SClemens Ladisch
1137bb2491bSTakashi Iwaiconfig SND_MAX_CARDS
1147bb2491bSTakashi Iwai	int "Max number of sound cards"
1157bb2491bSTakashi Iwai	range 4 256
1167bb2491bSTakashi Iwai	default 32
1177bb2491bSTakashi Iwai	depends on SND_DYNAMIC_MINORS
1187bb2491bSTakashi Iwai	help
1197bb2491bSTakashi Iwai	  Specify the max number of sound cards that can be assigned
1207bb2491bSTakashi Iwai	  on a single machine.
1217bb2491bSTakashi Iwai
12259d48582STakashi Iwaiconfig SND_SUPPORT_OLD_API
12359d48582STakashi Iwai	bool "Support old ALSA API"
12459d48582STakashi Iwai	default y
12559d48582STakashi Iwai	help
12659d48582STakashi Iwai	  Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
12759d48582STakashi Iwai	  or older).
12859d48582STakashi Iwai
129e0ecb05aSJie Yangconfig SND_PROC_FS
130e0ecb05aSJie Yang        bool "Sound Proc FS Support" if EXPERT
131e0ecb05aSJie Yang        depends on PROC_FS
132e0ecb05aSJie Yang        default y
133e0ecb05aSJie Yang        help
134e0ecb05aSJie Yang          Say 'N' to disable Sound proc FS, which may reduce code size about
135e0ecb05aSJie Yang          9KB on x86_64 platform.
136e0ecb05aSJie Yang          If unsure say Y.
137e0ecb05aSJie Yang
13821a3479aSJaroslav Kyselaconfig SND_VERBOSE_PROCFS
13921a3479aSJaroslav Kysela	bool "Verbose procfs contents"
140e0ecb05aSJie Yang	depends on SND_PROC_FS
14121a3479aSJaroslav Kysela	default y
14221a3479aSJaroslav Kysela	help
14321a3479aSJaroslav Kysela	  Say Y here to include code for verbose procfs contents (provides
144a982ac06SMatt LaPlante          useful information to developers when a problem occurs).  On the
14521a3479aSJaroslav Kysela          other side, it makes the ALSA subsystem larger.
14621a3479aSJaroslav Kysela
1471da177e4SLinus Torvaldsconfig SND_VERBOSE_PRINTK
1481da177e4SLinus Torvalds	bool "Verbose printk"
1491da177e4SLinus Torvalds	help
1501da177e4SLinus Torvalds	  Say Y here to enable verbose log messages.  These messages
1511da177e4SLinus Torvalds	  will help to identify source file and position containing
1521da177e4SLinus Torvalds	  printed messages.
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvalds	  You don't need this unless you're debugging ALSA.
1551da177e4SLinus Torvalds
1561da177e4SLinus Torvaldsconfig SND_DEBUG
1571da177e4SLinus Torvalds	bool "Debug"
1581da177e4SLinus Torvalds	help
1591da177e4SLinus Torvalds	  Say Y here to enable ALSA debug code.
1601da177e4SLinus Torvalds
16162cf872aSTakashi Iwaiconfig SND_DEBUG_VERBOSE
16262cf872aSTakashi Iwai	bool "More verbose debug"
1631da177e4SLinus Torvalds	depends on SND_DEBUG
1641da177e4SLinus Torvalds	help
16562cf872aSTakashi Iwai	  Say Y here to enable extra-verbose debugging messages.
16662cf872aSTakashi Iwai
16762cf872aSTakashi Iwai	  Let me repeat: it enables EXTRA-VERBOSE DEBUGGING messages.
16862cf872aSTakashi Iwai	  So, say Y only if you are ready to be annoyed.
16961fb63c0SJaroslav Kysela
17061fb63c0SJaroslav Kyselaconfig SND_PCM_XRUN_DEBUG
17161fb63c0SJaroslav Kysela	bool "Enable PCM ring buffer overrun/underrun debugging"
17261fb63c0SJaroslav Kysela	default n
173b7d90a35STakashi Iwai	depends on SND_DEBUG && SND_VERBOSE_PROCFS
17461fb63c0SJaroslav Kysela	help
17561fb63c0SJaroslav Kysela	  Say Y to enable the PCM ring buffer overrun/underrun debugging.
17661fb63c0SJaroslav Kysela	  It is usually not required, but if you have trouble with
17761fb63c0SJaroslav Kysela	  sound clicking when system is loaded, it may help to determine
17861fb63c0SJaroslav Kysela	  the process or driver which causes the scheduling gaps.
179e922b002STakashi Iwai
180e922b002STakashi Iwaiconfig SND_VMASTER
181e922b002STakashi Iwai	bool
1820528c749SMichal Marek
183cc6a8acdSTakashi Iwaiconfig SND_DMA_SGBUF
184cc6a8acdSTakashi Iwai	def_bool y
185cc6a8acdSTakashi Iwai	depends on X86
186cc6a8acdSTakashi Iwai
1870528c749SMichal Mareksource "sound/core/seq/Kconfig"
188