]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: fsl: imx-card: Skip sysclk reset for active DAIs in shutdown
authorChancel Liu <chancel.liu@nxp.com>
Fri, 10 Jul 2026 03:13:33 +0000 (12:13 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jul 2026 21:23:00 +0000 (22:23 +0100)
commit9f86aea992568c2b4db78c80ff9508af9e050ff7
treeb704940e994de61b076939f900a706ccc8e43315
parentd9e96f859de3ea3e99bce927a988449a1816483c
ASoC: fsl: imx-card: Skip sysclk reset for active DAIs in shutdown

In a full-duplex setup, when one direction (playback or capture) is
closed while the other is still running, imx_aif_shutdown() was
unconditionally calling snd_soc_dai_set_sysclk() with rate=0 for all
cpu/codec DAIs, which would disable the clock still needed by the
active stream.

Add snd_soc_dai_active() checks before clearing sysclk so that only
truly inactive DAIs have their clocks reset.

Fixes: 2260bc6ea8bd ("ASoC: imx-card: Add WM8524 support")
Cc: stable@vger.kernel.org
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260710031333.3491445-1-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-card.c