Skip to content

Commit da82a20

Browse files
rddunlapgregkh
authored andcommitted
ALSA: ISA: not for M68K
[ Upstream commit 3c05f14 ] On m68k, compiling drivers under SND_ISA causes build errors: ../sound/core/isadma.c: In function 'snd_dma_program': ../sound/core/isadma.c:33:17: error: implicit declaration of function 'claim_dma_lock' [-Werror=implicit-function-declaration] 33 | flags = claim_dma_lock(); | ^~~~~~~~~~~~~~ ../sound/core/isadma.c:41:9: error: implicit declaration of function 'release_dma_lock' [-Werror=implicit-function-declaration] 41 | release_dma_lock(flags); | ^~~~~~~~~~~~~~~~ ../sound/isa/sb/sb16_main.c: In function 'snd_sb16_playback_prepare': ../sound/isa/sb/sb16_main.c:253:72: error: 'DMA_AUTOINIT' undeclared (first use in this function) 253 | snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_WRITE | DMA_AUTOINIT); | ^~~~~~~~~~~~ ../sound/isa/sb/sb16_main.c:253:72: note: each undeclared identifier is reported only once for each function it appears in ../sound/isa/sb/sb16_main.c: In function 'snd_sb16_capture_prepare': ../sound/isa/sb/sb16_main.c:322:71: error: 'DMA_AUTOINIT' undeclared (first use in this function) 322 | snd_dma_program(dma, runtime->dma_addr, size, DMA_MODE_READ | DMA_AUTOINIT); | ^~~~~~~~~~~~ and more... Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: alsa-devel@alsa-project.org Cc: linux-m68k@lists.linux-m68k.org Cc: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/20211016062602.3588-1-rdunlap@infradead.org Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c788ac4 commit da82a20

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎sound/core/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ ifneq ($(CONFIG_SND_PROC_FS),)
99
snd-y += info.o
1010
snd-$(CONFIG_SND_OSSEMUL) += info_oss.o
1111
endif
12+
ifneq ($(CONFIG_M68K),y)
1213
snd-$(CONFIG_ISA_DMA_API) += isadma.o
14+
endif
1315
snd-$(CONFIG_SND_OSSEMUL) += sound_oss.o
1416
snd-$(CONFIG_SND_VMASTER) += vmaster.o
1517
snd-$(CONFIG_SND_JACK) += ctljack.o jack.o

‎sound/isa/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ config SND_SB16_DSP
2222
menuconfig SND_ISA
2323
bool "ISA sound devices"
2424
depends on ISA || COMPILE_TEST
25-
depends on ISA_DMA_API
25+
depends on ISA_DMA_API && !M68K
2626
default y
2727
help
2828
Support for sound devices connected via the ISA bus.

‎sound/pci/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ config SND_CS46XX_NEW_DSP
279279
config SND_CS5530
280280
tristate "CS5530 Audio"
281281
depends on ISA_DMA_API && (X86_32 || COMPILE_TEST)
282+
depends on !M68K
282283
select SND_SB16_DSP
283284
help
284285
Say Y here to include support for audio on Cyrix/NatSemi CS5530 chips.

0 commit comments

Comments
 (0)