PERFORCE change 157255 for review

Hans Petter Selasky hselasky at FreeBSD.org
Fri Feb 6 03:00:13 PST 2009


http://perforce.freebsd.org/chv.cgi?CH=157255

Change 157255 by hselasky at hselasky_laptop001 on 2009/02/06 11:00:00

	
	USB Audio: Make sure that attach waits for the generic
	probe to leave room for firware loader drivers and device
	specific USB Audio drivers like USB phone adapters.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb2/sound/uaudio2.c#28 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb2/sound/uaudio2.c#28 (text+ko) ====

@@ -539,9 +539,12 @@
 {
 	struct usb2_attach_arg *uaa = device_get_ivars(dev);
 
-	if (uaa->usb2_mode != USB_MODE_HOST) {
+	if (uaa->usb2_mode != USB_MODE_HOST)
+		return (ENXIO);
+
+	if (uaa->use_generic == 0)
 		return (ENXIO);
-	}
+
 	/* trigger on the control interface */
 
 	if ((uaa->info.bInterfaceClass == UICLASS_AUDIO) &&


More information about the p4-projects mailing list