From: Nicolin Chen <Guangyu.Chen@freescale.com>
To: <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, b42378@freescale.com,
b02247@freescale.com, linux-kernel@vger.kernel.org,
timur@tabi.org, Li.Xiubo@freescale.com,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 1/2] ASoC: fsl_sai: Reset FIFOs after disabling TE/RE
Date: Wed, 23 Jul 2014 17:52:32 +0800 [thread overview]
Message-ID: <20140723095229.GA25639@MrMyself> (raw)
In-Reply-To: <20140718101810.GA15150@MrMyself>
Sir,
I found this two patches are merged into for-next branch, although I haven't
got the 'applied' email.
Is that possible for you to drop this one? If not, I'll send another patch
to fix this.
Thank you,
Nicolin
On Fri, Jul 18, 2014 at 06:18:12PM +0800, Nicolin Chen wrote:
> Mark,
>
> Please disregard this single patch.
>
> On Thu, Jul 17, 2014 at 09:21:37PM +0800, Nicolin Chen wrote:
> > SAI will not clear their FIFOs after disabling TE/RE. Therfore, the driver
> > should take care the task so as not to let useless data remain in the FIFO.
> >
> > Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
> > ---
> > sound/soc/fsl/fsl_sai.c | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
> >
> > diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
> > index c5a0e8a..b10dbd8 100644
> > --- a/sound/soc/fsl/fsl_sai.c
> > +++ b/sound/soc/fsl/fsl_sai.c
> > @@ -371,10 +371,13 @@ static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd,
> >
> > /* Check if the opposite FRDE is also disabled */
> > if (!(tx ? rcsr & FSL_SAI_CSR_FRDE : tcsr & FSL_SAI_CSR_FRDE)) {
> > + /* Disable both directions and reset their FIFOs */
> > regmap_update_bits(sai->regmap, FSL_SAI_TCSR,
> > - FSL_SAI_CSR_TERE, 0);
> > + FSL_SAI_CSR_TERE | FSL_SAI_CSR_FR,
> > + FSL_SAI_CSR_FR);
> > regmap_update_bits(sai->regmap, FSL_SAI_RCSR,
> > - FSL_SAI_CSR_TERE, 0);
> > + FSL_SAI_CSR_TERE | FSL_SAI_CSR_FR,
> > + FSL_SAI_CSR_FR);
>
>
> The FR should be set _after_ clear TERE, not at the same time because it
> still may have tiny possibility to remain data.
>
> I'll send another version later for this patch.
>
> The other patch for isr() should be still fine.
>
> Thank you,
> Nicolin
>
> > }
> > break;
> > default:
> > --
> > 1.8.4
> >
next prev parent reply other threads:[~2014-07-23 10:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-17 13:21 [PATCH 0/2] ASoC: fsl_sai: Two bug fixes for fsl_sai driver Nicolin Chen
2014-07-17 13:21 ` [PATCH 1/2] ASoC: fsl_sai: Reset FIFOs after disabling TE/RE Nicolin Chen
2014-07-18 10:18 ` Nicolin Chen
2014-07-23 9:52 ` Nicolin Chen [this message]
2014-07-23 10:07 ` Mark Brown
2014-07-23 9:59 ` Nicolin Chen
2014-07-17 13:21 ` [PATCH 2/2] ASoC: fsl_sai: Fix incorrect register writing in fsl_sai_isr() Nicolin Chen
2014-07-18 2:38 ` [PATCH 0/2] ASoC: fsl_sai: Two bug fixes for fsl_sai driver Li.Xiubo
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=20140723095229.GA25639@MrMyself \
--to=guangyu.chen@freescale.com \
--cc=Li.Xiubo@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=b02247@freescale.com \
--cc=b42378@freescale.com \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=timur@tabi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).