]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8731: fix wm8731_check_osc() connected condition
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 24 May 2011 09:50:57 +0000 (11:50 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 26 May 2011 14:11:16 +0000 (22:11 +0800)
commitc23bd6ad1d07a3a1f4af4d6afee6129949f4079a
tree3e588e6c61b629b5271f8aa85c70a839b60544b4
parent789e075ef7b2edc0fa2efc723e2c97e545dc0915
ASoC: wm8731: fix wm8731_check_osc() connected condition

The crystal oscillator is only enabled if the WM8731_SYSCLK_XTAL master clock
is specified. Fix the connected() struct snd_soc_dapm_route function to take
this into account. Oscillator is not enabled on machine that need it otherwise.

Machine drivers have to make sure that they use the proper SYSCLK value.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8731.c