]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: lpass-rx-macro: fix mute_stream affecting all paths
authorJonathan Marek <jonathan@marek.ca>
Mon, 17 Nov 2025 05:15:21 +0000 (00:15 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2025 00:11:04 +0000 (00:11 +0000)
commitbdf96e9135a0cf53a853a19c30fa11131a744062
tree68e71b28e7d21dcd853e8154dd98add544be71fd
parent50c28498e9fd6784dea82378d509572d118111f9
ASoC: codecs: lpass-rx-macro: fix mute_stream affecting all paths

The current mute_steam() implementation affects all paths instead of
only those in use by the DAI.

For example, playing to 2 DAIs simultaneously with mixing, stopping
one will mute the other.

Rework to use the same logic as hw_params() to mute only the relevant paths.
(also, use "rx->main_clk_users[j] > 0" instead of dsm_reg, which is
equivalent. I also don't think the clock enable should be in this function,
but that's a change for another patch)

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251117051523.16462-9-jonathan@marek.ca
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-rx-macro.c