summaryrefslogtreecommitdiff
path: root/sound/drivers/opl4
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2009-05-26 19:07:52 +0400
committerTakashi Iwai <tiwai@suse.de>2009-05-29 13:49:42 +0400
commit0528c7494e67c30329d086df141d2dd691f01556 (patch)
tree798fcad072aa75ec3447049aaf79161e5beb6faa /sound/drivers/opl4
parentcd86a536c81e9300d984327517548ca0652eebf9 (diff)
downloadlinux-0528c7494e67c30329d086df141d2dd691f01556.tar.xz
ALSA: clean up the logic for building sequencer modules
Instead of mangling the CONFIG_* variables in the makefiles over and over, set a few helper variables in Kconfig. Signed-off-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers/opl4')
-rw-r--r--sound/drivers/opl4/Makefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/drivers/opl4/Makefile b/sound/drivers/opl4/Makefile
index d178b39ffa60..b94009b0b19f 100644
--- a/sound/drivers/opl4/Makefile
+++ b/sound/drivers/opl4/Makefile
@@ -6,13 +6,5 @@
snd-opl4-lib-objs := opl4_lib.o opl4_mixer.o opl4_proc.o
snd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o
-#
-# this function returns:
-# "m" - CONFIG_SND_SEQUENCER is m
-# <empty string> - CONFIG_SND_SEQUENCER is undefined
-# otherwise parameter #1 value
-#
-sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))
-
obj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o
-obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-opl4-synth.o
+obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-opl4-synth.o