public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
* Support for EDIROL UM-3ex
@ 2006-01-01  3:54 Brent Cook
  2006-01-01  4:06 ` Brent Cook
  2006-01-09 14:52 ` Takashi Iwai
  0 siblings, 2 replies; 6+ messages in thread
From: Brent Cook @ 2006-01-01  3:54 UTC (permalink / raw)
  To: alsa-devel

[-- 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",

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-10 14:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-01  3:54 Support for EDIROL UM-3ex Brent Cook
2006-01-01  4:06 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox