public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Mark Salazar <markTheCoder@justmyself.net>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: [es18xx.c PATCH] #1/4 for Zoom Video - resolve common vs chipset specific mixer controls
Date: Mon, 02 Jan 2006 15:22:54 +0100	[thread overview]
Message-ID: <s5h8xtyr9oh.wl%tiwai@suse.de> (raw)
In-Reply-To: <43B02A0E.20401@justmyself.net>

At Mon, 26 Dec 2005 12:36:14 -0500,
Mark Salazar wrote:
> 
> +/*
> + * These chipset specific mixer controls are initialized in
> + * snd_es18xx_mixer. Those controls which are not UNSET are then
> + * instantiated.
> + */
> +static char UNSETbuf = '\0';
> +#define UNSET ((char *)&UNSETbuf)
> +static enum optionalControlsIndex {reg1cBit4, reg3cMono, reg6d, reg6f};
> +static struct snd_kcontrol_new snd_es18xx_optional_controls[] = {
> +ES18XX_SINGLE(UNSET, 0, 0x1c, 4, 1, 1),
> +ES18XX_SINGLE(UNSET, 0, 0x3c, 0, 7, 0),
> +ES18XX_DOUBLE(UNSET, 0, 0x6d, 0x6d, 4, 0, 15, 0),
> +ES18XX_DOUBLE(UNSET, 0, 0x6f, 0x6f, 4, 0, 15, 0)
> +};
> +static char* captureSwitchName = "Capture Switch";
> +static char* speakerPlayName = "PC Speaker Playback Volume";
> +static char* monoPlayName = "Mono Playback Volume";
> +static char* monoRecName = "Mono Capture Volume";

This doesn't work for the multiple cards because you overwrite the
static array.  Better to create once kcontrol instaces via
snd_ctl_new1(), then copy the name on each instance according to the
model.

Other chnages look fine to me.

thanks,

Takashi


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

  parent reply	other threads:[~2006-01-02 14:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-26 15:44 [es18xx.c PATCH] #1/4 for Zoom Video - resolve common vs chipset specific mixer controls Mark Salazar
2005-12-26 16:07 ` Lee Revell
2005-12-26 17:36   ` Mark Salazar
2005-12-26 17:46     ` Lee Revell
2006-01-02 14:22     ` Takashi Iwai [this message]
2006-01-08 23:01       ` Mark Salazar
2006-01-09 12:13         ` Takashi Iwai
2006-01-10  0:58           ` Mark Salazar
     [not found]             ` <s5hu0ccfgu6.wl%tiwai@suse.de>
2006-01-15 20:30               ` Mark Salazar
2006-01-16 11:43                 ` 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=s5h8xtyr9oh.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=markTheCoder@justmyself.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