aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-05-25 05:50:33 -0400
committerJaroslav Kysela <perex@suse.cz>2007-07-20 05:11:21 -0400
commitdda369cf2022fb767b158c4ba2fe2f1ca1fba29c (patch)
tree4362876a369a535a346ab90dd82fc1533344464f
parent621887aee9c7b4b613c12b82b83df7e56877f303 (diff)
[ALSA] Fix SB-module dependency with PCI drivers
A few PCI drivers like ALS4000 and CS5530 require the SB16-codes. This patch fixes / improves the dependency between SB modules and PCI drivers. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r--sound/isa/Kconfig26
-rw-r--r--sound/isa/sb/Makefile15
-rw-r--r--sound/pci/Kconfig3
3 files changed, 29 insertions, 15 deletions
diff --git a/sound/isa/Kconfig b/sound/isa/Kconfig
index cf3803cd579c..b90ddabae2e9 100644
--- a/sound/isa/Kconfig
+++ b/sound/isa/Kconfig
@@ -11,6 +11,19 @@ config SND_CS4231_LIB
11 tristate 11 tristate
12 select SND_PCM 12 select SND_PCM
13 13
14config SND_SB_COMMON
15 tristate
16
17config SND_SB8_DSP
18 tristate
19 select SND_PCM
20 select SND_SB_COMMON
21
22config SND_SB16_DSP
23 tristate
24 select SND_PCM
25 select SND_SB_COMMON
26
14config SND_ADLIB 27config SND_ADLIB
15 tristate "AdLib FM card" 28 tristate "AdLib FM card"
16 depends on SND 29 depends on SND
@@ -55,7 +68,7 @@ config SND_ALS100
55 select ISAPNP 68 select ISAPNP
56 select SND_OPL3_LIB 69 select SND_OPL3_LIB
57 select SND_MPU401_UART 70 select SND_MPU401_UART
58 select SND_PCM 71 select SND_SB16_DSP
59 help 72 help
60 Say Y here to include support for soundcards based on Avance 73 Say Y here to include support for soundcards based on Avance
61 Logic ALS100, ALS110, ALS120 and ALS200 chips. 74 Logic ALS100, ALS110, ALS120 and ALS200 chips.
@@ -81,6 +94,7 @@ config SND_CMI8330
81 tristate "C-Media CMI8330" 94 tristate "C-Media CMI8330"
82 depends on SND 95 depends on SND
83 select SND_AD1848_LIB 96 select SND_AD1848_LIB
97 select SND_SB16_DSP
84 help 98 help
85 Say Y here to include support for soundcards based on the 99 Say Y here to include support for soundcards based on the
86 C-Media CMI8330 chip. 100 C-Media CMI8330 chip.
@@ -132,7 +146,7 @@ config SND_DT019X
132 select ISAPNP 146 select ISAPNP
133 select SND_OPL3_LIB 147 select SND_OPL3_LIB
134 select SND_MPU401_UART 148 select SND_MPU401_UART
135 select SND_PCM 149 select SND_SB16_DSP
136 help 150 help
137 Say Y here to include support for soundcards based on the 151 Say Y here to include support for soundcards based on the
138 Diamond Technologies DT-019X or Avance Logic ALS-007 chips. 152 Diamond Technologies DT-019X or Avance Logic ALS-007 chips.
@@ -145,7 +159,7 @@ config SND_ES968
145 depends on SND && PNP && ISA 159 depends on SND && PNP && ISA
146 select ISAPNP 160 select ISAPNP
147 select SND_MPU401_UART 161 select SND_MPU401_UART
148 select SND_PCM 162 select SND_SB8_DSP
149 help 163 help
150 Say Y here to include support for ESS AudioDrive ES968 chips. 164 Say Y here to include support for ESS AudioDrive ES968 chips.
151 165
@@ -321,7 +335,7 @@ config SND_SB8
321 depends on SND 335 depends on SND
322 select SND_OPL3_LIB 336 select SND_OPL3_LIB
323 select SND_RAWMIDI 337 select SND_RAWMIDI
324 select SND_PCM 338 select SND_SB8_DSP
325 help 339 help
326 Say Y here to include support for Creative Sound Blaster 1.0/ 340 Say Y here to include support for Creative Sound Blaster 1.0/
327 2.0/Pro (8-bit) or 100% compatible soundcards. 341 2.0/Pro (8-bit) or 100% compatible soundcards.
@@ -334,7 +348,7 @@ config SND_SB16
334 depends on SND 348 depends on SND
335 select SND_OPL3_LIB 349 select SND_OPL3_LIB
336 select SND_MPU401_UART 350 select SND_MPU401_UART
337 select SND_PCM 351 select SND_SB16_DSP
338 help 352 help
339 Say Y here to include support for Sound Blaster 16 soundcards 353 Say Y here to include support for Sound Blaster 16 soundcards
340 (including the Plug and Play version). 354 (including the Plug and Play version).
@@ -347,7 +361,7 @@ config SND_SBAWE
347 depends on SND 361 depends on SND
348 select SND_OPL3_LIB 362 select SND_OPL3_LIB
349 select SND_MPU401_UART 363 select SND_MPU401_UART
350 select SND_PCM 364 select SND_SB16_DSP
351 help 365 help
352 Say Y here to include support for Sound Blaster AWE soundcards 366 Say Y here to include support for Sound Blaster AWE soundcards
353 (including the Plug and Play version). 367 (including the Plug and Play version).
diff --git a/sound/isa/sb/Makefile b/sound/isa/sb/Makefile
index fd9d9c5726fc..556e66928029 100644
--- a/sound/isa/sb/Makefile
+++ b/sound/isa/sb/Makefile
@@ -22,14 +22,13 @@ snd-es968-objs := es968.o
22sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) 22sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))
23 23
24# Toplevel Module Dependency 24# Toplevel Module Dependency
25obj-$(CONFIG_SND_ALS100) += snd-sb16-dsp.o snd-sb-common.o 25obj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o
26obj-$(CONFIG_SND_CMI8330) += snd-sb16-dsp.o snd-sb-common.o 26obj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o
27obj-$(CONFIG_SND_DT019X) += snd-sb16-dsp.o snd-sb-common.o 27obj-$(CONFIG_SND_SB8_DSP) += snd-sb8-dsp.o
28obj-$(CONFIG_SND_SB8) += snd-sb8.o snd-sb8-dsp.o snd-sb-common.o 28obj-$(CONFIG_SND_SB8) += snd-sb8.o
29obj-$(CONFIG_SND_SB16) += snd-sb16.o snd-sb16-dsp.o snd-sb-common.o 29obj-$(CONFIG_SND_SB16) += snd-sb16.o
30obj-$(CONFIG_SND_SBAWE) += snd-sbawe.o snd-sb16-dsp.o snd-sb-common.o 30obj-$(CONFIG_SND_SBAWE) += snd-sbawe.o
31obj-$(CONFIG_SND_ES968) += snd-es968.o snd-sb8-dsp.o snd-sb-common.o 31obj-$(CONFIG_SND_ES968) += snd-es968.o
32obj-$(CONFIG_SND_ALS4000) += snd-sb-common.o
33ifeq ($(CONFIG_SND_SB16_CSP),y) 32ifeq ($(CONFIG_SND_SB16_CSP),y)
34 obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o 33 obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o
35 obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o 34 obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o
diff --git a/sound/pci/Kconfig b/sound/pci/Kconfig
index fa17786e1587..c6b44102aa5b 100644
--- a/sound/pci/Kconfig
+++ b/sound/pci/Kconfig
@@ -33,6 +33,7 @@ config SND_ALS4000
33 select SND_OPL3_LIB 33 select SND_OPL3_LIB
34 select SND_MPU401_UART 34 select SND_MPU401_UART
35 select SND_PCM 35 select SND_PCM
36 select SND_SB_COMMON
36 help 37 help
37 Say Y here to include support for soundcards based on Avance Logic 38 Say Y here to include support for soundcards based on Avance Logic
38 ALS4000 chips. 39 ALS4000 chips.
@@ -218,7 +219,7 @@ config SND_CS46XX_NEW_DSP
218config SND_CS5530 219config SND_CS5530
219 tristate "CS5530 Audio" 220 tristate "CS5530 Audio"
220 depends on SND && ISA_DMA_API 221 depends on SND && ISA_DMA_API
221 select SND_SB16 222 select SND_SB16_DSP
222 help 223 help
223 Say Y here to include support for audio on Cyrix/NatSemi CS5530 chips. 224 Say Y here to include support for audio on Cyrix/NatSemi CS5530 chips.
224 225