Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb add Roland UM-ONE (essentially, same as Roland U...



details:   https://anonhg.NetBSD.org/src/rev/665980a5e223
branches:  trunk
changeset: 773642:665980a5e223
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sat Feb 11 05:28:30 2012 +0000

description:
add Roland UM-ONE (essentially, same as Roland UM-1)

from PR/45908 by Tom Ivar Helbekkmo

diffstat:

 sys/dev/usb/umidi_quirks.c |  21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 8db62e60bdb2 -r 665980a5e223 sys/dev/usb/umidi_quirks.c
--- a/sys/dev/usb/umidi_quirks.c        Sat Feb 11 05:27:55 2012 +0000
+++ b/sys/dev/usb/umidi_quirks.c        Sat Feb 11 05:28:30 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umidi_quirks.c,v 1.16 2008/07/08 11:34:43 gmcgarry Exp $       */
+/*     $NetBSD: umidi_quirks.c,v 1.17 2012/02/11 05:28:30 plunky Exp $ */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi_quirks.c,v 1.16 2008/07/08 11:34:43 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi_quirks.c,v 1.17 2012/02/11 05:28:30 plunky Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -515,6 +515,22 @@
 };
 
 /*
+ * ROLAND UM-ONE
+ */
+UMQ_FIXED_EP_DATA_DEF(ROLAND, ROLAND_UMONE, ANYIFACE, 1, 1) = {
+       /* out */
+       { 0, 1 },
+       /* in */
+       { 1, 1 }
+};
+UMQ_FIXED_EP_DEF(ROLAND, ROLAND_UMONE, ANYIFACE, 1, 1);
+
+UMQ_DEF(ROLAND, ROLAND_UMONE, ANYIFACE) = {
+       UMQ_FIXED_EP_REG(ROLAND, ROLAND_UMONE, ANYIFACE),
+       UMQ_TERMINATOR
+};
+
+/*
  * Midiman Midisport 2x4. This has 2 physical MIDI IN jacks that are read
  * on endpoint 0x81 (descriptor index 0). It has 4 physical MIDI OUT jacks
  * that can be written on endpoints 2 or 4 (at descriptor index 2 or 4,
@@ -587,6 +603,7 @@
        UMQ_REG(ROLAND, ROLAND_UA25, 2),
        UMQ_REG(ROLAND, ROLAND_UA4FX, 2),
        UMQ_REG(ROLAND, ROLAND_SONICCELL, 2),
+       UMQ_REG(ROLAND, ROLAND_UMONE, ANYIFACE),
        UMQ_REG(MIDIMAN, MIDIMAN_MIDISPORT2X4, ANYIFACE),
        { .vendor = 0 },
 };



Home | Main Index | Thread Index | Old Index