]> err.no Git - linux-2.6/commitdiff
[ALSA] usb-audio - use bDeviceSubClass to detect MOTU FastLane
authorClemens Ladisch <clemens@ladisch.de>
Mon, 4 Jul 2005 07:21:45 +0000 (09:21 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 28 Jul 2005 10:21:44 +0000 (12:21 +0200)
USB generic driver
MOTU builds other USB MIDI interfaces with the same product ID as the
FastLane, so we have to check the bDeviceSubClass field to differentiate
between them.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/usb/usbquirks.h

index ed1eba1ef5c69e68580d575c75433d19ac166f51..67796430e588bfce5189a506b3705f7b9befaddd 100644 (file)
@@ -1260,7 +1260,12 @@ YAMAHA_DEVICE(0x7010, "UB99"),
 /* Mark of the Unicorn devices */
 {
        /* thanks to Robert A. Lerche <ral 'at' msbit.com> */
-       USB_DEVICE(0x07fd, 0x0001),
+       .match_flags = USB_DEVICE_ID_MATCH_VENDOR |
+                      USB_DEVICE_ID_MATCH_PRODUCT |
+                      USB_DEVICE_ID_MATCH_DEV_SUBCLASS,
+       .idVendor = 0x07fd,
+       .idProduct = 0x0001,
+       .bDeviceSubClass = 2,
        .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
                .vendor_name = "MOTU",
                .product_name = "Fastlane",