svn commit: r200338 - stable/8/sys/dev/sound/usb

Andrew Thompson thompsa at FreeBSD.org
Wed Dec 9 15:12:52 PST 2009


Author: thompsa
Date: Wed Dec  9 23:12:52 2009
New Revision: 200338
URL: http://svn.freebsd.org/changeset/base/200338

Log:
  MFC r199677
  
   add support for MIDI devices without audio control stream.
  
  Submitted by:	Hans Petter Selasky

Modified:
  stable/8/sys/dev/sound/usb/uaudio.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/sound/usb/uaudio.c
==============================================================================
--- stable/8/sys/dev/sound/usb/uaudio.c	Wed Dec  9 23:12:14 2009	(r200337)
+++ stable/8/sys/dev/sound/usb/uaudio.c	Wed Dec  9 23:12:52 2009	(r200338)
@@ -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);
 }
 


More information about the svn-src-stable mailing list