From: Mark Brown Date: Thu, 16 Feb 2012 08:46:44 +0000 (-0800) Subject: ASoC: wm8962: Only configure BCLK in hw_params when audio is active X-Git-Tag: upstream/snapshot3+hdmi~7307^2~52^2~25^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1993502d24694c604414d42cccd3aa7a80c0b7ec;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Mark Brown --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index a5b8a09..d285bc1 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -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; }