From: Takashi Iwai Subject: Re: [PATCH V3 1/5] sound: asoc: Adding support for STA529 Audio Codec Date: Fri, 15 Apr 2011 11:23:16 +0200 Message-ID: References: <1302499804-24386-1-git-send-email-rajeev-dlh.kumar@st.com> <1302499804-24386-2-git-send-email-rajeev-dlh.kumar@st.com> <20110411145621.GA26769@opensource.wolfsonmicro.com> <20110414141936.GD31985@qtel.sh.intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 471F410382B for ; Fri, 15 Apr 2011 11:23:23 +0200 (CEST) In-Reply-To: <20110414141936.GD31985@qtel.sh.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lu Guanqun Cc: "alsa-devel@alsa-project.org" , Mark Brown , Rajeev Kumar , "lrg@slimlogic.co.uk" List-Id: alsa-devel@alsa-project.org 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