LF-3819: ASoC: fsl_spdif: Fix unexpected interrupt after suspend
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 21 May 2021 04:57:17 +0000 (12:57 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Sun, 23 May 2021 02:03:13 +0000 (10:03 +0800)
commit5cb5dd5a8c51e14aa97580e8b81cbceb7aab829a
tree64b1cad26d28d7ee460b1da817816b21d0aee456
parent08680b128d388724755e849ef72bc5644268a44b
LF-3819: ASoC: fsl_spdif: Fix unexpected interrupt after suspend

When system enter suspend,  the machine driver suspend callback
function will be called, then the cpu driver trigger callback
(SNDRV_PCM_TRIGGER_SUSPEND) be called, the interrupt should be
disabled

But the machine driver suspend and cpu dai driver suspend order
maybe changed, the cpu dai driver's suspend callback is called before
machine driver's suppend callback, then the interrupt is not cleared
successfully in trigger callback.

So need to clear interrupts in cpu dai driver's suspend callback
to avoid such issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
sound/soc/fsl/fsl_spdif.c