Skip to content

Commit 89fe511

Browse files
committed
sound: Convert to menuconfig
Convert menu in sound Kconfig files to menuconfig and if. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 06b5fb9 commit 89fe511

26 files changed

Lines changed: 203 additions & 265 deletions

File tree

‎sound/Kconfig‎

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# sound/Config.in
22
#
33

4-
menu "Sound"
5-
depends on HAS_IOMEM
6-
7-
config SOUND
4+
menuconfig SOUND
85
tristate "Sound card support"
6+
depends on HAS_IOMEM
97
help
108
If you have a sound card in your computer, i.e. if it can say more
119
than an occasional beep, say Y. Be sure to have all the information
@@ -28,22 +26,22 @@ config SOUND
2826
and read <file:Documentation/sound/oss/README.modules>; the module
2927
will be called soundcore.
3028

29+
if SOUND
30+
3131
source "sound/oss/dmasound/Kconfig"
3232

3333
if !M68K
3434

35-
menu "Advanced Linux Sound Architecture"
36-
depends on SOUND!=n
37-
38-
config SND
35+
menuconfig SND
3936
tristate "Advanced Linux Sound Architecture"
40-
depends on SOUND
4137
help
4238
Say 'Y' or 'M' to enable ALSA (Advanced Linux Sound Architecture),
4339
the new base sound system.
4440

4541
For more information, see <http://www.alsa-project.org/>
4642

43+
if SND
44+
4745
source "sound/core/Kconfig"
4846

4947
source "sound/drivers/Kconfig"
@@ -58,9 +56,7 @@ source "sound/aoa/Kconfig"
5856

5957
source "sound/arm/Kconfig"
6058

61-
if SPI
6259
source "sound/spi/Kconfig"
63-
endif
6460

6561
source "sound/mips/Kconfig"
6662

@@ -80,22 +76,20 @@ source "sound/parisc/Kconfig"
8076

8177
source "sound/soc/Kconfig"
8278

83-
endmenu
79+
endif # SND
8480

85-
menu "Open Sound System"
86-
depends on SOUND!=n
87-
88-
config SOUND_PRIME
81+
menuconfig SOUND_PRIME
8982
tristate "Open Sound System (DEPRECATED)"
90-
depends on SOUND
9183
help
9284
Say 'Y' or 'M' to enable Open Sound System drivers.
9385

86+
if SOUND_PRIME
87+
9488
source "sound/oss/Kconfig"
9589

96-
endmenu
90+
endif # SOUND_PRIME
9791

98-
endif
92+
endif # !M68K
9993

10094
config AC97_BUS
10195
tristate
@@ -105,4 +99,4 @@ config AC97_BUS
10599
sound although they're sharing the AC97 bus. Concerned drivers
106100
should "select" this.
107101

108-
endmenu
102+
endif # SOUND

‎sound/aoa/Kconfig‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1-
menu "Apple Onboard Audio driver"
2-
depends on SND!=n && PPC_PMAC
3-
4-
config SND_AOA
1+
menuconfig SND_AOA
52
tristate "Apple Onboard Audio driver"
6-
depends on SND
3+
depends on PPC_PMAC
74
select SND_PCM
85
---help---
96
This option enables the new driver for the various
107
Apple Onboard Audio components.
118

9+
if SND_AOA
10+
1211
source "sound/aoa/fabrics/Kconfig"
1312

1413
source "sound/aoa/codecs/Kconfig"
1514

1615
source "sound/aoa/soundbus/Kconfig"
1716

18-
endmenu
17+
endif # SND_AOA

‎sound/aoa/codecs/Kconfig‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config SND_AOA_ONYX
22
tristate "support Onyx chip"
3-
depends on SND_AOA
43
select I2C
54
select I2C_POWERMAC
65
---help---
@@ -10,7 +9,6 @@ config SND_AOA_ONYX
109

1110
#config SND_AOA_TOPAZ
1211
# tristate "support Topaz chips"
13-
# depends on SND_AOA
1412
# ---help---
1513
# This option enables support for the Topaz (CS84xx)
1614
# codec chips found in the latest Apple machines,
@@ -19,7 +17,6 @@ config SND_AOA_ONYX
1917

2018
config SND_AOA_TAS
2119
tristate "support TAS chips"
22-
depends on SND_AOA
2320
select I2C
2421
select I2C_POWERMAC
2522
---help---
@@ -29,7 +26,6 @@ config SND_AOA_TAS
2926

3027
config SND_AOA_TOONIE
3128
tristate "support Toonie chip"
32-
depends on SND_AOA
3329
---help---
3430
This option enables support for the toonie codec
3531
found in the Mac Mini. If you have a Mac Mini and

‎sound/aoa/fabrics/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config SND_AOA_FABRIC_LAYOUT
22
tristate "layout-id fabric"
3-
depends on SND_AOA
43
select SND_AOA_SOUNDBUS
54
select SND_AOA_SOUNDBUS_I2S
65
---help---

‎sound/aoa/soundbus/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
config SND_AOA_SOUNDBUS
22
tristate "Apple Soundbus support"
3-
depends on SOUND
43
select SND_PCM
54
---help---
65
This option enables the generic driver for the soundbus

‎sound/arm/Kconfig‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# ALSA ARM drivers
22

