svn commit: r199677 - head/sys/dev/sound/usb
Andrew Thompson
thompsa at FreeBSD.org
Sun Nov 22 21:26:28 UTC 2009
Author: thompsa
Date: Sun Nov 22 21:26:27 2009
New Revision: 199677
URL: http://svn.freebsd.org/changeset/base/199677
Log:
add support for MIDI devices without audio control stream.
Submitted by: Hans Petter Selasky
Modified:
head/sys/dev/sound/usb/uaudio.c
Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c Sun Nov 22 21:24:38 2009 (r199676)
+++ head/sys/dev/sound/usb/uaudio.c Sun Nov 22 21:26:27 2009 (r199677)
@@ -559,6 +559,13 @@ uaudio_probe(device_t dev)
else
return (0);
}
+
+ /* check for MIDI stream */
+
+ if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) &&
+ (uaa->info.bInterfaceSubClass == UISUBCLASS_MIDISTREAM)) {
+ return (0);
+ }
return (ENXIO);
}
More information about the svn-src-all
mailing list