From: Takashi Iwai Subject: Re: [PATCH 4/8] ASoC pxa2xx Corgi machine support Date: Tue, 10 Oct 2006 19:18:34 +0200 Message-ID: References: <1160497185.24436.113.camel@localhost.localdomain> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1160497185.24436.113.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Liam Girdwood Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Tue, 10 Oct 2006 17:19:45 +0100, Liam Girdwood wrote: > > +static int corgi_jack_func = 0; > +static int corgi_spk_func = 0; '= 0' can be omitted. > +static int corgi_set_jack(struct snd_kcontrol *kcontrol, > + struct snd_ctl_elem_value *ucontrol) > +{ > + struct snd_soc_codec *codec = snd_kcontrol_chip(kcontrol); > + corgi_jack_func = ucontrol->value.integer.value[0]; > + corgi_ext_control(codec); > + return 0; > +} The put callback should return 1 if the value is changed. > +unsigned int corgi_config_sysclk(struct snd_soc_pcm_runtime *rtd, > + struct snd_soc_clock_info *info) > +{ Missing static? > + if (info->bclk_master & SND_SOC_DAIFMT_CBS_CFS) { > + /* pxa2xx is i2s master */ > + switch(info->rate) { > + case 44100: > + case 88200: cases are normally in the same indent level as switch(). Also, put a space between switch and (. Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV