]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: tx-macro: setup soundwire clks correctly
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 24 Feb 2022 11:17:10 +0000 (11:17 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 25 Feb 2022 13:51:06 +0000 (13:51 +0000)
commiteca89d7f914d22d26db828ef332d06f9892c7d22
tree7840c5e7133b35cc0920aadd58b6e47adb5d8e72
parentd4434014d753615f2dcffdaeb6a7460f12c37487
ASoC: codecs: tx-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-9-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-tx-macro.c