Commit 89fe5117 authored by Takashi Iwai's avatar Takashi Iwai

sound: Convert to menuconfig

Convert menu in sound Kconfig files to menuconfig and if.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 06b5fb97
# sound/Config.in
#
menu "Sound"
depends on HAS_IOMEM
config SOUND
menuconfig SOUND
tristate "Sound card support"
depends on HAS_IOMEM
help
If you have a sound card in your computer, i.e. if it can say more
than an occasional beep, say Y. Be sure to have all the information
......@@ -28,22 +26,22 @@ config SOUND
and read <file:Documentation/sound/oss/README.modules>; the module
will be called soundcore.
if SOUND
source "sound/oss/dmasound/Kconfig"
if !M68K
menu "Advanced Linux Sound Architecture"
depends on SOUND!=n
config SND
menuconfig SND
tristate "Advanced Linux Sound Architecture"
depends on SOUND
help
Say 'Y' or 'M' to enable ALSA (Advanced Linux Sound Architecture),
the new base sound system.
For more information, see <http://www.alsa-project.org/>
if SND
source "sound/core/Kconfig"
source "sound/drivers/Kconfig"
......@@ -58,9 +56,7 @@ source "sound/aoa/Kconfig"
source "sound/arm/Kconfig"
if SPI
source "sound/spi/Kconfig"
endif
source "sound/mips/Kconfig"
......@@ -80,22 +76,20 @@ source "sound/parisc/Kconfig"
source "sound/soc/Kconfig"
endmenu
endif # SND
menu "Open Sound System"
depends on SOUND!=n
config SOUND_PRIME
menuconfig SOUND_PRIME
tristate "Open Sound System (DEPRECATED)"
depends on SOUND
help
Say 'Y' or 'M' to enable Open Sound System drivers.
if SOUND_PRIME
source "sound/oss/Kconfig"
endmenu
endif # SOUND_PRIME
endif
endif # !M68K
config AC97_BUS
tristate
......@@ -105,4 +99,4 @@ config AC97_BUS
sound although they're sharing the AC97 bus. Concerned drivers
should "select" this.
endmenu
endif # SOUND
menu "Apple Onboard Audio driver"
depends on SND!=n && PPC_PMAC
config SND_AOA
menuconfig SND_AOA
tristate "Apple Onboard Audio driver"
depends on SND
depends on PPC_PMAC
select SND_PCM
---help---
This option enables the new driver for the various
Apple Onboard Audio components.
if SND_AOA
source "sound/aoa/fabrics/Kconfig"
source "sound/aoa/codecs/Kconfig"
source "sound/aoa/soundbus/Kconfig"
endmenu
endif # SND_AOA
config SND_AOA_ONYX
tristate "support Onyx chip"
depends on SND_AOA
select I2C
select I2C_POWERMAC
---help---
......@@ -10,7 +9,6 @@ config SND_AOA_ONYX
#config SND_AOA_TOPAZ
# tristate "support Topaz chips"
# depends on SND_AOA
# ---help---
# This option enables support for the Topaz (CS84xx)
# codec chips found in the latest Apple machines,
......@@ -19,7 +17,6 @@ config SND_AOA_ONYX
config SND_AOA_TAS
tristate "support TAS chips"
depends on SND_AOA
select I2C
select I2C_POWERMAC
---help---
......@@ -29,7 +26,6 @@ config SND_AOA_TAS
config SND_AOA_TOONIE
tristate "support Toonie chip"
depends on SND_AOA
---help---
This option enables support for the toonie codec
found in the Mac Mini. If you have a Mac Mini and
......
config SND_AOA_FABRIC_LAYOUT
tristate "layout-id fabric"
depends on SND_AOA
select SND_AOA_SOUNDBUS
select SND_AOA_SOUNDBUS_I2S
---help---
......
config SND_AOA_SOUNDBUS
tristate "Apple Soundbus support"
depends on SOUND
select SND_PCM
---help---
This option enables the generic driver for the soundbus
......
# ALSA ARM drivers
menu "ALSA ARM devices"
depends on SND!=n && ARM
menuconfig SND_ARM
bool "ARM sound devices"
depends on ARM
default y
help
Support for sound devices specific to ARM architectures.
Drivers that are implemented on ASoC can be found in
"ALSA for SoC audio support" section.
if SND_ARM
config SND_SA11XX_UDA1341
tristate "SA11xx UDA1341TS driver (iPaq H3600)"
depends on ARCH_SA1100 && SND && L3
depends on ARCH_SA1100 && L3
select SND_PCM
help
Say Y here if you have a Compaq iPaq H3x00 handheld computer
......@@ -16,7 +24,7 @@ config SND_SA11XX_UDA1341
config SND_ARMAACI
tristate "ARM PrimeCell PL041 AC Link support"
depends on SND && ARM_AMBA
depends on ARM_AMBA
select SND_PCM
select SND_AC97_CODEC
......@@ -26,11 +34,12 @@ config SND_PXA2XX_PCM
config SND_PXA2XX_AC97
tristate "AC97 driver for the Intel PXA2xx chip"
depends on ARCH_PXA && SND
depends on ARCH_PXA
select SND_PXA2XX_PCM
select SND_AC97_CODEC
help
Say Y or M if you want to support any AC97 codec attached to
the PXA2xx AC97 interface.
endmenu
endif # SND_ARM
# ALSA soundcard-configuration
config SND_TIMER
tristate
depends on SND
config SND_PCM
tristate
select SND_TIMER
depends on SND
config SND_HWDEP
tristate
depends on SND
config SND_RAWMIDI
tristate
depends on SND
config SND_SEQUENCER
tristate "Sequencer support"
depends on SND
select SND_TIMER
help
Say Y or M to enable MIDI sequencer and router support. This
......@@ -44,11 +39,9 @@ config SND_SEQ_DUMMY
config SND_OSSEMUL
bool
depends on SND
config SND_MIXER_OSS
tristate "OSS Mixer API"
depends on SND
select SND_OSSEMUL
help
To enable OSS mixer API emulation (/dev/mixer*), say Y here
......@@ -61,7 +54,6 @@ config SND_MIXER_OSS
config SND_PCM_OSS
tristate "OSS PCM (digital audio) API"
depends on SND
select SND_OSSEMUL
select SND_PCM
help
......@@ -84,7 +76,7 @@ config SND_PCM_OSS_PLUGINS
config SND_SEQUENCER_OSS
bool "OSS Sequencer API"
depends on SND && SND_SEQUENCER
depends on SND_SEQUENCER
select SND_OSSEMUL
help
Say Y here to enable OSS sequencer emulation (both
......@@ -98,7 +90,7 @@ config SND_SEQUENCER_OSS
config SND_RTCTIMER
tristate "RTC Timer support"
depends on SND && RTC
depends on RTC
select SND_TIMER
help
Say Y here to enable RTC timer support for ALSA. ALSA uses
......@@ -123,7 +115,6 @@ config SND_SEQ_RTCTIMER_DEFAULT
config SND_DYNAMIC_MINORS
bool "Dynamic device file minor numbers"
depends on SND
help
If you say Y here, the minor numbers of ALSA device files in
/dev/snd/ are allocated dynamically. This allows you to have
......@@ -134,7 +125,6 @@ config SND_DYNAMIC_MINORS
config SND_SUPPORT_OLD_API
bool "Support old ALSA API"
depends on SND
default y
help
Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
......@@ -142,7 +132,7 @@ config SND_SUPPORT_OLD_API
config SND_VERBOSE_PROCFS
bool "Verbose procfs contents"
depends on SND && PROC_FS
depends on PROC_FS
default y
help
Say Y here to include code for verbose procfs contents (provides
......@@ -151,7 +141,6 @@ config SND_VERBOSE_PROCFS
config SND_VERBOSE_PRINTK
bool "Verbose printk"
depends on SND
help
Say Y here to enable verbose log messages. These messages
will help to identify source file and position containing
......@@ -161,7 +150,6 @@ config SND_VERBOSE_PRINTK
config SND_DEBUG
bool "Debug"
depends on SND
help
Say Y here to enable ALSA debug code.
......@@ -184,4 +172,3 @@ config SND_PCM_XRUN_DEBUG
config SND_VMASTER
bool
depends on SND
# ALSA generic drivers
config SND_MPU401_UART
tristate
select SND_RAWMIDI
menu "Generic devices"
depends on SND!=n
config SND_OPL3_LIB
tristate
select SND_TIMER
select SND_HWDEP
config SND_OPL4_LIB
tristate
select SND_TIMER
select SND_HWDEP
config SND_VX_LIB
tristate
select SND_HWDEP
select SND_PCM
config SND_AC97_CODEC
tristate
select SND_PCM
select AC97_BUS
select SND_VMASTER
menuconfig SND_DRIVERS
bool "Generic sound devices"
default y
help
Support for generic sound devices.
if SND_DRIVERS
config SND_PCSP
tristate "PC-Speaker support (READ HELP!)"
depends on PCSPKR_PLATFORM && X86_PC && HIGH_RES_TIMERS
depends on INPUT
depends on EXPERIMENTAL
depends on SND
select SND_PCM
help
If you don't have a sound card in your computer, you can include a
......@@ -35,34 +61,8 @@ config SND_PCSP
Say M if you don't.
Say Y only if you really know what you do.
config SND_MPU401_UART
tristate
select SND_RAWMIDI
config SND_OPL3_LIB
tristate
select SND_TIMER
select SND_HWDEP
config SND_OPL4_LIB
tristate
select SND_TIMER
select SND_HWDEP
config SND_VX_LIB
tristate
select SND_HWDEP
select SND_PCM
config SND_AC97_CODEC
tristate
select SND_PCM
select AC97_BUS
select SND_VMASTER
config SND_DUMMY
tristate "Dummy (/dev/null) soundcard"
depends on SND
select SND_PCM
help
Say Y here to include the dummy driver. This driver does
......@@ -91,7 +91,6 @@ config SND_VIRMIDI
config SND_MTPAV
tristate "MOTU MidiTimePiece AV multiport MIDI"
depends on SND
select SND_RAWMIDI
help
To use a MOTU MidiTimePiece AV multiport MIDI adapter
......@@ -103,7 +102,7 @@ config SND_MTPAV
config SND_MTS64
tristate "ESI Miditerminal 4140 driver"
depends on SND && PARPORT
depends on PARPORT
select SND_RAWMIDI
help
The ESI Miditerminal 4140 is a 4 In 4 Out MIDI Interface with
......@@ -116,7 +115,6 @@ config SND_MTS64
config SND_SERIAL_U16550
tristate "UART16550 serial MIDI driver"
depends on SND
select SND_RAWMIDI
help
To include support for MIDI serial port interfaces, say Y here
......@@ -132,7 +130,6 @@ config SND_SERIAL_U16550
config SND_MPU401
tristate "Generic MPU-401 UART driver"
depends on SND
select SND_MPU401_UART
help
Say Y here to include support for MIDI ports compatible with
......@@ -143,7 +140,7 @@ config SND_MPU401
config SND_PORTMAN2X4
tristate "Portman 2x4 driver"
depends on SND && PARPORT
depends on PARPORT
select SND_RAWMIDI
help
Say Y here to include support for Midiman Portman 2x4 parallel
......@@ -154,7 +151,7 @@ config SND_PORTMAN2X4
config SND_ML403_AC97CR
tristate "Xilinx ML403 AC97 Controller Reference"
depends on SND && XILINX_VIRTEX
depends on XILINX_VIRTEX
select SND_AC97_CODEC
help
Say Y here to include support for the
......@@ -164,4 +161,4 @@ config SND_ML403_AC97CR
To compile this driver as a module, choose M here: the module
will be called snd-ml403_ac97cr.
endmenu
endif # SND_DRIVERS
......@@ -21,12 +21,17 @@ config SND_SB16_DSP
select SND_PCM
select SND_SB_COMMON
menu "ISA devices"
depends on SND!=n && ISA && ISA_DMA_API
menuconfig SND_ISA
bool "ISA sound devices"
depends on ISA && ISA_DMA_API
default y
help
Support for sound devices connected via the ISA bus.
if SND_ISA
config SND_ADLIB
tristate "AdLib FM card"
depends on SND
select SND_OPL3_LIB
help
Say Y here to include support for AdLib FM cards.
......@@ -36,7 +41,7 @@ config SND_ADLIB
config SND_AD1816A
tristate "Analog Devices SoundPort AD1816A"
depends on SND && PNP && ISA
depends on PNP
select ISAPNP
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -50,7 +55,6 @@ config SND_AD1816A
config SND_AD1848
tristate "Generic AD1848/CS4248 driver"
depends on SND
select SND_AD1848_LIB
help
Say Y here to include support for AD1848 (Analog Devices) or
......@@ -64,7 +68,7 @@ config SND_AD1848
config SND_ALS100
tristate "Avance Logic ALS100/ALS120"
depends on SND && PNP && ISA
depends on PNP
select ISAPNP
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -78,7 +82,7 @@ config SND_ALS100
config SND_AZT2320
tristate "Aztech Systems AZT2320"
depends on SND && PNP && ISA
depends on PNP
select ISAPNP
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -92,7 +96,6 @@ config SND_AZT2320
config SND_CMI8330
tristate "C-Media CMI8330"
depends on SND
select SND_AD1848_LIB
select SND_SB16_DSP
help
......@@ -104,7 +107,6 @@ config SND_CMI8330
config SND_CS4231
tristate "Generic Cirrus Logic CS4231 driver"
depends on SND
select SND_MPU401_UART
select SND_CS4231_LIB
help
......@@ -116,7 +118,6 @@ config SND_CS4231
config SND_CS4232
tristate "Generic Cirrus Logic CS4232 driver"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_CS4231_LIB
......@@ -129,7 +130,6 @@ config SND_CS4232
config SND_CS4236
tristate "Generic Cirrus Logic CS4236+ driver"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_CS4231_LIB
......@@ -142,7 +142,7 @@ config SND_CS4236
config SND_DT019X
tristate "Diamond Technologies DT-019X, Avance Logic ALS-007"
depends on SND && PNP && ISA
depends on PNP
select ISAPNP
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -156,7 +156,7 @@ config SND_DT019X
config SND_ES968
tristate "Generic ESS ES968 driver"
depends on SND && PNP && ISA
depends on PNP
select ISAPNP
select SND_MPU401_UART
select SND_SB8_DSP
......@@ -168,7 +168,6 @@ config SND_ES968
config SND_ES1688
tristate "Generic ESS ES688/ES1688 driver"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_PCM
......@@ -181,7 +180,6 @@ config SND_ES1688
config SND_ES18XX
tristate "Generic ESS ES18xx driver"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_PCM
......@@ -193,7 +191,7 @@ config SND_ES18XX
config SND_SC6000
tristate "Gallant SC-6000, Audio Excel DSP 16"
depends on SND && HAS_IOPORT
depends on HAS_IOPORT
select SND_AD1848_LIB
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -209,7 +207,6 @@ config SND_GUS_SYNTH
config SND_GUSCLASSIC
tristate "Gravis UltraSound Classic"
depends on SND
select SND_RAWMIDI
select SND_PCM
select SND_GUS_SYNTH
......@@ -222,7 +219,6 @@ config SND_GUSCLASSIC
config SND_GUSEXTREME
tristate "Gravis UltraSound Extreme"
depends on SND
select SND_HWDEP
select SND_MPU401_UART
select SND_PCM
......@@ -236,7 +232,6 @@ config SND_GUSEXTREME
config SND_GUSMAX
tristate "Gravis UltraSound MAX"
depends on SND
select SND_RAWMIDI
select SND_CS4231_LIB
select SND_GUS_SYNTH
......@@ -249,7 +244,7 @@ config SND_GUSMAX
config SND_INTERWAVE
tristate "AMD InterWave, Gravis UltraSound PnP"
depends on SND && PNP && ISA
depends on PNP
select SND_RAWMIDI
select SND_CS4231_LIB
select SND_GUS_SYNTH
......@@ -263,7 +258,7 @@ config SND_INTERWAVE
config SND_INTERWAVE_STB
tristate "AMD InterWave + TEA6330T (UltraSound 32-Pro)"
depends on SND && PNP && ISA
depends on PNP
select SND_RAWMIDI
select SND_CS4231_LIB
select SND_GUS_SYNTH
......@@ -277,7 +272,6 @@ config SND_INTERWAVE_STB
config SND_OPL3SA2
tristate "Yamaha OPL3-SA2/SA3"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_CS4231_LIB
......@@ -290,7 +284,6 @@ config SND_OPL3SA2
config SND_OPTI92X_AD1848
tristate "OPTi 82C92x - AD1848"
depends on SND
select SND_OPL3_LIB
select SND_OPL4_LIB
select SND_MPU401_UART
......@@ -304,7 +297,6 @@ config SND_OPTI92X_AD1848
config SND_OPTI92X_CS4231
tristate "OPTi 82C92x - CS4231"
depends on SND
select SND_OPL3_LIB
select SND_OPL4_LIB
select SND_MPU401_UART
......@@ -318,7 +310,6 @@ config SND_OPTI92X_CS4231
config SND_OPTI93X
tristate "OPTi 82C93x"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_PCM
......@@ -331,7 +322,6 @@ config SND_OPTI93X
config SND_MIRO
tristate "Miro miroSOUND PCM1pro/PCM12/PCM20radio driver"
depends on SND
select SND_OPL4_LIB
select SND_CS4231_LIB
select SND_MPU401_UART
......@@ -345,7 +335,6 @@ config SND_MIRO
config SND_SB8
tristate "Sound Blaster 1.0/2.0/Pro (8-bit)"
depends on SND
select SND_OPL3_LIB
select SND_RAWMIDI
select SND_SB8_DSP
......@@ -358,7 +347,6 @@ config SND_SB8
config SND_SB16
tristate "Sound Blaster 16 (PnP)"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_SB16_DSP
......@@ -371,7 +359,6 @@ config SND_SB16
config SND_SBAWE
tristate "Sound Blaster AWE (32,64) (PnP)"
depends on SND
select SND_OPL3_LIB
select SND_MPU401_UART
select SND_SB16_DSP
......@@ -402,7 +389,6 @@ config SND_SB16_CSP_FIRMWARE_IN_KERNEL
config SND_SGALAXY
tristate "Aztech Sound Galaxy"
depends on SND
select SND_AD1848_LIB
help
Say Y here to include support for Aztech Sound Galaxy
......@@ -413,7 +399,6 @@ config SND_SGALAXY
config SND_SSCAPE
tristate "Ensoniq SoundScape PnP driver"
depends on SND
select SND_HWDEP
select SND_MPU401_UART
select SND_CS4231_LIB
......@@ -426,7 +411,6 @@ config SND_SSCAPE
config SND_WAVEFRONT
tristate "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)"
depends on SND
select FW_LOADER
select SND_OPL3_LIB
select SND_MPU401_UART
......@@ -448,4 +432,5 @@ config SND_WAVEFRONT_FIRMWARE_IN_KERNEL
you need to install the firmware files from the
alsa-firmware package.
endmenu
endif # SND_ISA
# ALSA MIPS drivers
menu "ALSA MIPS devices"
depends on SND!=n && MIPS
menuconfig SND_MIPS
bool "MIPS sound devices"
depends on MIPS
default y
help
Support for sound devices of MIPS architectures.
if SND_MIPS
config SND_AU1X00
tristate "Au1x00 AC97 Port Driver"
depends on (SOC_AU1000 || SOC_AU1100 || SOC_AU1500) && SND
depends on SOC_AU1000 || SOC_AU1100 || SOC_AU1500
select SND_PCM
select SND_AC97_CODEC
help
ALSA Sound driver for the Au1x00's AC97 port.
endmenu
endif # SND_MIPS
# ALSA PA-RISC drivers
menu "GSC devices"
depends on SND!=n && GSC
menuconfig SND_GSC
bool "GSC sound devices"
depends on GSC
default y
help
Support for GSC sound devices on PA-RISC architectures.
if SND_GSC
config SND_HARMONY
tristate "Harmony/Vivace sound chip"
depends on SND
select SND_PCM
help
Say 'Y' or 'M' to include support for the Harmony/Vivace sound
chip found in most GSC-based PA-RISC workstations. It's frequently
provided as part of the Lasi multi-function IC.
endmenu
endif # SND_GSC
This diff is collapsed.
# ALSA PCMCIA drivers
menu "PCMCIA devices"
depends on SND!=n && PCMCIA
menuconfig SND_PCMCIA
bool "PCMCIA sound devices"
depends on PCMCIA
default y
help
Support for sound devices connected via the PCMCIA bus.
if SND_PCMCIA && PCMCIA
config SND_VXPOCKET
tristate "Digigram VXpocket"
depends on SND && PCMCIA
select SND_VX_LIB
help
Say Y here to include support for Digigram VXpocket and
......@@ -16,7 +21,6 @@ config SND_VXPOCKET
config SND_PDAUDIOCF
tristate "Sound Core PDAudioCF"
depends on SND && PCMCIA
select SND_PCM
help
Say Y here to include support for Sound Core PDAudioCF
......@@ -25,4 +29,5 @@ config SND_PDAUDIOCF
To compile this driver as a module, choose M here: the module
will be called snd-pdaudiocf.
endmenu
endif # SND_PCMCIA
# ALSA PowerMac drivers
menu "ALSA PowerMac devices"
depends on SND!=n && PPC
comment "ALSA PowerMac requires I2C"
depends on SND && I2C=n
menuconfig SND_PPC
bool "PowerPC sound devices"
depends on PPC64 || PPC32
default y
help
Support for sound devices specific to PowerPC architectures.
comment "ALSA PowerMac requires INPUT"
depends on SND && INPUT=n
if SND_PPC
config SND_POWERMAC
tristate "PowerMac (AWACS, DACA, Burgundy, Tumbler, Keywest)"
depends on SND && I2C && INPUT && PPC_PMAC
depends on I2C && INPUT && PPC_PMAC
select SND_PCM
help
Say Y here to include support for the integrated sound device.
......@@ -32,14 +32,9 @@ config SND_POWERMAC_AUTO_DRC
Note that you can turn on/off DRC manually even without this
option.
endmenu
menu "ALSA PowerPC devices"
depends on SND!=n && ( PPC64 || PPC32 )
config SND_PS3
tristate "PS3 Audio support"
depends on SND && PS3_PS3AV