ASoC: ad1836: reset and restore clock control mode in suspend/resume entry
authorBarry Song <21cnbao@gmail.com>
Mon, 25 Jan 2010 08:42:25 +0000 (16:42 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 25 Jan 2010 14:52:22 +0000 (14:52 +0000)
commit84549d239ab9bb2e3a85c6efcf0e6478a38b4260
treea4ee60ceecb1a7a473b4c8f654cbfaf69be643bc
parent895d4509d069f0706427ca75fcf0929ed136d0d7
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>
sound/soc/codecs/ad1836.c
sound/soc/codecs/ad1836.h