From: Brent Cook <busterbcook@yahoo.com>
To: alsa-devel@lists.sourceforge.net
Subject: Support for EDIROL UM-3ex
Date: Sat, 31 Dec 2005 21:54:35 -0600 [thread overview]
Message-ID: <200512312154.35173.busterbcook@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 691 bytes --]
Dear all,
This is my naive attempt at adding ALSA device support. The attached patch
provides support for the EDIROL UM-3ex. This is a 3-port USB midi interface
with a built-in USB hub and the ability to chain 2 other UM-3x's in a
master-slave configuration. I only have one, so I do not know how this works
in practice.
Though this is a 3-port device, I had to throw in that 4th 'Control' interface
to the definition in order to make the 3rd port work. If I set in/out_cables
to 0x000b, a 3rd interface appears on the driver, but it does nothing.
Changing it to 0x000f allows the 3rd interface to work, but of course
interface 4 does not work because it does not exist.
- Brent
[-- Attachment #2: edirol_um-3ex.patch --]
[-- Type: text/x-diff, Size: 1455 bytes --]
diff -urN linux-2.6.15-rc7/sound/usb/usbmidi.c linux-2.6.15-rc7.dev/sound/usb/usbmidi.c
--- linux-2.6.15-rc7/sound/usb/usbmidi.c 2005-12-31 20:14:15.000000000 -0600
+++ linux-2.6.15-rc7.dev/sound/usb/usbmidi.c 2005-12-31 21:47:23.000000000 -0600
@@ -1095,6 +1095,8 @@
{ USB_ID(0x086a, 0x0001), 8, "%s Broadcast" },
{ USB_ID(0x086a, 0x0002), 8, "%s Broadcast" },
{ USB_ID(0x086a, 0x0003), 4, "%s Broadcast" },
+ /* Edirol UM-3ex */
+ { USB_ID(0x0582, 0x009a), 3, "%s Control" },
};
static void snd_usbmidi_init_substream(snd_usb_midi_t* umidi,
diff -urN linux-2.6.15-rc7/sound/usb/usbquirks.h linux-2.6.15-rc7.dev/sound/usb/usbquirks.h
--- linux-2.6.15-rc7/sound/usb/usbquirks.h 2005-12-31 20:14:15.000000000 -0600
+++ linux-2.6.15-rc7.dev/sound/usb/usbquirks.h 2005-12-31 21:40:15.000000000 -0600
@@ -204,6 +204,28 @@
}
},
{
+ USB_DEVICE(0x0582, 0x009a),
+ .driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
+ .vendor_name = "EDIROL",
+ .product_name = "UM-3ex",
+ .ifnum = QUIRK_ANY_INTERFACE,
+ .type = QUIRK_COMPOSITE,
+ .data = (const snd_usb_audio_quirk_t[]) {
+ {
+ .ifnum = 0,
+ .type = QUIRK_MIDI_FIXED_ENDPOINT,
+ .data = & (const snd_usb_midi_endpoint_info_t) {
+ .out_cables = 0x000f,
+ .in_cables = 0x000f
+ }
+ },
+ {
+ .ifnum = -1
+ }
+ }
+ }
+},
+{
USB_DEVICE(0x0582, 0x0002),
.driver_info = (unsigned long) & (const snd_usb_audio_quirk_t) {
.vendor_name = "EDIROL",
next reply other threads:[~2006-01-01 3:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-01 3:54 Brent Cook [this message]
2006-01-01 4:06 ` Support for EDIROL UM-3ex Brent Cook
2006-01-09 14:52 ` Takashi Iwai
2006-01-10 13:34 ` Brent Cook
2006-01-10 14:29 ` Clemens Ladisch
2006-01-10 14:36 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200512312154.35173.busterbcook@yahoo.com \
--to=busterbcook@yahoo.com \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox