diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-10 01:26:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-10 01:26:48 -0400 |
commit | 4ef279205a1ca4c37bf80811dd9d0f65c854fbf7 (patch) | |
tree | 69b16d8f4c43ab66417e9b14abbddaa82d8a0222 /sound/core | |
parent | 1282c824cc4ad5b43fc1813e7ea564c0d6f0d046 (diff) | |
parent | 0528c7494e67c30329d086df141d2dd691f01556 (diff) |
Merge branch 'topic/seq-kconfig-cleanup' into for-linus
* topic/seq-kconfig-cleanup:
ALSA: clean up the logic for building sequencer modules
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/Kconfig | 2 | ||||
-rw-r--r-- | sound/core/seq/Kconfig | 16 | ||||
-rw-r--r-- | sound/core/seq/Makefile | 18 |
3 files changed, 23 insertions, 13 deletions
diff --git a/sound/core/Kconfig b/sound/core/Kconfig index 7bbdda041a99..6061fb5f4e1c 100644 --- a/sound/core/Kconfig +++ b/sound/core/Kconfig | |||
@@ -205,3 +205,5 @@ config SND_PCM_XRUN_DEBUG | |||
205 | 205 | ||
206 | config SND_VMASTER | 206 | config SND_VMASTER |
207 | bool | 207 | bool |
208 | |||
209 | source "sound/core/seq/Kconfig" | ||
diff --git a/sound/core/seq/Kconfig b/sound/core/seq/Kconfig new file mode 100644 index 000000000000..b851fd890a89 --- /dev/null +++ b/sound/core/seq/Kconfig | |||
@@ -0,0 +1,16 @@ | |||
1 | # define SND_XXX_SEQ to min(SND_SEQUENCER,SND_XXX) | ||
2 | |||
3 | config SND_RAWMIDI_SEQ | ||
4 | def_tristate SND_SEQUENCER && SND_RAWMIDI | ||
5 | |||
6 | config SND_OPL3_LIB_SEQ | ||
7 | def_tristate SND_SEQUENCER && SND_OPL3_LIB | ||
8 | |||
9 | config SND_OPL4_LIB_SEQ | ||
10 | def_tristate SND_SEQUENCER && SND_OPL4_LIB | ||
11 | |||
12 | config SND_SBAWE_SEQ | ||
13 | def_tristate SND_SEQUENCER && SND_SBAWE | ||
14 | |||
15 | config SND_EMU10K1_SEQ | ||
16 | def_tristate SND_SEQUENCER && SND_EMU10K1 | ||
diff --git a/sound/core/seq/Makefile b/sound/core/seq/Makefile index 069593717fba..1bcb360330e5 100644 --- a/sound/core/seq/Makefile +++ b/sound/core/seq/Makefile | |||
@@ -17,14 +17,6 @@ snd-seq-midi-event-objs := seq_midi_event.o | |||
17 | snd-seq-dummy-objs := seq_dummy.o | 17 | snd-seq-dummy-objs := seq_dummy.o |
18 | snd-seq-virmidi-objs := seq_virmidi.o | 18 | snd-seq-virmidi-objs := seq_virmidi.o |
19 | 19 | ||
20 | # | ||
21 | # this function returns: | ||
22 | # "m" - CONFIG_SND_SEQUENCER is m | ||
23 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
24 | # otherwise parameter #1 value | ||
25 | # | ||
26 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
27 | |||
28 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o | 20 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq.o snd-seq-device.o |
29 | ifeq ($(CONFIG_SND_SEQUENCER_OSS),y) | 21 | ifeq ($(CONFIG_SND_SEQUENCER_OSS),y) |
30 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o | 22 | obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o |
@@ -33,8 +25,8 @@ obj-$(CONFIG_SND_SEQ_DUMMY) += snd-seq-dummy.o | |||
33 | 25 | ||
34 | # Toplevel Module Dependency | 26 | # Toplevel Module Dependency |
35 | obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o | 27 | obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o |
36 | obj-$(call sequencer,$(CONFIG_SND_RAWMIDI)) += snd-seq-midi.o snd-seq-midi-event.o | 28 | obj-$(CONFIG_SND_RAWMIDI_SEQ) += snd-seq-midi.o snd-seq-midi-event.o |
37 | obj-$(call sequencer,$(CONFIG_SND_OPL3_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o | 29 | obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o |
38 | obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-seq-midi-event.o snd-seq-midi-emul.o | 30 | obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o |
39 | obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-seq-midi-emul.o snd-seq-virmidi.o | 31 | obj-$(CONFIG_SND_SBAWE_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o |
40 | obj-$(call sequencer,$(CONFIG_SND_EMU10K1)) += snd-seq-midi-emul.o snd-seq-virmidi.o | 32 | obj-$(CONFIG_SND_EMU10K1_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o |