All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: alsa-devel@lists.sourceforge.net
Subject: [PATCH] usb audio patch for new usb device.
Date: Wed, 16 Jul 2003 04:08:20 +0100	[thread overview]
Message-ID: <3F14C1A4.5020704@superbug.demon.co.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 126 bytes --]

Hi,

I attach a patch that makes alsa work better with this JustLink usb 
audio device.

See patch for details.

Cheers
James

[-- Attachment #2: alsa.diff --]
[-- Type: text/plain, Size: 1651 bytes --]

Index: alsa-kernel/usb/usbmixer_maps.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/usb/usbmixer_maps.c,v
retrieving revision 1.4
diff -u -r1.4 usbmixer_maps.c
--- alsa-kernel/usb/usbmixer_maps.c	13 May 2003 10:44:09 -0000	1.4
+++ alsa-kernel/usb/usbmixer_maps.c	16 Jul 2003 02:59:09 -0000
@@ -89,6 +89,28 @@
 	{ 0 } /* terminator */
 };
 
+/* Section "justlink_map" below added by James Courtier-Dutton <James@superbug.demon.co.uk>
+ * 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.)
+ * The USB Mixer publishes a Microphone and extra Volume controls for it, but none exist on the device,
+ * so this map removes all unwanted sliders from alsamixer
+ */
+
+static struct usbmix_name_map justlink_map[] = {
+	/* 1: IT pcm playback */
+	/* 2: Not present */
+	{ 3, NULL}, /* IT mic (No mic input on device) */
+	/* 4: Not present */
+	/* 5: OT speacker */
+	/* 6: OT pcm capture */
+	{ 7, "Master Playback" }, /* Mute/volume for speaker */
+	{ 8, NULL }, /* Capture Switch (No capture inputs on device) */
+	{ 9, NULL }, /* Capture Mute/volume (No capture inputs on device */
+	/* 0xa: Not present */
+	/* 0xb: MU (w/o controls) */
+	{ 0xc, NULL }, /* Mic feedback Mute/volume (No capture inputs on device) */
+	{ 0 } /* terminator */
+};
 
 /*
  * Control map entries
@@ -96,6 +118,7 @@
 
 static struct usbmix_ctl_map usbmix_ctl_maps[] = {
 	{ 0x41e, 0x3000, extigy_map },
+	{ 0xc45, 0x1158, justlink_map },
 	{ 0 } /* terminator */
 };
 

             reply	other threads:[~2003-07-16  3:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-16  3:08 James Courtier-Dutton [this message]
2003-07-16 11:38 ` [PATCH] usb audio patch for new usb device 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=3F14C1A4.5020704@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --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 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.