提交 276bd31c 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] Kconfig fix (ISA_DMA_API and sound/*)

fixed kconfig dependencies on ISA_DMA_API for parts of sound/* that rely
on it.
Signed-off-by: NAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e9bcb173
...@@ -360,11 +360,13 @@ int snd_device_free_all(snd_card_t *card, snd_device_cmd_t cmd); ...@@ -360,11 +360,13 @@ int snd_device_free_all(snd_card_t *card, snd_device_cmd_t cmd);
/* isadma.c */ /* isadma.c */
#ifdef CONFIG_ISA_DMA_API
#define DMA_MODE_NO_ENABLE 0x0100 #define DMA_MODE_NO_ENABLE 0x0100
void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode); void snd_dma_program(unsigned long dma, unsigned long addr, unsigned int size, unsigned short mode);
void snd_dma_disable(unsigned long dma); void snd_dma_disable(unsigned long dma);
unsigned int snd_dma_pointer(unsigned long dma, unsigned int size); unsigned int snd_dma_pointer(unsigned long dma, unsigned int size);
#endif
/* misc.c */ /* misc.c */
......
...@@ -77,7 +77,7 @@ source "sound/parisc/Kconfig" ...@@ -77,7 +77,7 @@ source "sound/parisc/Kconfig"
endmenu endmenu
menu "Open Sound System" menu "Open Sound System"
depends on SOUND!=n && (BROKEN || (!SPARC32 && !SPARC64)) depends on SOUND!=n
config SOUND_PRIME config SOUND_PRIME
tristate "Open Sound System (DEPRECATED)" tristate "Open Sound System (DEPRECATED)"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
snd-objs := sound.o init.o memory.o info.o control.o misc.o \ snd-objs := sound.o init.o memory.o info.o control.o misc.o \
device.o wrappers.o device.o wrappers.o
ifeq ($(CONFIG_ISA),y) ifeq ($(CONFIG_ISA_DMA_API),y)
snd-objs += isadma.o snd-objs += isadma.o
endif endif
ifeq ($(CONFIG_SND_OSSEMUL),y) ifeq ($(CONFIG_SND_OSSEMUL),y)
......
...@@ -432,7 +432,7 @@ EXPORT_SYMBOL(snd_device_new); ...@@ -432,7 +432,7 @@ EXPORT_SYMBOL(snd_device_new);
EXPORT_SYMBOL(snd_device_register); EXPORT_SYMBOL(snd_device_register);
EXPORT_SYMBOL(snd_device_free); EXPORT_SYMBOL(snd_device_free);
/* isadma.c */ /* isadma.c */
#ifdef CONFIG_ISA #ifdef CONFIG_ISA_DMA_API
EXPORT_SYMBOL(snd_dma_program); EXPORT_SYMBOL(snd_dma_program);
EXPORT_SYMBOL(snd_dma_disable); EXPORT_SYMBOL(snd_dma_disable);
EXPORT_SYMBOL(snd_dma_pointer); EXPORT_SYMBOL(snd_dma_pointer);
......
# ALSA ISA drivers # ALSA ISA drivers
menu "ISA devices" menu "ISA devices"
depends on SND!=n && ISA depends on SND!=n && ISA && ISA_DMA_API
config SND_AD1848_LIB config SND_AD1848_LIB
tristate tristate
......
...@@ -80,7 +80,7 @@ config SOUND_EMU10K1 ...@@ -80,7 +80,7 @@ config SOUND_EMU10K1
config MIDI_EMU10K1 config MIDI_EMU10K1
bool "Creative SBLive! MIDI (EXPERIMENTAL)" bool "Creative SBLive! MIDI (EXPERIMENTAL)"
depends on SOUND_EMU10K1 && EXPERIMENTAL depends on SOUND_EMU10K1 && EXPERIMENTAL && ISA_DMA_API
help help
Say Y if you want to be able to use the OSS /dev/sequencer Say Y if you want to be able to use the OSS /dev/sequencer
interface. This code is still experimental. interface. This code is still experimental.
...@@ -503,7 +503,7 @@ config SOUND_VIA82CXXX ...@@ -503,7 +503,7 @@ config SOUND_VIA82CXXX
config MIDI_VIA82CXXX config MIDI_VIA82CXXX
bool "VIA 82C686 MIDI" bool "VIA 82C686 MIDI"
depends on SOUND_VIA82CXXX depends on SOUND_VIA82CXXX && ISA_DMA_API
help help
Answer Y to use the MIDI interface of the Via686. You may need to Answer Y to use the MIDI interface of the Via686. You may need to
enable this in the BIOS before it will work. This is for connection enable this in the BIOS before it will work. This is for connection
...@@ -512,7 +512,7 @@ config MIDI_VIA82CXXX ...@@ -512,7 +512,7 @@ config MIDI_VIA82CXXX
config SOUND_OSS config SOUND_OSS
tristate "OSS sound modules" tristate "OSS sound modules"
depends on SOUND_PRIME depends on SOUND_PRIME && ISA_DMA_API
help help
OSS is the Open Sound System suite of sound card drivers. They make OSS is the Open Sound System suite of sound card drivers. They make
sound programming easier since they provide a common API. Say Y or sound programming easier since they provide a common API. Say Y or
......
...@@ -314,7 +314,7 @@ config SND_YMFPCI ...@@ -314,7 +314,7 @@ config SND_YMFPCI
config SND_ALS4000 config SND_ALS4000
tristate "Avance Logic ALS4000" tristate "Avance Logic ALS4000"
depends on SND depends on SND && ISA_DMA_API
select SND_OPL3_LIB select SND_OPL3_LIB
select SND_MPU401_UART select SND_MPU401_UART
select SND_PCM select SND_PCM
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册