summaryrefslogtreecommitdiff
path: root/sys/dev/midi.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-03 19:38:14 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2000-01-03 19:38:14 +0000
commit4470dda3732f0af563d6f16cc153b534ee51e4b1 (patch)
tree10b8d24061c39880b5e9ff75cc211dda2b49c6d6 /sys/dev/midi.c
parentf4181932c9312a9e37208f1f69d9d26428c8ce4d (diff)
Remove dependencies between midi & audio. midi now will compile on
speaker only systems.
Diffstat (limited to 'sys/dev/midi.c')
-rw-r--r--sys/dev/midi.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c
index e5987066e7c..c1fdc511dc6 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.2 1999/01/02 00:59:08 niklas Exp $ */
+/* $OpenBSD: midi.c,v 1.3 2000/01/03 19:38:13 fgsch Exp $ */
/* $NetBSD: midi.c,v 1.10 1998/12/20 14:26:44 drochner Exp $ */
/*
@@ -744,7 +744,7 @@ midi_getinfo(dev, mi)
#if NMIDI > 0 || NMIDIBUS > 0
-int audioprint __P((void *, const char *));
+int midiprint __P((void *, const char *));
void
midi_attach_mi(mhwp, hdlp, dev)
@@ -763,7 +763,17 @@ midi_attach_mi(mhwp, hdlp, dev)
arg.type = AUDIODEV_TYPE_MIDI;
arg.hwif = mhwp;
arg.hdl = hdlp;
- (void)config_found(dev, &arg, audioprint);
+ (void)config_found(dev, &arg, midiprint);
+}
+
+int
+midiprint(aux, pnp)
+ void *aux;
+ const char *pnp;
+{
+ if (pnp)
+ printf("midi at %s", pnp);
+ return (UNCONF);
}
#endif /* NMIDI > 0 || NMIDIBUS > 0 */