ASoC: omap-mcbsp: Enable TX/RX under and overflow interrupts
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 12 Aug 2016 10:52:10 +0000 (13:52 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 12 Aug 2016 10:58:39 +0000 (11:58 +0100)
FIFO under or overflow can cause channel swaps and data loss. Reporting
them can help to identify such events.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/mcbsp.c

index 76ce33199bf9cfcb98ff79c000fde8d17ec851c7..06fec5699cc8bd984e110a6b82b115b019e8f576 100644 (file)
@@ -221,7 +221,8 @@ void omap_mcbsp_config(struct omap_mcbsp *mcbsp,
 
        /* Enable TX/RX sync error interrupts by default */
        if (mcbsp->irq)
-               MCBSP_WRITE(mcbsp, IRQEN, RSYNCERREN | XSYNCERREN);
+               MCBSP_WRITE(mcbsp, IRQEN, RSYNCERREN | XSYNCERREN |
+                           RUNDFLEN | ROVFLEN | XUNDFLEN | XOVFLEN);
 }
 
 /**