OSDN Git Service

ASoC: ssm2602: Re-enable oscillator after suspend
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 27 Sep 2011 09:08:46 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:41:07 +0000 (11:41 -0700)
commit906a1b1a9e2538e45e13d111eb7927ab9c54b4b0
treea317745d560a2d315cec55c4e9839ef78630feb9
parent60984600ff1c9da76b17e153dacb4c641671af18
ASoC: ssm2602: Re-enable oscillator after suspend

commit 9058020cd9ae3423d6fe7de591698dc96b6701aa upstream.

Currently the the internal oscillator is powered down when entering BIAS_OFF
state, but not re-enabled when going back to BIAS_STANDBY. As a result the
CODEC will stop working after suspend if the internal oscillator is used to
generate the sysclock signal. This patch fixes it by clearing the appropriate
bit in the power down register when the CODEC is re-enabled.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/codecs/ssm2602.c