summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/midi/midisynth.c
diff options
context:
space:
mode:
authortanimura <tanimura@FreeBSD.org>2002-01-04 01:13:49 +0000
committertanimura <tanimura@FreeBSD.org>2002-01-04 01:13:49 +0000
commitc9a37a6ceaafff4e7bb45214a8cb8bec4cbe1040 (patch)
tree172193f32d3428cba6b1cfe2673b7e848920b3f2 /sys/dev/sound/midi/midisynth.c
parentbc1c5ca72163809979db46d3d2ea6f9d3ea63a71 (diff)
downloadFreeBSD-src-c9a37a6ceaafff4e7bb45214a8cb8bec4cbe1040.zip
FreeBSD-src-c9a37a6ceaafff4e7bb45214a8cb8bec4cbe1040.tar.gz
- Provide toggles to show debug messages. Set new sysctl variables
hw.midi.debug and hw.midi.seq.debug to 1 to enable debug log. - Make debug messages human-frendly. - Implement /dev/music. - Add a timer engine required by /dev/music. - Fix nonblocking I/O. - Fix the numbering of midi and synth devices.
Diffstat (limited to 'sys/dev/sound/midi/midisynth.c')
-rw-r--r--sys/dev/sound/midi/midisynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/midi/midisynth.c b/sys/dev/sound/midi/midisynth.c
index 9f99d35..d370833 100644
--- a/sys/dev/sound/midi/midisynth.c
+++ b/sys/dev/sound/midi/midisynth.c
@@ -437,7 +437,7 @@ synth_readraw(mididev_info *md, u_char *buf, int len, int *lenr, int nonblock)
unit = md->unit;
if ((md->fflags & FREAD) == 0) {
- DEB(printf("synth_readraw: unit %d is not for reading.\n", unit));
+ MIDI_DEBUG(printf("synth_readraw: unit %d is not for reading.\n", unit));
return (EIO);
}
@@ -478,7 +478,7 @@ synth_writeraw(mididev_info *md, u_char *buf, int len, int *lenw, int nonblock)
unit = md->unit;
if ((md->fflags & FWRITE) == 0) {
- DEB(printf("synth_writeraw: unit %d is not for writing.\n", unit));
+ MIDI_DEBUG(printf("synth_writeraw: unit %d is not for writing.\n", unit));
return (EIO);
}
OpenPOWER on IntegriCloud