summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-11-22 21:26:27 +0000
committerthompsa <thompsa@FreeBSD.org>2009-11-22 21:26:27 +0000
commit49624dd6ce070f56aa7f559f401370467cd714b2 (patch)
tree468e695613653df4069674525c29bb265ba2a4c6 /sys/dev/sound
parent1936d4dd8555995166726ea272f9f80b11c5eea3 (diff)
downloadFreeBSD-src-49624dd6ce070f56aa7f559f401370467cd714b2.zip
FreeBSD-src-49624dd6ce070f56aa7f559f401370467cd714b2.tar.gz
add support for MIDI devices without audio control stream.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/usb/uaudio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
index 7701c3c..ddae8c3 100644
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -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);
}
OpenPOWER on IntegriCloud