[alsa-devel] [PATCH] ASoC: Mark wm8753 register cache as dirty when suspending

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Nov 21 14:07:20 CET 2011


Ensures that it is resynced properly on resume.

Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm8753.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index 3a629d0..3f3541b 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -1395,6 +1395,7 @@ static void wm8753_work(struct work_struct *work)
 static int wm8753_suspend(struct snd_soc_codec *codec, pm_message_t state)
 {
 	wm8753_set_bias_level(codec, SND_SOC_BIAS_OFF);
+	codec->cache_sync = 1;
 	return 0;
 }
 
-- 
1.7.7.3



More information about the Alsa-devel mailing list