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 | |
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')
-rw-r--r-- | sound/core/Kconfig | 2 | ||||
-rw-r--r-- | sound/core/seq/Kconfig | 16 | ||||
-rw-r--r-- | sound/core/seq/Makefile | 18 | ||||
-rw-r--r-- | sound/drivers/opl3/Makefile | 10 | ||||
-rw-r--r-- | sound/drivers/opl4/Makefile | 10 | ||||
-rw-r--r-- | sound/isa/sb/Makefile | 10 | ||||
-rw-r--r-- | sound/pci/emu10k1/Makefile | 10 | ||||
-rw-r--r-- | sound/synth/Makefile | 12 | ||||
-rw-r--r-- | sound/synth/emux/Makefile | 12 |
9 files changed, 31 insertions, 69 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 |
diff --git a/sound/drivers/opl3/Makefile b/sound/drivers/opl3/Makefile index 19767a6a5c54..7f2c2a10c4e5 100644 --- a/sound/drivers/opl3/Makefile +++ b/sound/drivers/opl3/Makefile | |||
@@ -7,14 +7,6 @@ snd-opl3-lib-objs := opl3_lib.o opl3_synth.o | |||
7 | snd-opl3-synth-y := opl3_seq.o opl3_midi.o opl3_drums.o | 7 | 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 | snd-opl3-synth-$(CONFIG_SND_SEQUENCER_OSS) += opl3_oss.o |
9 | 9 | ||
10 | # | ||
11 | # this function returns: | ||
12 | # "m" - CONFIG_SND_SEQUENCER is m | ||
13 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
14 | # otherwise parameter #1 value | ||
15 | # | ||
16 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
17 | |||
18 | obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o | 10 | obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o |
19 | obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o | 11 | obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o |
20 | obj-$(call sequencer,$(CONFIG_SND_OPL3_LIB)) += snd-opl3-synth.o | 12 | obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-opl3-synth.o |
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 @@ | |||
6 | snd-opl4-lib-objs := opl4_lib.o opl4_mixer.o opl4_proc.o | 6 | snd-opl4-lib-objs := opl4_lib.o opl4_mixer.o opl4_proc.o |
7 | snd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o | 7 | snd-opl4-synth-objs := opl4_seq.o opl4_synth.o yrw801.o |
8 | 8 | ||
9 | # | ||
10 | # this function returns: | ||
11 | # "m" - CONFIG_SND_SEQUENCER is m | ||
12 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
13 | # otherwise parameter #1 value | ||
14 | # | ||
15 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
16 | |||
17 | obj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o | 9 | obj-$(CONFIG_SND_OPL4_LIB) += snd-opl4-lib.o |
18 | obj-$(call sequencer,$(CONFIG_SND_OPL4_LIB)) += snd-opl4-synth.o | 10 | obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-opl4-synth.o |
diff --git a/sound/isa/sb/Makefile b/sound/isa/sb/Makefile index 1098a56b2f4b..faeffceb01b7 100644 --- a/sound/isa/sb/Makefile +++ b/sound/isa/sb/Makefile | |||
@@ -13,14 +13,6 @@ snd-sbawe-objs := sbawe.o emu8000.o | |||
13 | snd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o | 13 | snd-emu8000-synth-objs := emu8000_synth.o emu8000_callback.o emu8000_patch.o emu8000_pcm.o |
14 | snd-es968-objs := es968.o | 14 | snd-es968-objs := es968.o |
15 | 15 | ||
16 | # | ||
17 | # this function returns: | ||
18 | # "m" - CONFIG_SND_SEQUENCER is m | ||
19 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
20 | # otherwise parameter #1 value | ||
21 | # | ||
22 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
23 | |||
24 | # Toplevel Module Dependency | 16 | # Toplevel Module Dependency |
25 | obj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o | 17 | obj-$(CONFIG_SND_SB_COMMON) += snd-sb-common.o |
26 | obj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o | 18 | obj-$(CONFIG_SND_SB16_DSP) += snd-sb16-dsp.o |
@@ -33,4 +25,4 @@ ifeq ($(CONFIG_SND_SB16_CSP),y) | |||
33 | obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o | 25 | obj-$(CONFIG_SND_SB16) += snd-sb16-csp.o |
34 | obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o | 26 | obj-$(CONFIG_SND_SBAWE) += snd-sb16-csp.o |
35 | endif | 27 | endif |
36 | obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emu8000-synth.o | 28 | obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emu8000-synth.o |
diff --git a/sound/pci/emu10k1/Makefile b/sound/pci/emu10k1/Makefile index cf2d5636d8be..fc5591e7777e 100644 --- a/sound/pci/emu10k1/Makefile +++ b/sound/pci/emu10k1/Makefile | |||
@@ -9,15 +9,7 @@ snd-emu10k1-objs := emu10k1.o emu10k1_main.o \ | |||
9 | snd-emu10k1-synth-objs := emu10k1_synth.o emu10k1_callback.o emu10k1_patch.o | 9 | snd-emu10k1-synth-objs := emu10k1_synth.o emu10k1_callback.o emu10k1_patch.o |
10 | snd-emu10k1x-objs := emu10k1x.o | 10 | snd-emu10k1x-objs := emu10k1x.o |
11 | 11 | ||
12 | # | ||
13 | # this function returns: | ||
14 | # "m" - CONFIG_SND_SEQUENCER is m | ||
15 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
16 | # otherwise parameter #1 value | ||
17 | # | ||
18 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
19 | |||
20 | # Toplevel Module Dependency | 12 | # Toplevel Module Dependency |
21 | obj-$(CONFIG_SND_EMU10K1) += snd-emu10k1.o | 13 | obj-$(CONFIG_SND_EMU10K1) += snd-emu10k1.o |
22 | obj-$(call sequencer,$(CONFIG_SND_EMU10K1)) += snd-emu10k1-synth.o | 14 | obj-$(CONFIG_SND_EMU10K1_SEQ) += snd-emu10k1-synth.o |
23 | obj-$(CONFIG_SND_EMU10K1X) += snd-emu10k1x.o | 15 | obj-$(CONFIG_SND_EMU10K1X) += snd-emu10k1x.o |
diff --git a/sound/synth/Makefile b/sound/synth/Makefile index e99fd76caa17..11eb06ac2eca 100644 --- a/sound/synth/Makefile +++ b/sound/synth/Makefile | |||
@@ -5,16 +5,8 @@ | |||
5 | 5 | ||
6 | snd-util-mem-objs := util_mem.o | 6 | snd-util-mem-objs := util_mem.o |
7 | 7 | ||
8 | # | ||
9 | # this function returns: | ||
10 | # "m" - CONFIG_SND_SEQUENCER is m | ||
11 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
12 | # otherwise parameter #1 value | ||
13 | # | ||
14 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
15 | |||
16 | # Toplevel Module Dependency | 8 | # Toplevel Module Dependency |
17 | obj-$(CONFIG_SND_EMU10K1) += snd-util-mem.o | 9 | obj-$(CONFIG_SND_EMU10K1) += snd-util-mem.o |
18 | obj-$(CONFIG_SND_TRIDENT) += snd-util-mem.o | 10 | obj-$(CONFIG_SND_TRIDENT) += snd-util-mem.o |
19 | obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-util-mem.o | 11 | obj-$(CONFIG_SND_SBAWE_SEQ) += snd-util-mem.o |
20 | obj-$(call sequencer,$(CONFIG_SND)) += emux/ | 12 | obj-$(CONFIG_SND_SEQUENCER) += emux/ |
diff --git a/sound/synth/emux/Makefile b/sound/synth/emux/Makefile index b69035240cf6..328594e6152d 100644 --- a/sound/synth/emux/Makefile +++ b/sound/synth/emux/Makefile | |||
@@ -7,14 +7,6 @@ snd-emux-synth-objs := emux.o emux_synth.o emux_seq.o emux_nrpn.o \ | |||
7 | emux_effect.o emux_proc.o emux_hwdep.o soundfont.o \ | 7 | emux_effect.o emux_proc.o emux_hwdep.o soundfont.o \ |
8 | $(if $(CONFIG_SND_SEQUENCER_OSS),emux_oss.o) | 8 | $(if $(CONFIG_SND_SEQUENCER_OSS),emux_oss.o) |
9 | 9 | ||
10 | # | ||
11 | # this function returns: | ||
12 | # "m" - CONFIG_SND_SEQUENCER is m | ||
13 | # <empty string> - CONFIG_SND_SEQUENCER is undefined | ||
14 | # otherwise parameter #1 value | ||
15 | # | ||
16 | sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1))) | ||
17 | |||
18 | # Toplevel Module Dependencies | 10 | # Toplevel Module Dependencies |
19 | obj-$(call sequencer,$(CONFIG_SND_SBAWE)) += snd-emux-synth.o | 11 | obj-$(CONFIG_SND_SBAWE_SEQ) += snd-emux-synth.o |
20 | obj-$(call sequencer,$(CONFIG_SND_EMU10K1)) += snd-emux-synth.o | 12 | obj-$(CONFIG_SND_EMU10K1_SEQ) += snd-emux-synth.o |