]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Support non-crystal master clocks for WM8731
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 17 Aug 2010 22:40:24 +0000 (23:40 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 17 Aug 2010 22:40:24 +0000 (23:40 +0100)
commit460eefc89aceea98c837de4681fea2cdd1a0129c
tree4d096a73b785863fc1f2a0fe49ba55a2e72b4c17
parent4c662243252542d1029e09ab58c26ce752a4b029
ASoC: Support non-crystal master clocks for WM8731

Instead of unconditionally enabling the crystal oscillator on the WM8731
only enable it when explicitly selected via set_sysclk(), allowing machine
drivers to specify that they drive a clock into MCLK alone. This avoids
any conflicts between the oscillator and the external MCLK source and saves
power for systems which do not need the oscillator.

This should also deliver a small power saving on systems using the crystal
since the oscillator will only be enabled when the ADC or DAC is active.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/atmel/sam9g20_wm8731.c
sound/soc/au1x/db1200.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8731.h
sound/soc/pxa/corgi.c
sound/soc/pxa/poodle.c