diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-11-22 21:26:27 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-11-22 21:26:27 +0000 |
commit | 49624dd6ce070f56aa7f559f401370467cd714b2 (patch) | |
tree | 468e695613653df4069674525c29bb265ba2a4c6 /sys | |
parent | 1936d4dd8555995166726ea272f9f80b11c5eea3 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/sound/usb/uaudio.c | 7 |
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); } |