* [PATCH] usbmidi (0.9.0rc7) output endpoints detection for MIDIStreaming protocol
@ 2003-02-02 23:56 Pedro Lopez-Cabanillas
2003-02-03 9:59 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Pedro Lopez-Cabanillas @ 2003-02-02 23:56 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
Hi,
Attached is a patch to solve a little mistake with output endpoints detection
for standard USB MIDI devices. Midisport devices are affected only if using
Lars Doelle firmware.
Typical syslog output was like this:
kernel: snd-usb-midi: MIDIStreaming version 01.00
kernel: snd-usb-midi: EP 01: 2 jack(s)
kernel: snd-usb-midi: EP 81: 2 jack(s)
kernel: snd-usb-midi: created 0 output and 4 input ports
kernel: usb-uhci.c: ENXIO c0008480, flags 0, urb c1b665a0, burb c1b664a0
kernel: snd-usb-midi: usb_submit_urb: -6
Regards,
Pedro
--
ALSA Library Bindings for Pascal
http://alsapas.alturl.com
[-- Attachment #2: patch.usbmidi --]
[-- Type: text/x-diff, Size: 540 bytes --]
--- alsa-kernel/usb/usbmidi.c.old Mon Jan 13 10:50:26 2003
+++ alsa-kernel/usb/usbmidi.c Mon Feb 3 00:41:36 2003
@@ -821,7 +821,7 @@
ms_ep->bDescriptorType != USB_DT_CS_ENDPOINT ||
ms_ep->bDescriptorSubtype != MS_GENERAL)
continue;
- if ((ep->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK) == USB_DIR_OUT) {
+ if ((ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT) {
if (endpoints[epidx].out_ep) {
if (++epidx >= MIDI_MAX_ENDPOINTS) {
printk(KERN_WARNING "snd-usb-midi: too many endpoints\n");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-03 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-02 23:56 [PATCH] usbmidi (0.9.0rc7) output endpoints detection for MIDIStreaming protocol Pedro Lopez-Cabanillas
2003-02-03 9:59 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.