Commit 1993502d authored by Mark Brown's avatar Mark Brown

ASoC: wm8962: Only configure BCLK in hw_params when audio is active

Otherwise we might not have a sensible clocking setup ready.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 71de4d27
...@@ -2675,6 +2675,7 @@ static int wm8962_hw_params(struct snd_pcm_substream *substream, ...@@ -2675,6 +2675,7 @@ static int wm8962_hw_params(struct snd_pcm_substream *substream,
WM8962_SAMPLE_RATE_INT_MODE | WM8962_SAMPLE_RATE_INT_MODE |
WM8962_SAMPLE_RATE_MASK, adctl3); WM8962_SAMPLE_RATE_MASK, adctl3);
if (codec->dapm.bias_level == SND_SOC_BIAS_ON)
wm8962_configure_bclk(codec); wm8962_configure_bclk(codec);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment