From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolin Chen Subject: Re: fsl_ssi: Cannot do simultaneous capture and playback Date: Mon, 23 Sep 2013 10:40:29 +0800 Message-ID: <20130923024028.GA18268@MrMyself> References: <20130923021341.GA18203@MrMyself> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from co9outboundpool.messaging.microsoft.com (co9ehsobe003.messaging.microsoft.com [207.46.163.26]) by alsa0.perex.cz (Postfix) with ESMTP id 729D6265113 for ; Mon, 23 Sep 2013 05:00:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: 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: Fabio Estevam Cc: "alsa-devel@alsa-project.org" , Mark Brown , Lars-Peter Clausen , Sascha Hauer , Shawn Guo List-Id: alsa-devel@alsa-project.org On Sun, Sep 22, 2013 at 11:56:17PM -0300, Fabio Estevam wrote: > Hi Nicolin, > > On Sun, Sep 22, 2013 at 11:13 PM, Nicolin Chen wrote: > > > In freescale internal branch, I had a patch to drop this part of code because > > the hw_params() in fsl_ssi.c is already considering about the wl configuration, > > so it won't change the wl value even if two streams' sample bits are different. > > > > But if we think about the benefit of snd_pcm_hw_constraint() for a case like > > "(arecord -d10 xx.wav &);sleep 1;aplay yy.wav", yea the non-simultaneous case, > > we might also just turn the dev_err() into dev_warn() from my point of view: > > > > if (first_runtime->sample_bits) > > snd_pcm_hw_constraint_minmax(substream->runtime, > > SNDRV_PCM_HW_PARAM_SAMPLE_BITS, > > first_runtime->sample_bits, > > first_runtime->sample_bits); > > else > > dev_warn(substream->pcm->card->dev, > > "Not enforcing sample bits due to race\n"); > > > > You can try this two solutions and find a better one. > > Yes, tried both and none of them worked for me. > > Could you try linux-next if you have a chance? I want to, but I don't have a wandboard. Could you please give me the new printed log? I think after the modification there should be little different for the case. > > Thanks, > > Fabio Estevam >