From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: [alsa-devel] [PATCH 1/5 v2] ASoC Add TLV320AIC23 codec driver Date: Fri, 03 Oct 2008 10:06:04 +0100 Message-ID: <1223024764.6814.69.camel@dell-desktop.example.com> References: <20081003081856.GC25482@atomide.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081003081856.GC25482@atomide.com> Sender: linux-omap-owner@vger.kernel.org To: Tony Lindgren Cc: Arun KS , alsa-devel@alsa-project.org, "linux-omap@vger.kernel.org List" , Jarkko Nikula , felipe.balbi@nokia.com, troy.kisky@boundarydevices.com List-Id: alsa-devel@alsa-project.org On Fri, 2008-10-03 at 11:18 +0300, Tony Lindgren wrote: > Hi, > > * Arun KS [081002 12:18]: > > ASoC codec driver for TLV320AIC23 device > > One comment below based on a quick browse. > > > > > +static void tlv320aic23_shutdown(struct snd_pcm_substream *substream) > > +{ > > + struct snd_soc_pcm_runtime *rtd = substream->private_data; > > + struct snd_soc_device *socdev = rtd->socdev; > > + struct snd_soc_codec *codec = socdev->codec; > > + > > + /* deactivate */ > > + if (!codec->active) { > > + udelay(50); > > + tlv320aic23_write(codec, TLV320AIC23_ACTIVE, 0x0); > > + } > > +} > > + > > What's the purpose of the udelay() here? Looks like if needed it should > be after the twl32aic23_write().. Otherwise the problem is probably > somewhere else. > Iirc this was found to reduce pops and clicks on shutdown on another very similar codec in this family. Liam