xref: /openbmc/linux/sound/core/Kconfig (revision fe0d128c)
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
211da177e4SLinus Torvaldsconfig SND_RAWMIDI
221da177e4SLinus Torvalds	tristate
231da177e4SLinus Torvalds
245c845bebSTakashi Iwaiconfig SND_COMPRESS_OFFLOAD
255c845bebSTakashi Iwai	tristate
265c845bebSTakashi Iwai
270d94e41aSMark Brownconfig SND_JACK
280d94e41aSMark Brown	bool
290d94e41aSMark Brown
30fe0d128cSTakashi Iwai# enable input device support in jack layer
31fe0d128cSTakashi Iwaiconfig SND_JACK_INPUT_DEV
32fe0d128cSTakashi Iwai	bool
33fe0d128cSTakashi Iwai	depends on SND_JACK
34fe0d128cSTakashi Iwai	default y if INPUT=y || INPUT=SND
35fe0d128cSTakashi Iwai
361da177e4SLinus Torvaldsconfig SND_SEQUENCER
371da177e4SLinus Torvalds	tristate "Sequencer support"
381da177e4SLinus Torvalds	select SND_TIMER
391da177e4SLinus Torvalds	help
401da177e4SLinus Torvalds	  Say Y or M to enable MIDI sequencer and router support.  This
411da177e4SLinus Torvalds	  feature allows routing and enqueueing of MIDI events.  Events
421da177e4SLinus Torvalds	  can be processed at a given time.
431da177e4SLinus Torvalds
441da177e4SLinus Torvalds	  Many programs require this feature, so you should enable it
451da177e4SLinus Torvalds	  unless you know what you're doing.
461da177e4SLinus Torvalds
471da177e4SLinus Torvaldsconfig SND_SEQ_DUMMY
481da177e4SLinus Torvalds	tristate "Sequencer dummy client"
491da177e4SLinus Torvalds	depends on SND_SEQUENCER
501da177e4SLinus Torvalds	help
511da177e4SLinus Torvalds	  Say Y here to enable the dummy sequencer client.  This client
521da177e4SLinus Torvalds	  is a simple MIDI-through client: all normal input events are
531da177e4SLinus Torvalds	  redirected to the output port immediately.
541da177e4SLinus Torvalds
551da177e4SLinus Torvalds	  You don't need this unless you want to connect many MIDI
561da177e4SLinus Torvalds	  devices or applications together.
571da177e4SLinus Torvalds
581da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
591da177e4SLinus Torvalds	  will be called snd-seq-dummy.
601da177e4SLinus Torvalds
611da177e4SLinus Torvaldsconfig SND_OSSEMUL
62d886e87cSTejun Heo	select SOUND_OSS_CORE
631da177e4SLinus Torvalds	bool
641da177e4SLinus Torvalds
651da177e4SLinus Torvaldsconfig SND_MIXER_OSS
661da177e4SLinus Torvalds	tristate "OSS Mixer API"
671da177e4SLinus Torvalds	select SND_OSSEMUL
681da177e4SLinus Torvalds	help
691da177e4SLinus Torvalds	  To enable OSS mixer API emulation (/dev/mixer*), say Y here
701da177e4SLinus Torvalds	  and read <file:Documentation/sound/alsa/OSS-Emulation.txt>.
711da177e4SLinus Torvalds
721da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
731da177e4SLinus Torvalds
741da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
751da177e4SLinus Torvalds	  will be called snd-mixer-oss.
761da177e4SLinus Torvalds
771da177e4SLinus Torvaldsconfig SND_PCM_OSS
781da177e4SLinus Torvalds	tristate "OSS PCM (digital audio) API"
791da177e4SLinus Torvalds	select SND_OSSEMUL
801da177e4SLinus Torvalds	select SND_PCM
811da177e4SLinus Torvalds	help
821da177e4SLinus Torvalds	  To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y
831da177e4SLinus Torvalds	  here and read <file:Documentation/sound/alsa/OSS-Emulation.txt>.
841da177e4SLinus Torvalds
851da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
861da177e4SLinus Torvalds
871da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
881da177e4SLinus Torvalds	  will be called snd-pcm-oss.
891da177e4SLinus Torvalds
9021a3479aSJaroslav Kyselaconfig SND_PCM_OSS_PLUGINS
9121a3479aSJaroslav Kysela	bool "OSS PCM (digital audio) API - Include plugin system"
9221a3479aSJaroslav Kysela	depends on SND_PCM_OSS
9321a3479aSJaroslav Kysela        default y
9421a3479aSJaroslav Kysela	help
9521a3479aSJaroslav Kysela          If you disable this option, the ALSA's OSS PCM API will not
9621a3479aSJaroslav Kysela          support conversion of channels, formats and rates. It will
9721a3479aSJaroslav Kysela          behave like most of new OSS/Free drivers in 2.4/2.6 kernels.
9821a3479aSJaroslav Kysela
9990bbaf66SJie Yangconfig SND_PCM_TIMER
10090bbaf66SJie Yang	bool "PCM timer interface" if EXPERT
10190bbaf66SJie Yang	default y
10290bbaf66SJie Yang	help
103ac1efcfbSRandy Dunlap	  If you disable this option, pcm timer will be unavailable, so
104ac1efcfbSRandy Dunlap	  those stubs that use pcm timer (e.g. dmix, dsnoop & co) may work
10590bbaf66SJie Yang	  incorrectlly.
10690bbaf66SJie Yang
107ac1efcfbSRandy Dunlap	  For some embedded devices, we may disable it to reduce memory
10890bbaf66SJie Yang	  footprint, about 20KB on x86_64 platform.
10990bbaf66SJie Yang
1101da177e4SLinus Torvaldsconfig SND_SEQUENCER_OSS
1111da177e4SLinus Torvalds	bool "OSS Sequencer API"
11289fe5117STakashi Iwai	depends on SND_SEQUENCER
1131da177e4SLinus Torvalds	select SND_OSSEMUL
1141da177e4SLinus Torvalds	help
1151da177e4SLinus Torvalds	  Say Y here to enable OSS sequencer emulation (both
1161da177e4SLinus Torvalds	  /dev/sequencer and /dev/music interfaces).
1171da177e4SLinus Torvalds
1181da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
1191da177e4SLinus Torvalds
120c2f60c52SFrederik Deweerdt	  If you choose M in "Sequencer support" (SND_SEQUENCER),
121c2f60c52SFrederik Deweerdt	  this will be compiled as a module. The module will be called
122c2f60c52SFrederik Deweerdt	  snd-seq-oss.
1231da177e4SLinus Torvalds
124bbaf5e97STakashi Iwaiconfig SND_HRTIMER
125bbaf5e97STakashi Iwai	tristate "HR-timer backend support"
126bbaf5e97STakashi Iwai	depends on HIGH_RES_TIMERS
127bbaf5e97STakashi Iwai	select SND_TIMER
128bbaf5e97STakashi Iwai	help
129bbaf5e97STakashi Iwai	  Say Y here to enable HR-timer backend for ALSA timer.  ALSA uses
130bbaf5e97STakashi Iwai	  the hrtimer as a precise timing source. The ALSA sequencer code
131bbaf5e97STakashi Iwai	  also can use this timing source.
132bbaf5e97STakashi Iwai
133bbaf5e97STakashi Iwai	  To compile this driver as a module, choose M here: the module
134bbaf5e97STakashi Iwai	  will be called snd-hrtimer.
135bbaf5e97STakashi Iwai
136bbaf5e97STakashi Iwaiconfig SND_SEQ_HRTIMER_DEFAULT
137bbaf5e97STakashi Iwai	bool "Use HR-timer as default sequencer timer"
138bbaf5e97STakashi Iwai	depends on SND_HRTIMER && SND_SEQUENCER
139bbaf5e97STakashi Iwai	default y
140bbaf5e97STakashi Iwai	help
141bbaf5e97STakashi Iwai	  Say Y here to use the HR-timer backend as the default sequencer
142bbaf5e97STakashi Iwai	  timer.
143bbaf5e97STakashi Iwai
1441da177e4SLinus Torvaldsconfig SND_RTCTIMER
1451da177e4SLinus Torvalds	tristate "RTC Timer support"
14689fe5117STakashi Iwai	depends on RTC
1471da177e4SLinus Torvalds	select SND_TIMER
1481da177e4SLinus Torvalds	help
1491da177e4SLinus Torvalds	  Say Y here to enable RTC timer support for ALSA.  ALSA uses
1501da177e4SLinus Torvalds	  the RTC timer as a precise timing source and maps the RTC
1511da177e4SLinus Torvalds	  timer to ALSA's timer interface.  The ALSA sequencer code also
1521da177e4SLinus Torvalds	  can use this timing source.
1531da177e4SLinus Torvalds
1541da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
1551da177e4SLinus Torvalds	  will be called snd-rtctimer.
1561da177e4SLinus Torvalds
15752948b3fSTakashi Iwai	  Note that this option is exclusive with the new RTC drivers
15852948b3fSTakashi Iwai	  (CONFIG_RTC_CLASS) since this requires the old API.
15952948b3fSTakashi Iwai
160a4f508b2SClemens Ladischconfig SND_SEQ_RTCTIMER_DEFAULT
161a4f508b2SClemens Ladisch	bool "Use RTC as default sequencer timer"
162a4f508b2SClemens Ladisch	depends on SND_RTCTIMER && SND_SEQUENCER
163e78a37bcSTakashi Iwai	depends on !SND_SEQ_HRTIMER_DEFAULT
164a4f508b2SClemens Ladisch	default y
165a4f508b2SClemens Ladisch	help
166a4f508b2SClemens Ladisch	  Say Y here to use the RTC timer as the default sequencer
167a4f508b2SClemens Ladisch	  timer.  This is strongly recommended because it ensures
168a4f508b2SClemens Ladisch	  precise MIDI timing even when the system timer runs at less
169a4f508b2SClemens Ladisch	  than 1000 Hz.
170a4f508b2SClemens Ladisch
171a4f508b2SClemens Ladisch	  If in doubt, say Y.
172a4f508b2SClemens Ladisch
173332682b1SClemens Ladischconfig SND_DYNAMIC_MINORS
174b10e5391SClemens Ladisch	bool "Dynamic device file minor numbers"
175332682b1SClemens Ladisch	help
176332682b1SClemens Ladisch	  If you say Y here, the minor numbers of ALSA device files in
177332682b1SClemens Ladisch	  /dev/snd/ are allocated dynamically.  This allows you to have
178332682b1SClemens Ladisch	  more than 8 sound cards, but requires a dynamic device file
179332682b1SClemens Ladisch	  system like udev.
180332682b1SClemens Ladisch
181332682b1SClemens Ladisch	  If you are unsure about this, say N here.
182332682b1SClemens Ladisch
1837bb2491bSTakashi Iwaiconfig SND_MAX_CARDS
1847bb2491bSTakashi Iwai	int "Max number of sound cards"
1857bb2491bSTakashi Iwai	range 4 256
1867bb2491bSTakashi Iwai	default 32
1877bb2491bSTakashi Iwai	depends on SND_DYNAMIC_MINORS
1887bb2491bSTakashi Iwai	help
1897bb2491bSTakashi Iwai	  Specify the max number of sound cards that can be assigned
1907bb2491bSTakashi Iwai	  on a single machine.
1917bb2491bSTakashi Iwai
19259d48582STakashi Iwaiconfig SND_SUPPORT_OLD_API
19359d48582STakashi Iwai	bool "Support old ALSA API"
19459d48582STakashi Iwai	default y
19559d48582STakashi Iwai	help
19659d48582STakashi Iwai	  Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
19759d48582STakashi Iwai	  or older).
19859d48582STakashi Iwai
199e0ecb05aSJie Yangconfig SND_PROC_FS
200e0ecb05aSJie Yang        bool "Sound Proc FS Support" if EXPERT
201e0ecb05aSJie Yang        depends on PROC_FS
202e0ecb05aSJie Yang        default y
203e0ecb05aSJie Yang        help
204e0ecb05aSJie Yang          Say 'N' to disable Sound proc FS, which may reduce code size about
205e0ecb05aSJie Yang          9KB on x86_64 platform.
206e0ecb05aSJie Yang          If unsure say Y.
207e0ecb05aSJie Yang
20821a3479aSJaroslav Kyselaconfig SND_VERBOSE_PROCFS
20921a3479aSJaroslav Kysela	bool "Verbose procfs contents"
210e0ecb05aSJie Yang	depends on SND_PROC_FS
21121a3479aSJaroslav Kysela	default y
21221a3479aSJaroslav Kysela	help
21321a3479aSJaroslav Kysela	  Say Y here to include code for verbose procfs contents (provides
214a982ac06SMatt LaPlante          useful information to developers when a problem occurs).  On the
21521a3479aSJaroslav Kysela          other side, it makes the ALSA subsystem larger.
21621a3479aSJaroslav Kysela
2171da177e4SLinus Torvaldsconfig SND_VERBOSE_PRINTK
2181da177e4SLinus Torvalds	bool "Verbose printk"
2191da177e4SLinus Torvalds	help
2201da177e4SLinus Torvalds	  Say Y here to enable verbose log messages.  These messages
2211da177e4SLinus Torvalds	  will help to identify source file and position containing
2221da177e4SLinus Torvalds	  printed messages.
2231da177e4SLinus Torvalds
2241da177e4SLinus Torvalds	  You don't need this unless you're debugging ALSA.
2251da177e4SLinus Torvalds
2261da177e4SLinus Torvaldsconfig SND_DEBUG
2271da177e4SLinus Torvalds	bool "Debug"
2281da177e4SLinus Torvalds	help
2291da177e4SLinus Torvalds	  Say Y here to enable ALSA debug code.
2301da177e4SLinus Torvalds
23162cf872aSTakashi Iwaiconfig SND_DEBUG_VERBOSE
23262cf872aSTakashi Iwai	bool "More verbose debug"
2331da177e4SLinus Torvalds	depends on SND_DEBUG
2341da177e4SLinus Torvalds	help
23562cf872aSTakashi Iwai	  Say Y here to enable extra-verbose debugging messages.
23662cf872aSTakashi Iwai
23762cf872aSTakashi Iwai	  Let me repeat: it enables EXTRA-VERBOSE DEBUGGING messages.
23862cf872aSTakashi Iwai	  So, say Y only if you are ready to be annoyed.
23961fb63c0SJaroslav Kysela
24061fb63c0SJaroslav Kyselaconfig SND_PCM_XRUN_DEBUG
24161fb63c0SJaroslav Kysela	bool "Enable PCM ring buffer overrun/underrun debugging"
24261fb63c0SJaroslav Kysela	default n
243b7d90a35STakashi Iwai	depends on SND_DEBUG && SND_VERBOSE_PROCFS
24461fb63c0SJaroslav Kysela	help
24561fb63c0SJaroslav Kysela	  Say Y to enable the PCM ring buffer overrun/underrun debugging.
24661fb63c0SJaroslav Kysela	  It is usually not required, but if you have trouble with
24761fb63c0SJaroslav Kysela	  sound clicking when system is loaded, it may help to determine
24861fb63c0SJaroslav Kysela	  the process or driver which causes the scheduling gaps.
249e922b002STakashi Iwai
250e922b002STakashi Iwaiconfig SND_VMASTER
251e922b002STakashi Iwai	bool
2520528c749SMichal Marek
253cc6a8acdSTakashi Iwaiconfig SND_DMA_SGBUF
254cc6a8acdSTakashi Iwai	def_bool y
255cc6a8acdSTakashi Iwai	depends on X86
256cc6a8acdSTakashi Iwai
2570528c749SMichal Mareksource "sound/core/seq/Kconfig"
258