add support for MIDI devices without audio control stream.

Submitted by:	Hans Petter Selasky
This commit is contained in:
Andrew Thompson 2009-11-22 21:26:27 +00:00
parent f1eac1007e
commit dc6942514b

View File

@ -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);
}