From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ola Lilja Subject: Re: [PATCH 01/14] ASoC: ux500_pcm: Remove duplicated SNDRV_PCM_HW_PARAM_PERIODS constraint Date: Fri, 22 Mar 2013 15:35:37 +0100 Message-ID: <514C6C39.5000806@stericsson.com> References: <1363957934-20059-1-git-send-email-lars@metafoo.de> <1363957934-20059-2-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from eu1sys200aog112.obsmtp.com (eu1sys200aog112.obsmtp.com [207.126.144.133]) by alsa0.perex.cz (Postfix) with ESMTP id CEB452651EE for ; Fri, 22 Mar 2013 15:36:41 +0100 (CET) In-Reply-To: <1363957934-20059-2-git-send-email-lars@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: "alsa-devel@alsa-project.org" , Mark Brown , Liam Girdwood List-Id: alsa-devel@alsa-project.org Acked. Regards, Ola On 03/22/2013 02:12 PM, Lars-Peter Clausen wrote: > The generic dmaengine based PCM driver code takes care of setting this > constraint, there is no need of doing it manually in the ux500 driver. > > Signed-off-by: Lars-Peter Clausen > Cc: Ola Lilja > --- > sound/soc/ux500/ux500_pcm.c | 9 --------- > 1 file changed, 9 deletions(-) > > diff --git a/sound/soc/ux500/ux500_pcm.c b/sound/soc/ux500/ux500_pcm.c > index 846fa82..375ca6b 100644 > --- a/sound/soc/ux500/ux500_pcm.c > +++ b/sound/soc/ux500/ux500_pcm.c > @@ -111,15 +111,6 @@ static int ux500_pcm_open(struct snd_pcm_substream *substream) > snd_soc_set_runtime_hwparams(substream, > &ux500_pcm_hw_capture); > > - /* ensure that buffer size is a multiple of period size */ > - ret = snd_pcm_hw_constraint_integer(runtime, > - SNDRV_PCM_HW_PARAM_PERIODS); > - if (ret < 0) { > - dev_err(dev, "%s: Error: snd_pcm_hw_constraints failed (%d)\n", > - __func__, ret); > - return ret; > - } > - > dev_dbg(dev, "%s: Set hw-struct for %s.\n", __func__, > snd_pcm_stream_str(substream)); > runtime->hw = (stream_id == SNDRV_PCM_STREAM_PLAYBACK) ?