Skip to content

Commit f03293d

Browse files
committed
ALSA: Fix forgotten dependency fix for tristate OSS sequencer kconfig
In the commit 3d774d5 ("ALSA: seq: Allow the tristate build of OSS emulation") we changed CONFIG_SND_SEQUENCER_OSS to tristate, but a couple of places were forgotten, namely, opl3 and emux Makefile. These contain the line like snd-opl3-synth-$(CONFIG_SND_SEQUENCER_OSS) += opl3_oss.o and this doesn't work any longer as expected because snd-opl3-synth can be built-in while CONFIG_SND_SEQUENCER_OSS=m. This patch fixes these places to build properly for the new kconfig dependency. In the end, we had to use ifneq() to satisfy the requirement. It's a bit ugly, but lesser evil. Fixes: 3d774d5 ("ALSA: seq: Allow the tristate build of OSS emulation") Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent b602aa8 commit f03293d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎sound/drivers/opl3/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
snd-opl3-lib-objs := opl3_lib.o opl3_synth.o
77
snd-opl3-synth-y := opl3_seq.o opl3_midi.o opl3_drums.o
8-
snd-opl3-synth-$(CONFIG_SND_SEQUENCER_OSS) += opl3_oss.o
8+
ifneq ($(CONFIG_SND_SEQUENCER_OSS),)
9+
snd-opl3-synth-y += opl3_oss.o
10+
endif
911

1012
obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o
1113
obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o

‎sound/synth/emux/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \
77
emux_effect.o emux_hwdep.o soundfont.o
88
snd-emux-synth-$(CONFIG_SND_PROC_FS) += emux_proc.o
9-
snd-emux-synth-$(CONFIG_SND_SEQUENCER_OSS) += emux_oss.o
9+
ifneq ($(CONFIG_SND_SEQUENCER_OSS),)
10+
snd-emux-synth-y += emux_oss.o
11+
endif
1012

1113
obj-$(CONFIG_SND_SYNTH_EMUX) += snd-emux-synth.o

0 commit comments

Comments
 (0)