Skip to content

Commit 1e060a4

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
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: 3176bf2 ("ASoC: wm8960: update pll and clock setting function") Signed-off-by: Shengjiu Wang <[email protected]> Acked-by: Charles Keepax <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 9bff3d3 commit 1e060a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sound/soc/codecs/wm8960.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,8 +860,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
860860

861861
wm8960->is_stream_in_use[tx] = true;
862862

863-
if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_ON &&
864-
!wm8960->is_stream_in_use[!tx])
863+
if (!wm8960->is_stream_in_use[!tx])
865864
return wm8960_configure_clocking(component);
866865

867866
return 0;

0 commit comments

Comments
 (0)