]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: lpass-wsa-macro: fix path clock dependencies
authorJonathan Marek <jonathan@marek.ca>
Mon, 17 Nov 2025 05:15:16 +0000 (00:15 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2025 00:11:00 +0000 (00:11 +0000)
commit3ea1b0dbc684191b2e0b5697356a74571ab28155
tree1ae39df67433ead41c89a2b29bd7aa03bace92fb
parentc47f28ef62cb03de1e5a97844a90eda0415da233
ASoC: codecs: lpass-wsa-macro: fix path clock dependencies

"WSA_RX0_CLK",etc. are path clocks, but "WSA RX0",etc. are ports, and there
isn't a correspondence between the ports and paths.
For example "WSA RX0" port could be used by the "RX1 MIX" path.
The problem becomes obvious when RX4,etc. ports are added.

Enabling the path clocks should depend on the path being enabled.

With this fix, the main path clock will be enabled whenever the path is
active: previously using the mix ports only would only activate the mix
path clock and no audio would play.

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