summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8731.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-08-17 22:40:24 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-08-17 22:40:24 (GMT)
commit9745e824a81e54ef009500e120e35b68e387b941 (patch)
tree4d096a73b785863fc1f2a0fe49ba55a2e72b4c17 /sound/soc/codecs/wm8731.h
parent1593d7dd8c7b939e31b9d637307b26ada3e3c514 (diff)
downloadlinux-9745e824a81e54ef009500e120e35b68e387b941.tar.xz
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>
Diffstat (limited to 'sound/soc/codecs/wm8731.h')
-rw-r--r--sound/soc/codecs/wm8731.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8731.h b/sound/soc/codecs/wm8731.h
index 73a70e2..e9c0c76 100644
--- a/sound/soc/codecs/wm8731.h
+++ b/sound/soc/codecs/wm8731.h
@@ -31,7 +31,9 @@
#define WM8731_CACHEREGNUM 10
-#define WM8731_SYSCLK 0
+#define WM8731_SYSCLK_XTAL 1
+#define WM8731_SYSCLK_MCLK 2
+
#define WM8731_DAI 0
#endif