Skip to content

Commit

Permalink
ASoC: wm8962: Only configure BCLK in hw_params when audio is active
Browse files Browse the repository at this point in the history
Otherwise we might not have a sensible clocking setup ready.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Feb 17, 2012
1 parent 71de4d2 commit 1993502
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -2675,7 +2675,8 @@ static int wm8962_hw_params(struct snd_pcm_substream *substream,
WM8962_SAMPLE_RATE_INT_MODE |
WM8962_SAMPLE_RATE_MASK, adctl3);

wm8962_configure_bclk(codec);
if (codec->dapm.bias_level == SND_SOC_BIAS_ON)
wm8962_configure_bclk(codec);

return 0;
}
Expand Down

0 comments on commit 1993502

Please sign in to comment.