summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2016-03-21 13:09:26 +0800
committerOctavian Purdila <octavian.purdila@nxp.com>2017-02-23 15:21:20 +0200
commitef9ab0ed6314dcc76b96728623e93c0250fb73f1 (patch)
tree8f020e14f0bc4c7c26f141e6e3b0b4d3dfc01dc3 /sound
parentfa464bfd254dde3d892dccb2dddb2aa0143d9614 (diff)
MLK-12464-2: ASoC: wm8960: fix clock is not correct after suspend/resume
After the suspend/resume, hw_params may be called in bias_level is not BIAS_ON, then the PLL is not disable/enabled, if the sample rate is changed, the output clock is not correct. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8960.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 3bf081a7e450..4acc4fd77ca6 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -765,8 +765,7 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
wm8960->is_stream_in_use[tx] = true;
- if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_ON &&
- !wm8960->is_stream_in_use[!tx])
+ if (!wm8960->is_stream_in_use[!tx])
return wm8960_configure_clocking(codec);
return 0;
@@ -819,10 +818,6 @@ static int wm8960_set_bias_level_out3(struct snd_soc_codec *codec,
}
}
- ret = wm8960_configure_clocking(codec);
- if (ret)
- return ret;
-
/* Set VMID to 2x50k */
snd_soc_update_bits(codec, WM8960_POWER1, 0x180, 0x80);
break;