Skip to content

Commit

Permalink
sound: Convert to menuconfig
Browse files Browse the repository at this point in the history
Convert menu in sound Kconfig files to menuconfig and if.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai committed May 27, 2008
1 parent 06b5fb9 commit 89fe511
Show file tree
Hide file tree
Showing 26 changed files with 203 additions and 265 deletions.
34 changes: 14 additions & 20 deletions sound/Kconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# 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
Expand All @@ -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"
Expand All @@ -58,9 +56,7 @@ source "sound/aoa/Kconfig"

source "sound/arm/Kconfig"

if SPI
source "sound/spi/Kconfig"
endif

source "sound/mips/Kconfig"

Expand All @@ -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
Expand All @@ -105,4 +99,4 @@ config AC97_BUS
sound although they're sharing the AC97 bus. Concerned drivers
should "select" this.

endmenu
endif # SOUND
11 changes: 5 additions & 6 deletions sound/aoa/Kconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
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
4 changes: 0 additions & 4 deletions sound/aoa/codecs/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config SND_AOA_ONYX
tristate "support Onyx chip"
depends on SND_AOA
select I2C
select I2C_POWERMAC
---help---
Expand All @@ -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,
Expand All @@ -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---
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion sound/aoa/fabrics/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config SND_AOA_FABRIC_LAYOUT
tristate "layout-id fabric"
depends on SND_AOA
select SND_AOA_SOUNDBUS
select SND_AOA_SOUNDBUS_I2S
---help---
Expand Down
1 change: 0 additions & 1 deletion sound/aoa/soundbus/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config SND_AOA_SOUNDBUS
tristate "Apple Soundbus support"
depends on SOUND
select SND_PCM
---help---
This option enables the generic driver for the soundbus
Expand Down
21 changes: 15 additions & 6 deletions sound/arm/Kconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
# 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
Expand All @@ -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

Expand All @@ -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

19 changes: 3 additions & 16 deletions sound/core/Kconfig
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
# 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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -134,15 +125,14 @@ 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
or older).

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
Expand All @@ -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
Expand All @@ -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.

Expand All @@ -184,4 +172,3 @@ config SND_PCM_XRUN_DEBUG

config SND_VMASTER
bool
depends on SND
Loading

0 comments on commit 89fe511

Please sign in to comment.