xref: /openbmc/linux/sound/core/Kconfig (revision e0ecb05a)
11da177e4SLinus Torvalds# ALSA soundcard-configuration
21da177e4SLinus Torvaldsconfig SND_TIMER
31da177e4SLinus Torvalds	tristate
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsconfig SND_PCM
61da177e4SLinus Torvalds	tristate
71da177e4SLinus Torvalds	select SND_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 Brown# To be effective this also requires INPUT - users should say:
280d94e41aSMark Brown#    select SND_JACK if INPUT=y || INPUT=SND
290d94e41aSMark Brown# to avoid having to force INPUT on.
300d94e41aSMark Brownconfig SND_JACK
310d94e41aSMark Brown	bool
320d94e41aSMark Brown
331da177e4SLinus Torvaldsconfig SND_SEQUENCER
341da177e4SLinus Torvalds	tristate "Sequencer support"
351da177e4SLinus Torvalds	select SND_TIMER
361da177e4SLinus Torvalds	help
371da177e4SLinus Torvalds	  Say Y or M to enable MIDI sequencer and router support.  This
381da177e4SLinus Torvalds	  feature allows routing and enqueueing of MIDI events.  Events
391da177e4SLinus Torvalds	  can be processed at a given time.
401da177e4SLinus Torvalds
411da177e4SLinus Torvalds	  Many programs require this feature, so you should enable it
421da177e4SLinus Torvalds	  unless you know what you're doing.
431da177e4SLinus Torvalds
441da177e4SLinus Torvaldsconfig SND_SEQ_DUMMY
451da177e4SLinus Torvalds	tristate "Sequencer dummy client"
461da177e4SLinus Torvalds	depends on SND_SEQUENCER
471da177e4SLinus Torvalds	help
481da177e4SLinus Torvalds	  Say Y here to enable the dummy sequencer client.  This client
491da177e4SLinus Torvalds	  is a simple MIDI-through client: all normal input events are
501da177e4SLinus Torvalds	  redirected to the output port immediately.
511da177e4SLinus Torvalds
521da177e4SLinus Torvalds	  You don't need this unless you want to connect many MIDI
531da177e4SLinus Torvalds	  devices or applications together.
541da177e4SLinus Torvalds
551da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
561da177e4SLinus Torvalds	  will be called snd-seq-dummy.
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldsconfig SND_OSSEMUL
59d886e87cSTejun Heo	select SOUND_OSS_CORE
601da177e4SLinus Torvalds	bool
611da177e4SLinus Torvalds
621da177e4SLinus Torvaldsconfig SND_MIXER_OSS
631da177e4SLinus Torvalds	tristate "OSS Mixer API"
641da177e4SLinus Torvalds	select SND_OSSEMUL
651da177e4SLinus Torvalds	help
661da177e4SLinus Torvalds	  To enable OSS mixer API emulation (/dev/mixer*), say Y here
671da177e4SLinus Torvalds	  and read <file:Documentation/sound/alsa/OSS-Emulation.txt>.
681da177e4SLinus Torvalds
691da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
701da177e4SLinus Torvalds
711da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
721da177e4SLinus Torvalds	  will be called snd-mixer-oss.
731da177e4SLinus Torvalds
741da177e4SLinus Torvaldsconfig SND_PCM_OSS
751da177e4SLinus Torvalds	tristate "OSS PCM (digital audio) API"
761da177e4SLinus Torvalds	select SND_OSSEMUL
771da177e4SLinus Torvalds	select SND_PCM
781da177e4SLinus Torvalds	help
791da177e4SLinus Torvalds	  To enable OSS digital audio (PCM) emulation (/dev/dsp*), say Y
801da177e4SLinus Torvalds	  here and read <file:Documentation/sound/alsa/OSS-Emulation.txt>.
811da177e4SLinus Torvalds
821da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
831da177e4SLinus Torvalds
841da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
851da177e4SLinus Torvalds	  will be called snd-pcm-oss.
861da177e4SLinus Torvalds
8721a3479aSJaroslav Kyselaconfig SND_PCM_OSS_PLUGINS
8821a3479aSJaroslav Kysela	bool "OSS PCM (digital audio) API - Include plugin system"
8921a3479aSJaroslav Kysela	depends on SND_PCM_OSS
9021a3479aSJaroslav Kysela        default y
9121a3479aSJaroslav Kysela	help
9221a3479aSJaroslav Kysela          If you disable this option, the ALSA's OSS PCM API will not
9321a3479aSJaroslav Kysela          support conversion of channels, formats and rates. It will
9421a3479aSJaroslav Kysela          behave like most of new OSS/Free drivers in 2.4/2.6 kernels.
9521a3479aSJaroslav Kysela
961da177e4SLinus Torvaldsconfig SND_SEQUENCER_OSS
971da177e4SLinus Torvalds	bool "OSS Sequencer API"
9889fe5117STakashi Iwai	depends on SND_SEQUENCER
991da177e4SLinus Torvalds	select SND_OSSEMUL
1001da177e4SLinus Torvalds	help
1011da177e4SLinus Torvalds	  Say Y here to enable OSS sequencer emulation (both
1021da177e4SLinus Torvalds	  /dev/sequencer and /dev/music interfaces).
1031da177e4SLinus Torvalds
1041da177e4SLinus Torvalds	  Many programs still use the OSS API, so say Y.
1051da177e4SLinus Torvalds
106c2f60c52SFrederik Deweerdt	  If you choose M in "Sequencer support" (SND_SEQUENCER),
107c2f60c52SFrederik Deweerdt	  this will be compiled as a module. The module will be called
108c2f60c52SFrederik Deweerdt	  snd-seq-oss.
1091da177e4SLinus Torvalds
110bbaf5e97STakashi Iwaiconfig SND_HRTIMER
111bbaf5e97STakashi Iwai	tristate "HR-timer backend support"
112bbaf5e97STakashi Iwai	depends on HIGH_RES_TIMERS
113bbaf5e97STakashi Iwai	select SND_TIMER
114bbaf5e97STakashi Iwai	help
115bbaf5e97STakashi Iwai	  Say Y here to enable HR-timer backend for ALSA timer.  ALSA uses
116bbaf5e97STakashi Iwai	  the hrtimer as a precise timing source. The ALSA sequencer code
117bbaf5e97STakashi Iwai	  also can use this timing source.
118bbaf5e97STakashi Iwai
119bbaf5e97STakashi Iwai	  To compile this driver as a module, choose M here: the module
120bbaf5e97STakashi Iwai	  will be called snd-hrtimer.
121bbaf5e97STakashi Iwai
122bbaf5e97STakashi Iwaiconfig SND_SEQ_HRTIMER_DEFAULT
123bbaf5e97STakashi Iwai	bool "Use HR-timer as default sequencer timer"
124bbaf5e97STakashi Iwai	depends on SND_HRTIMER && SND_SEQUENCER
125bbaf5e97STakashi Iwai	default y
126bbaf5e97STakashi Iwai	help
127bbaf5e97STakashi Iwai	  Say Y here to use the HR-timer backend as the default sequencer
128bbaf5e97STakashi Iwai	  timer.
129bbaf5e97STakashi Iwai
1301da177e4SLinus Torvaldsconfig SND_RTCTIMER
1311da177e4SLinus Torvalds	tristate "RTC Timer support"
13289fe5117STakashi Iwai	depends on RTC
1331da177e4SLinus Torvalds	select SND_TIMER
1341da177e4SLinus Torvalds	help
1351da177e4SLinus Torvalds	  Say Y here to enable RTC timer support for ALSA.  ALSA uses
1361da177e4SLinus Torvalds	  the RTC timer as a precise timing source and maps the RTC
1371da177e4SLinus Torvalds	  timer to ALSA's timer interface.  The ALSA sequencer code also
1381da177e4SLinus Torvalds	  can use this timing source.
1391da177e4SLinus Torvalds
1401da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the module
1411da177e4SLinus Torvalds	  will be called snd-rtctimer.
1421da177e4SLinus Torvalds
14352948b3fSTakashi Iwai	  Note that this option is exclusive with the new RTC drivers
14452948b3fSTakashi Iwai	  (CONFIG_RTC_CLASS) since this requires the old API.
14552948b3fSTakashi Iwai
146a4f508b2SClemens Ladischconfig SND_SEQ_RTCTIMER_DEFAULT
147a4f508b2SClemens Ladisch	bool "Use RTC as default sequencer timer"
148a4f508b2SClemens Ladisch	depends on SND_RTCTIMER && SND_SEQUENCER
149e78a37bcSTakashi Iwai	depends on !SND_SEQ_HRTIMER_DEFAULT
150a4f508b2SClemens Ladisch	default y
151a4f508b2SClemens Ladisch	help
152a4f508b2SClemens Ladisch	  Say Y here to use the RTC timer as the default sequencer
153a4f508b2SClemens Ladisch	  timer.  This is strongly recommended because it ensures
154a4f508b2SClemens Ladisch	  precise MIDI timing even when the system timer runs at less
155a4f508b2SClemens Ladisch	  than 1000 Hz.
156a4f508b2SClemens Ladisch
157a4f508b2SClemens Ladisch	  If in doubt, say Y.
158a4f508b2SClemens Ladisch
159332682b1SClemens Ladischconfig SND_DYNAMIC_MINORS
160b10e5391SClemens Ladisch	bool "Dynamic device file minor numbers"
161332682b1SClemens Ladisch	help
162332682b1SClemens Ladisch	  If you say Y here, the minor numbers of ALSA device files in
163332682b1SClemens Ladisch	  /dev/snd/ are allocated dynamically.  This allows you to have
164332682b1SClemens Ladisch	  more than 8 sound cards, but requires a dynamic device file
165332682b1SClemens Ladisch	  system like udev.
166332682b1SClemens Ladisch
167332682b1SClemens Ladisch	  If you are unsure about this, say N here.
168332682b1SClemens Ladisch
1697bb2491bSTakashi Iwaiconfig SND_MAX_CARDS
1707bb2491bSTakashi Iwai	int "Max number of sound cards"
1717bb2491bSTakashi Iwai	range 4 256
1727bb2491bSTakashi Iwai	default 32
1737bb2491bSTakashi Iwai	depends on SND_DYNAMIC_MINORS
1747bb2491bSTakashi Iwai	help
1757bb2491bSTakashi Iwai	  Specify the max number of sound cards that can be assigned
1767bb2491bSTakashi Iwai	  on a single machine.
1777bb2491bSTakashi Iwai
17859d48582STakashi Iwaiconfig SND_SUPPORT_OLD_API
17959d48582STakashi Iwai	bool "Support old ALSA API"
18059d48582STakashi Iwai	default y
18159d48582STakashi Iwai	help
18259d48582STakashi Iwai	  Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
18359d48582STakashi Iwai	  or older).
18459d48582STakashi Iwai
185e0ecb05aSJie Yangconfig SND_PROC_FS
186e0ecb05aSJie Yang        bool "Sound Proc FS Support" if EXPERT
187e0ecb05aSJie Yang        depends on PROC_FS
188e0ecb05aSJie Yang        default y
189e0ecb05aSJie Yang        help
190e0ecb05aSJie Yang          Say 'N' to disable Sound proc FS, which may reduce code size about
191e0ecb05aSJie Yang          9KB on x86_64 platform.
192e0ecb05aSJie Yang          If unsure say Y.
193e0ecb05aSJie Yang
19421a3479aSJaroslav Kyselaconfig SND_VERBOSE_PROCFS
19521a3479aSJaroslav Kysela	bool "Verbose procfs contents"
196e0ecb05aSJie Yang	depends on SND_PROC_FS
19721a3479aSJaroslav Kysela	default y
19821a3479aSJaroslav Kysela	help
19921a3479aSJaroslav Kysela	  Say Y here to include code for verbose procfs contents (provides
200a982ac06SMatt LaPlante          useful information to developers when a problem occurs).  On the
20121a3479aSJaroslav Kysela          other side, it makes the ALSA subsystem larger.
20221a3479aSJaroslav Kysela
2031da177e4SLinus Torvaldsconfig SND_VERBOSE_PRINTK
2041da177e4SLinus Torvalds	bool "Verbose printk"
2051da177e4SLinus Torvalds	help
2061da177e4SLinus Torvalds	  Say Y here to enable verbose log messages.  These messages
2071da177e4SLinus Torvalds	  will help to identify source file and position containing
2081da177e4SLinus Torvalds	  printed messages.
2091da177e4SLinus Torvalds
2101da177e4SLinus Torvalds	  You don't need this unless you're debugging ALSA.
2111da177e4SLinus Torvalds
2121da177e4SLinus Torvaldsconfig SND_DEBUG
2131da177e4SLinus Torvalds	bool "Debug"
2141da177e4SLinus Torvalds	help
2151da177e4SLinus Torvalds	  Say Y here to enable ALSA debug code.
2161da177e4SLinus Torvalds
21762cf872aSTakashi Iwaiconfig SND_DEBUG_VERBOSE
21862cf872aSTakashi Iwai	bool "More verbose debug"
2191da177e4SLinus Torvalds	depends on SND_DEBUG
2201da177e4SLinus Torvalds	help
22162cf872aSTakashi Iwai	  Say Y here to enable extra-verbose debugging messages.
22262cf872aSTakashi Iwai
22362cf872aSTakashi Iwai	  Let me repeat: it enables EXTRA-VERBOSE DEBUGGING messages.
22462cf872aSTakashi Iwai	  So, say Y only if you are ready to be annoyed.
22561fb63c0SJaroslav Kysela
22661fb63c0SJaroslav Kyselaconfig SND_PCM_XRUN_DEBUG
22761fb63c0SJaroslav Kysela	bool "Enable PCM ring buffer overrun/underrun debugging"
22861fb63c0SJaroslav Kysela	default n
229b7d90a35STakashi Iwai	depends on SND_DEBUG && SND_VERBOSE_PROCFS
23061fb63c0SJaroslav Kysela	help
23161fb63c0SJaroslav Kysela	  Say Y to enable the PCM ring buffer overrun/underrun debugging.
23261fb63c0SJaroslav Kysela	  It is usually not required, but if you have trouble with
23361fb63c0SJaroslav Kysela	  sound clicking when system is loaded, it may help to determine
23461fb63c0SJaroslav Kysela	  the process or driver which causes the scheduling gaps.
235e922b002STakashi Iwai
236e922b002STakashi Iwaiconfig SND_VMASTER
237e922b002STakashi Iwai	bool
2380528c749SMichal Marek
239cc6a8acdSTakashi Iwaiconfig SND_DMA_SGBUF
240cc6a8acdSTakashi Iwai	def_bool y
241cc6a8acdSTakashi Iwai	depends on X86
242cc6a8acdSTakashi Iwai
2430528c749SMichal Mareksource "sound/core/seq/Kconfig"
244