aboutsummaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/midi/midi.c
diff options
context:
space:
mode:
authorTai-hwa Liang <avatar@FreeBSD.org>2020-03-20 14:26:08 +0000
committerTai-hwa Liang <avatar@FreeBSD.org>2020-03-20 14:26:08 +0000
commit8faa6d591f4db44964ad0dc4247765e1ded41abf (patch)
tree5f3b6327b086f479904db2844a07518878749318 /sys/dev/sound/midi/midi.c
parent4819b05a8ba973e557acf6af63774e9852adb4e4 (diff)
downloadsrc-8faa6d591f4db44964ad0dc4247765e1ded41abf.tar.gz
src-8faa6d591f4db44964ad0dc4247765e1ded41abf.zip
MFC r338422: Adding support for CS46xx MIDI output.
With this patch, users can play the MIDI files through /dev/sequencer device with tools like playmidi. The audio output will go through the external MIDI device such like wavetable synthesis card. Reviewed by: matk (a long time ago), kib Tested with: Terratec SiXPack 5.1+ + Yamaha DB50XG
Notes
Notes: svn path=/stable/10/; revision=359161
Diffstat (limited to 'sys/dev/sound/midi/midi.c')
-rw-r--r--sys/dev/sound/midi/midi.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c
index 3dea05d82207..d68ad981005a 100644
--- a/sys/dev/sound/midi/midi.c
+++ b/sys/dev/sound/midi/midi.c
@@ -1465,18 +1465,14 @@ midi_modevent(module_t mod, int type, void *data)
switch (type) {
case MOD_LOAD:
retval = midi_load();
-#if 0
if (retval == 0)
retval = seq_modevent(mod, type, data);
-#endif
break;
case MOD_UNLOAD:
retval = midi_unload();
-#if 0
if (retval == 0)
retval = seq_modevent(mod, type, data);
-#endif
break;
default: