MLK-12374: ASoC: fsl_sai: Change the dev_warn to dev_dbg
authorShengjiu Wang <shengjiu.wang@freescale.com>
Thu, 4 Feb 2016 07:07:57 +0000 (15:07 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:50:01 +0000 (14:50 -0500)
When audio stop, it will first stop dma, then stop cpu_dai.
If there is delay between dma stop and cpu dai stop, there
will be underrun error, the print will cost time, then will
cause another underrun error, it is a infinite loop.
Which will cause the cpu dai can't stop.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/fsl_sai.c

index 357ccc8..2fc0caa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Freescale ALSA SoC Digital Audio Interface (SAI) driver.
  *
- * Copyright 2012-2015 Freescale Semiconductor, Inc.
+ * Copyright 2012-2016 Freescale Semiconductor, Inc.
  *
  * This program is free software, you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the
@@ -70,10 +70,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;
        }
@@ -104,10 +104,10 @@ irq_rx:
                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;
        }