alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: ssm2602: Re-enable oscillator after suspend
@ 2011-09-27  9:08 Lars-Peter Clausen
  2011-09-27  9:08 ` [PATCH 2/3] ASoC: ssm2602: Set initial bias level to standby Lars-Peter Clausen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lars-Peter Clausen @ 2011-09-27  9:08 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood
  Cc: alsa-devel, Lars-Peter Clausen, stable, device-drivers-devel

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>
Cc: stable@kernel.org
---
 sound/soc/codecs/ssm2602.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c
index cceb002..32d6c51 100644
--- a/sound/soc/codecs/ssm2602.c
+++ b/sound/soc/codecs/ssm2602.c
@@ -430,7 +430,8 @@ static int ssm2602_set_dai_fmt(struct snd_soc_dai *codec_dai,
 static int ssm2602_set_bias_level(struct snd_soc_codec *codec,
 				 enum snd_soc_bias_level level)
 {
-	u16 reg = snd_soc_read(codec, SSM2602_PWR) & 0xff7f;
+	u16 reg = snd_soc_read(codec, SSM2602_PWR);
+	reg &= ~(PWR_POWER_OFF | PWR_OSC_PDN);
 
 	switch (level) {
 	case SND_SOC_BIAS_ON:
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-09-27 12:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27  9:08 [PATCH 1/3] ASoC: ssm2602: Re-enable oscillator after suspend Lars-Peter Clausen
2011-09-27  9:08 ` [PATCH 2/3] ASoC: ssm2602: Set initial bias level to standby Lars-Peter Clausen
2011-09-27 10:22   ` Mark Brown
2011-09-27  9:08 ` [PATCH 3/3] ASoC: ssm2602: Support setting the oscillator and the clock output state Lars-Peter Clausen
2011-09-27 12:30   ` Mark Brown
2011-09-27 12:47     ` Lars-Peter Clausen
2011-09-27 10:20 ` [PATCH 1/3] ASoC: ssm2602: Re-enable oscillator after suspend Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).