← Back to team overview

ac100 team mailing list archive

Fwd: [PATCH 1/3] ASoC: Ensuring correctness of the register cache

 

---------- Forwarded message ----------
From: Leon Romanovsky <leon@xxxxxxx>
Date: Tue, Oct 18, 2011 at 21:30
Subject: [PATCH 1/3] ASoC: Ensuring correctness of the register cache
To: marvin24@xxxxxx
Cc: Leon Romanovsky <leon@xxxxxxx>


Filling cache routine must be called just before entering to the suspend
state to ensure correctness of the register cache.

Signed-off-by: Leon Romanovsky <leon@xxxxxxx>
---
 sound/soc/codecs/alc5632.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c
index 2c2b9a2..47ab151 100644
--- a/sound/soc/codecs/alc5632.c
+++ b/sound/soc/codecs/alc5632.c
@@ -876,6 +876,7 @@ static struct snd_soc_dai_driver alc5632_dai = {

 static int alc5632_suspend(struct snd_soc_codec *codec, pm_message_t mesg)
 {
+       alc5632_fill_cache(codec);
       alc5632_set_bias_level(codec, SND_SOC_BIAS_OFF);
       return 0;
 }
@@ -996,7 +997,6 @@ static int alc5632_probe(struct snd_soc_codec *codec)
       }

       alc5632_reset(codec);
-       alc5632_fill_cache(codec);

       /* power on device  */
       alc5632_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
--
1.7.3.4




--
Leon Romanovsky | Independent Linux Consultant
        www.leon.nu | leon@xxxxxxx