From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Daniel Baluta <daniel.baluta@nxp.com>
Cc: "broonie@kernel.org" <broonie@kernel.org>,
"Xiubo.Lee@gmail.com" <Xiubo.Lee@gmail.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"S.j. Wang" <shengjiu.wang@nxp.com>,
dl-linux-imx <linux-imx@nxp.com>,
Fabio Estevam <fabio.estevam@nxp.com>
Subject: Re: [PATCH] ASoC: fsl_sai: Remove expensive print in irq handler
Date: Fri, 18 Jan 2019 12:08:32 -0800 [thread overview]
Message-ID: <20190118200831.GB11798@Asurada-Nvidia.nvidia.com> (raw)
In-Reply-To: <20190118142623.17720-1-daniel.baluta@nxp.com>
On Fri, Jan 18, 2019 at 02:26:46PM +0000, Daniel Baluta wrote:
> From: Shengjiu Wang <shengjiu.wang@nxp.com>
>
> When stopping audio, ASoC will first stop DMA then CPU DAI.
> Sometimes there is a delay between DMA stop and CPU DAI stop, which
> triggers an underrun error. Now, because of the delay introduced
> by dev_err another underrun error will occur causing a vicious circle
> making impossible to stop CPU DAI.
>
> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
> ---
> sound/soc/fsl/fsl_sai.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
> index 4163f2cfc06f..db9e0872f73d 100644
> --- a/sound/soc/fsl/fsl_sai.c
> +++ b/sound/soc/fsl/fsl_sai.c
> @@ -62,10 +62,10 @@ static irqreturn_t fsl_sai_isr(int irq, void *devid)
> dev_dbg(dev, "isr: Start of Tx word detected\n");
>
> if (flags & FSL_SAI_CSR_SEF)
> - dev_warn(dev, "isr: Tx Frame sync error detected\n");
> + dev_dbg(dev, "isr: Tx Frame sync error detected\n");
>
> if (flags & FSL_SAI_CSR_FEF) {
> - dev_warn(dev, "isr: Transmit underrun detected\n");
> + dev_dbg(dev, "isr: Transmit underrun detected\n");
> /* FIFO reset for safety */
> xcsr |= FSL_SAI_CSR_FR;
> }
> @@ -96,10 +96,10 @@ static irqreturn_t fsl_sai_isr(int irq, void *devid)
> dev_dbg(dev, "isr: Start of Rx word detected\n");
>
> if (flags & FSL_SAI_CSR_SEF)
> - dev_warn(dev, "isr: Rx Frame sync error detected\n");
> + dev_dbg(dev, "isr: Rx Frame sync error detected\n");
>
> if (flags & FSL_SAI_CSR_FEF) {
> - dev_warn(dev, "isr: Receive overflow detected\n");
> + dev_dbg(dev, "isr: Receive overflow detected\n");
> /* FIFO reset for safety */
> xcsr |= FSL_SAI_CSR_FR;
> }
> --
> 2.17.1
>
prev parent reply other threads:[~2019-01-18 20:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-18 14:26 Daniel Baluta
2019-01-18 18:38 ` Applied "ASoC: fsl_sai: Remove expensive print in irq handler" to the asoc tree Mark Brown
2019-01-18 20:08 ` Nicolin Chen [this message]
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=20190118200831.GB11798@Asurada-Nvidia.nvidia.com \
--to=nicoleotsuka@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=fabio.estevam@nxp.com \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shengjiu.wang@nxp.com \
/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
all inboxes | Powered by JetHome®