ASoC: adau1372: fix mclk
authorMaarten Zanders <maarten.zanders@mind.be>
Fri, 28 Oct 2022 15:26:23 +0000 (17:26 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2022 19:31:52 +0000 (19:31 +0000)
commit27b6fa6145215c5f49d93e322a16144b928ecd3e
tree823efc3fb1c444b598b88b8b06a600181429b2e3
parent094226ad94f471a9f19e8f8e7140a09c2625abaa
ASoC: adau1372: fix mclk

"mclk" is retrieved from the configuration and assigned to adau1372->clk.
However adau1372->mclk (==NULL) is used for clk_prepare_enable() and
clk_disable_unprepare() which don't have any effect.

Remove .clk from struct adau1372 and use .mclk throughout.
This change ensures that the input clock is switched on/off when the
bias level is changed.

Signed-off-by: Maarten Zanders <maarten.zanders@mind.be>
Link: https://lore.kernel.org/r/20221028152626.109603-2-maarten.zanders@mind.be
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/adau1372.c