Clemens Ladisch wrote:
> It is possible to add a table to the driver to override these names.

Attached is a patch to do this.  It's already in CVS.


Regards,
Clemens
Index: alsa-kernel/usb/usbmixer_maps.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbmixer_maps.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- alsa-kernel/usb/usbmixer_maps.c     5 Oct 2005 12:02:38 -0000       1.14
+++ alsa-kernel/usb/usbmixer_maps.c     16 Mar 2006 08:25:56 -0000      1.15
@@ -195,6 +195,22 @@
        { 0 } /* terminator */
 };
 
+static struct usbmix_name_map maya44_map[] = {
+       /* 1: IT line */
+       { 2, "Line Playback" }, /* FU */
+       /* 3: IT line */
+       { 4, "Line Playback" }, /* FU */
+       /* 5: IT pcm playback */
+       /* 6: MU */
+       { 7, "Master Playback" }, /* FU */
+       /* 8: OT speaker */
+       /* 9: IT line */
+       { 10, "Line Capture" }, /* FU */
+       /* 11: MU */
+       /* 12: OT pcm capture */
+       { }
+};
+
 /* Section "justlink_map" below added by James Courtier-Dutton <[EMAIL 
PROTECTED]>
  * sourced from Maplin Electronics (http://www.maplin.co.uk), part number A56AK
  * Part has 2 connectors that act as a single output. (TOSLINK Optical for 
digital out, and 3.5mm Jack for Analogue out.)
@@ -253,6 +269,10 @@
                .ignore_ctl_error = 1,
        },
        {
+               .id = USB_ID(0x0a92, 0x0091),
+               .map = maya44_map,
+       },
+       {
                .id = USB_ID(0x0c45, 0x1158),
                .map = justlink_map,
        },

Reply via email to