aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ad1836.h
diff options
context:
space:
mode:
authorBarry Song <21cnbao@gmail.com>2010-01-25 16:42:25 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-25 14:52:22 +0000
commit84549d239ab9bb2e3a85c6efcf0e6478a38b4260 (patch)
treea4ee60ceecb1a7a473b4c8f654cbfaf69be643bc /sound/soc/codecs/ad1836.h
parentASoC: add DAI and platform / DMA drivers for SH SIU (diff)
downloadlinux-dev-84549d239ab9bb2e3a85c6efcf0e6478a38b4260.tar.xz
linux-dev-84549d239ab9bb2e3a85c6efcf0e6478a38b4260.zip
ASoC: ad1836: reset and restore clock control mode in suspend/resume entry
tests show frequent suspend/resume(frequent poweroff/on ad1836 internal components) maybe make ad1836 clock mode wrong sometimes after wakeup. This patch reset/restore ad1836 clock mode while executing PM, then ad1836 can always resume to right clock status. Signed-off-by: Barry Song <21cnbao@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/ad1836.h')
-rw-r--r--sound/soc/codecs/ad1836.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/ad1836.h b/sound/soc/codecs/ad1836.h
index 7660ee6973c0..e9d90d3951c5 100644
--- a/sound/soc/codecs/ad1836.h
+++ b/sound/soc/codecs/ad1836.h
@@ -54,6 +54,7 @@
#define AD1836_ADC_SERFMT_MASK (7 << 6)
#define AD1836_ADC_SERFMT_PCK256 (0x4 << 6)
#define AD1836_ADC_SERFMT_PCK128 (0x5 << 6)
+#define AD1836_ADC_AUX (0x6 << 6)
#define AD1836_ADC_CTRL3 14