[alsa-devel] [PATCH V3 1/5] sound: asoc: Adding support for STA529 Audio Codec

Takashi Iwai tiwai at suse.de
Fri Apr 15 11:23:16 CEST 2011


At Thu, 14 Apr 2011 22:19:36 +0800,
Lu Guanqun wrote:
> 
> On Thu, Apr 14, 2011 at 05:54:11PM +0800, Takashi Iwai wrote:
> > At Mon, 11 Apr 2011 07:56:22 -0700,
> > Mark Brown wrote:
> > > 
> > > > +static const struct snd_kcontrol_new sta529_new_snd_controls[] = {
> > > > +	SOC_ENUM("pwm select", pwm_src_enum),
> > > > +	SOC_ENUM("mode select", mode_src_enum),
> > > > +};
> > > 
> > > ALSA control names are idiomatically things like "PWM Select" with
> > > capitalisation.
> > 
> > Actually, the capital words are no mandatory requirement (although
> > it's conventionally so).  It's just alsa-mixer grouping rule that
> > requires the capital words "Play", "Capture", "Volume", "Switch",
> > etc.
> 
> Hi Takashi,
> 
> Where can I find these alsa-mixer grouping rule?

See Documentation/sound/alsa/ControlNames.txt.  It's old but still
valid in most cases.

Since then there are a few additions and exceptions.  "Input Source"
control is one of them.  Also, "Enum" is now also a function word.


Takashi


More information about the Alsa-devel mailing list