]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: wm8960: Let wm8960 codec driver manage its own MCLK
authorZidan Wang <b50113@freescale.com>
Wed, 7 Jan 2015 07:31:44 +0000 (15:31 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 14 Jan 2015 19:18:34 +0000 (19:18 +0000)
commit75aa88684d73ed00a38bfa14b9edfac18b2acae8
tree1129d295d668c29db25ba4b983f0815eebbe585d
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672
ASoC: wm8960: Let wm8960 codec driver manage its own MCLK

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 not SND_SOC_BIAS_ON, it preparing for a transition to ON. In this case,
enable the codec mclk.

Signed-off-by: Zidan Wang <b50113@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c