Re: [alsa-devel][PATCH 1/4] ASoC: wm8960: Let wm8960 codec driver manage its own MCLK

2015-01-06 Thread Mark Brown
On Wed, Dec 31, 2014 at 11:39:11AM +0800, Zidan Wang wrote: > + if (!IS_ERR(wm8960->mclk)) { > + if (codec->dapm.bias_level == SND_SOC_BIAS_ON) > + clk_disable_unprepare(wm8960->mclk); > + else { Both sides of the if

[alsa-devel][PATCH 1/4] ASoC: wm8960: Let wm8960 codec driver manage its own MCLK

2014-12-30 Thread Zidan Wang
When we want to use wm8960 codec, we should enable its MCLK in machine driver. It's reasonable for wm8960 codec driver to manage its own MCLK. When current bias_level is SND_SOC_BIAS_ON, it is preparing for a transition away from ON. In this case, disable the codec mclk. When current bias_level is