ASoC: ad1836: reset and restore clock control mode in suspend/resume entry
authorBarry Song <21cnbao@gmail.com>
Fri, 25 Dec 2009 06:10:06 +0000 (14:10 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 Dec 2009 18:30:11 +0000 (18:30 +0000)
commitafe1c2cd71eb4e0fade720b5709722e7124f29c0
treef28c00d2ec2734cf243b4ceddb827b2557a49416
parent18240b67c8ca5efbbb2e8bb11942cc3db033fb16
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