3-
menu "ALSA ARM devices"
4-
depends on SND!=n && ARM
3+
menuconfig SND_ARM
4+
bool "ARM sound devices"
5+
depends on ARM
6+
default y
7+
help
8+
Support for sound devices specific to ARM architectures.
9+
Drivers that are implemented on ASoC can be found in
10+
"ALSA for SoC audio support" section.
11+
12+
if SND_ARM
513

614
config SND_SA11XX_UDA1341
715
tristate "SA11xx UDA1341TS driver (iPaq H3600)"
8-
depends on ARCH_SA1100 && SND && L3
16+
depends on ARCH_SA1100 && L3
917
select SND_PCM
1018
help
1119
Say Y here if you have a Compaq iPaq H3x00 handheld computer
@@ -16,7 +24,7 @@ config SND_SA11XX_UDA1341
1624

1725
config SND_ARMAACI
1826
tristate "ARM PrimeCell PL041 AC Link support"
19-
depends on SND && ARM_AMBA
27+
depends on ARM_AMBA
2028
select SND_PCM
2129
select SND_AC97_CODEC
2230

@@ -26,11 +34,12 @@ config SND_PXA2XX_PCM
2634

2735
config SND_PXA2XX_AC97
2836
tristate "AC97 driver for the Intel PXA2xx chip"
29-
depends on ARCH_PXA && SND
37+
depends on ARCH_PXA
3038
select SND_PXA2XX_PCM
3139
select SND_AC97_CODEC
3240
help
3341
Say Y or M if you want to support any AC97 codec attached to
3442
the PXA2xx AC97 interface.
3543

36-
endmenu
44+
endif # SND_ARM
45+

‎sound/core/Kconfig‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
11
# ALSA soundcard-configuration
22
config SND_TIMER
33
tristate
4-
depends on SND
54

65
config SND_PCM
76
tristate
87
select SND_TIMER
9-
depends on SND
108

119
config SND_HWDEP
1210
tristate
13-
depends on SND
1411

1512
config SND_RAWMIDI
1613
tristate
17-
depends on SND
1814

1915
config SND_SEQUENCER
2016
tristate "Sequencer support"
21-
depends on SND
2217
select SND_TIMER
2318
help
2419
Say Y or M to enable MIDI sequencer and router support. This
@@ -44,11 +39,9 @@ config SND_SEQ_DUMMY
4439

4540
config SND_OSSEMUL
4641
bool
47-
depends on SND
4842

4943
config SND_MIXER_OSS
5044
tristate "OSS Mixer API"
51-
depends on SND
5245
select SND_OSSEMUL
5346
help
5447
To enable OSS mixer API emulation (/dev/mixer*), say Y here
@@ -61,7 +54,6 @@ config SND_MIXER_OSS
6154

6255
config SND_PCM_OSS
6356
tristate "OSS PCM (digital audio) API"
64-
depends on SND
6557
select SND_OSSEMUL
6658
select SND_PCM
6759
help
@@ -84,7 +76,7 @@ config SND_PCM_OSS_PLUGINS
8476

8577
config SND_SEQUENCER_OSS
8678
bool "OSS Sequencer API"
87-
depends on SND && SND_SEQUENCER
79+
depends on SND_SEQUENCER
8880
select SND_OSSEMUL
8981
help
9082
Say Y here to enable OSS sequencer emulation (both
@@ -98,7 +90,7 @@ config SND_SEQUENCER_OSS
9890

9991
config SND_RTCTIMER
10092
tristate "RTC Timer support"
101-
depends on SND && RTC
93+
depends on RTC
10294
select SND_TIMER
10395
help
10496
Say Y here to enable RTC timer support for ALSA. ALSA uses
@@ -123,7 +115,6 @@ config SND_SEQ_RTCTIMER_DEFAULT
123115

124116
config SND_DYNAMIC_MINORS
125117
bool "Dynamic device file minor numbers"
126-
depends on SND
127118
help
128119
If you say Y here, the minor numbers of ALSA device files in
129120
/dev/snd/ are allocated dynamically. This allows you to have
@@ -134,15 +125,14 @@ config SND_DYNAMIC_MINORS
134125

135126
config SND_SUPPORT_OLD_API
136127
bool "Support old ALSA API"
137-
depends on SND
138128
default y
139129
help
140130
Say Y here to support the obsolete ALSA PCM API (ver.0.9.0 rc3
141131
or older).
142132

143133
config SND_VERBOSE_PROCFS
144134
bool "Verbose procfs contents"
145-
depends on SND && PROC_FS
135+
depends on PROC_FS
146136
default y
147137
help
148138
Say Y here to include code for verbose procfs contents (provides
@@ -151,7 +141,6 @@ config SND_VERBOSE_PROCFS
151141

152142
config SND_VERBOSE_PRINTK
153143
bool "Verbose printk"
154-
depends on SND
155144
help
156145
Say Y here to enable verbose log messages. These messages
157146
will help to identify source file and position containing
@@ -161,7 +150,6 @@ config SND_VERBOSE_PRINTK
161150

162151
config SND_DEBUG
163152
bool "Debug"
164-
depends on SND
165153
help
166154
Say Y here to enable ALSA debug code.
167155

@@ -184,4 +172,3 @@ config SND_PCM_XRUN_DEBUG
184172

185173
config SND_VMASTER
186174
bool
187-
depends on SND

0 commit comments

Comments
 (0)