PATCH v2: ALSA USB MIDI: Fix case when USB MIDI interface has more than one extra endpoint descriptor

Takashi Iwai tiwai at suse.de
Tue Mar 31 14:35:54 CEST 2020


On Tue, 31 Mar 2020 14:25:54 +0200,
Andreas Steinmetz wrote:
> 
> [v2: Patch reworked as per comment from Takashi Iwai.]
> 
> The Miditech MIDIFACE 16x16 (USB ID 1290:1749) has more than one extra
> endpoint descriptor.
> 
> The first extra descriptor is: 0x06 0x30 0x00 0x00 0x00 0x00
> 
> As the code in snd_usbmidi_get_ms_info() looks only at the
> first extra descriptor to find USB_DT_CS_ENDPOINT the device
> as such is recognized but there is neither input nor output
> configured.
> 
> The patch iterates through the extra descriptors to find the
> proper one. With this patch the device is correctly configured.
> 
> Signed-off-by: Andreas Steinmetz <ast at domdv.de>

Applied now.  Thanks.


Takashi


More information about the Alsa-devel mailing list