Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2009 21:26:28 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r199677 - head/sys/dev/sound/usb
Message-ID:  <200911222126.nAMLQS5R030125@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: thompsa
Date: Sun Nov 22 21:26:27 2009
New Revision: 199677
URL: http://svn.freebsd.org/changeset/base/199677

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

Modified:
  head/sys/dev/sound/usb/uaudio.c

Modified: head/sys/dev/sound/usb/uaudio.c
==============================================================================
--- head/sys/dev/sound/usb/uaudio.c	Sun Nov 22 21:24:38 2009	(r199676)
+++ head/sys/dev/sound/usb/uaudio.c	Sun Nov 22 21:26:27 2009	(r199677)
@@ -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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911222126.nAMLQS5R030125>