PERFORCE change 170866 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Nov 20 14:30:51 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=170866

Change 170866 by hselasky at hselasky_laptop001 on 2009/11/20 14:29:55

	
	USB audio:
		- add support for MIDI devices without
		audio control stream.

Affected files ...

.. //depot/projects/usb/src/sys/dev/sound/usb/uaudio.c#62 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/sound/usb/uaudio.c#62 (text+ko) ====

@@ -559,6 +559,13 @@
 		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 p4-projects mailing list