ASoC: wm8960: Fix wrong clock after suspend & resume
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 21 Apr 2020 11:28:45 +0000 (19:28 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 21 Apr 2020 14:43:22 +0000 (15:43 +0100)
commit1e060a453c8604311fb45ae2f84f67ed673329b4
treedfe9f30ecfaaadb1fba01513d8c533158d7aaea9
parent9bff3d3024e51122c0c09634056debcd6c7359ec
ASoC: wm8960: Fix wrong clock after suspend & resume

After suspend & resume, wm8960_hw_params may be called when
bias_level is not SND_SOC_BIAS_ON, then wm8960_configure_clocking
is not called. But if sample rate is changed at that time, then
the output clock rate will be not correct.

So judgement of bias_level is SND_SOC_BIAS_ON in wm8960_hw_params
is not necessary and it causes above issue.

Fixes: 3176bf2d7ccd ("ASoC: wm8960: update pll and clock setting function")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/1587468525-27514-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c