ALSA: usb-audio: add Novation Launchpad support
Add a quirk entry for the Novation Launchpad USB MIDI controller. QUIRK_MIDI_FASTLANE gets renamed to *_RAW_BYTES because this quirk type is now shared by different devices. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Tested-by: Jakob Flierl <jakob.flierl@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
f3305da35a
commit
c7f572168f
@@ -784,7 +784,7 @@ static struct usb_protocol_ops snd_usbmidi_novation_ops = {
|
||||
};
|
||||
|
||||
/*
|
||||
* "raw" protocol: used by the MOTU FastLane.
|
||||
* "raw" protocol: just move raw MIDI bytes from/to the endpoint
|
||||
*/
|
||||
|
||||
static void snd_usbmidi_raw_input(struct snd_usb_midi_in_endpoint* ep,
|
||||
@@ -2122,7 +2122,7 @@ int snd_usbmidi_create(struct snd_card *card,
|
||||
umidi->usb_protocol_ops = &snd_usbmidi_novation_ops;
|
||||
err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints);
|
||||
break;
|
||||
case QUIRK_MIDI_FASTLANE:
|
||||
case QUIRK_MIDI_RAW_BYTES:
|
||||
umidi->usb_protocol_ops = &snd_usbmidi_raw_ops;
|
||||
/*
|
||||
* Interface 1 contains isochronous endpoints, but with the same
|
||||
@@ -2133,7 +2133,8 @@ int snd_usbmidi_create(struct snd_card *card,
|
||||
* interface 0, so we have to make sure that the USB core looks
|
||||
* again at interface 0 by calling usb_set_interface() on it.
|
||||
*/
|
||||
usb_set_interface(umidi->dev, 0, 0);
|
||||
if (umidi->usb_id == USB_ID(0x07fd, 0x0001)) /* MOTU Fastlane */
|
||||
usb_set_interface(umidi->dev, 0, 0);
|
||||
err = snd_usbmidi_detect_per_port_endpoints(umidi, endpoints);
|
||||
break;
|
||||
case QUIRK_MIDI_EMAGIC:
|
||||
|
Reference in New Issue
Block a user