From: Nicolin Chen <b42378@freescale.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Sascha Hauer <kernel@pengutronix.de>,
Shawn Guo <shawn.guo@linaro.org>
Subject: Re: fsl_ssi: Cannot do simultaneous capture and playback
Date: Mon, 23 Sep 2013 10:40:29 +0800 [thread overview]
Message-ID: <20130923024028.GA18268@MrMyself> (raw)
In-Reply-To: <CAOMZO5AKAnJxRpHB5AyaXfL2GoU=Ek5-qsb77Jw2ZuW1EyaJMw@mail.gmail.com>
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 <b42378@freescale.com> 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
>
next prev parent reply other threads:[~2013-09-23 3:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-23 2:05 fsl_ssi: Cannot do simultaneous capture and playback Fabio Estevam
2013-09-23 2:13 ` Nicolin Chen
2013-09-23 2:56 ` Fabio Estevam
2013-09-23 2:40 ` Nicolin Chen [this message]
2013-09-23 3:14 ` Fabio Estevam
2013-09-23 3:19 ` Nicolin Chen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130923024028.GA18268@MrMyself \
--to=b42378@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=lars@metafoo.de \
--cc=shawn.guo@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.