]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wsa-macro: setup soundwire clks correctly
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 24 Feb 2022 11:17:09 +0000 (11:17 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 25 Feb 2022 13:51:05 +0000 (13:51 +0000)
commit283f4049b03996b04eaf489a82d9ecba93fa0865
tree26e39f34459d6f14906863ea23cbf9e26b29ccf2
parentca3207fc1caa03aa81758e25e2115b458465e53d
ASoC: codecs: wsa-macro: setup soundwire clks correctly

For SoundWire Frame sync to be generated correctly we need both MCLK
and MCLKx2 (npl). Without pm runtime enabled these two clocks will remain on,
however after adding pm runtime support its possible that NPl clock could be
turned off even when SoundWire controller is active.

Fix this by enabling mclk and npl clk when SoundWire clks are enabled.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220224111718.6264-8-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-wsa-macro.c