]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: seq: Allow the tristate build of OSS emulation
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Jun 2017 12:06:46 +0000 (14:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Jun 2017 20:09:45 +0000 (22:09 +0200)
commite618b8e3bfb59c4a438a922c1f69693cfc47a388
treebd345c2cb848ad3b47ea1f5734d86974f10f64f7
parent2936a47334bb60c3f42d6ef931d0f00f5035e403
ALSA: seq: Allow the tristate build of OSS emulation

Currently OSS sequencer emulation is tied with ALSA sequencer core,
both are built in the same level; i.e. when CONFIG_SND_SEQUENCER=y,
the OSS sequencer emulation is also always built-in, even though the
functionality can be built as an individual module.

This patch changes the rule and allows users to build snd-seq-oss
module while others are built-in.  Essentially, it's just a few simple
changes in Kconfig and Makefile.  Some driver codes like opl3 need to
convert from the simple ifdef to IS_ENABLED().  But that's all.

You might wonder how about the dependency: right, it can be messy, but
it still works.  Since we rewrote the sequencer binding with the
standard bus, the driver can be bound at any time on demand.  So, the
synthesizer driver module can be loaded individually from the OSS
emulation core before/after it.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emux_synth.h
include/sound/opl3.h
sound/core/Kconfig
sound/core/seq/Makefile
sound/core/seq/oss/Makefile
sound/drivers/opl3/opl3_seq.c
sound/drivers/opl3/opl3_voice.h
sound/isa/sb/emu8000_callback.c
sound/synth/emux/emux.c
sound/synth/emux/emux_effect.c
sound/synth/emux/emux_oss.c