ALSA: usb-audio: fix Roland/Cakewalk UM-3G support
authorClemens Ladisch <clemens@ladisch.de>
Sun, 2 Jun 2013 17:49:07 +0000 (19:49 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Jun 2013 07:42:21 +0000 (09:42 +0200)
Commit 927c9423dd5f2d1c0b93d5e694ab84b4a5559713 (ALSA: usb-audio: add
Edirol UM-3G support) used a wrong quirk type, which would make the
driver refuse to attach with the error message "MIDIStreaming interface
descriptor not found".

Cc: <stable@vger.kernel.org> # 3.3 and later
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks-table.h

index 7f1722f82c89ed293a450dd009d552a3ef3f61cf..6ae71b84b39d45dd4af8eaaa6ef38cdb99026bce 100644 (file)
@@ -1792,7 +1792,11 @@ YAMAHA_DEVICE(0x7010, "UB99"),
        USB_DEVICE_VENDOR_SPEC(0x0582, 0x0108),
        .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
                .ifnum = 0,
-               .type = QUIRK_MIDI_STANDARD_INTERFACE
+               .type = QUIRK_MIDI_FIXED_ENDPOINT,
+               .data = & (const struct snd_usb_midi_endpoint_info) {
+                       .out_cables = 0x0007,
+                       .in_cables  = 0x0007
+               }
        }
 },
 {