ALSA: usb-audio: Add support for Akai MPC Element USB MIDI controller
authorPaul Bonser <misterpib@gmail.com>
Thu, 8 Jan 2015 05:34:16 +0000 (23:34 -0600)
committerTakashi Iwai <tiwai@suse.de>
Thu, 8 Jan 2015 07:26:12 +0000 (08:26 +0100)
The Akai MPC Element incorrectly reports its bInterfaceClass as 255, but
otherwise implements the USB MIDI spec correctly.

This adds a quirks-table.h entry which allows the device to be
recognized as a standard USB MIDI device.

Signed-off-by: Paul Bonser <misterpib@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks-table.h

index 0a598af9b38b81d63f0202179733dcda4db91e20..67d476548dcf9094acd61e0ff74f0f320af1556a 100644 (file)
@@ -2486,6 +2486,28 @@ YAMAHA_DEVICE(0x7010, "UB99"),
        }
 },
 
+{
+       /* Akai MPC Element */
+       USB_DEVICE(0x09e8, 0x0021),
+       .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
+               .ifnum = QUIRK_ANY_INTERFACE,
+               .type = QUIRK_COMPOSITE,
+               .data = & (const struct snd_usb_audio_quirk[]) {
+                       {
+                               .ifnum = 0,
+                               .type = QUIRK_IGNORE_INTERFACE
+                       },
+                       {
+                               .ifnum = 1,
+                               .type = QUIRK_MIDI_STANDARD_INTERFACE
+                       },
+                       {
+                               .ifnum = -1
+                       }
+               }
+       }
+},
+
 /* TerraTec devices */
 {
        USB_DEVICE_VENDOR_SPEC(0x0ccd, 0x0012),