aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-18 00:17:13 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-07-19 11:16:00 -0400
commit7be4ba24a3ea53bc8ade841635e4d4a59e98ceb5 (patch)
tree171a0b4922f32e3b6da60ee528979333a9c8dbc7 /sound
parent440085598672c0e3fde8a48495f61fea418b06d1 (diff)
ASoC: Mark cache as dirty when suspending
Since quite a few drivers are not managing to flag the cache as needing to be resynced after suspend and it's a reasonable thing to do flag the cache as needing sync automatically when suspending. The expectation is that systems will mainly only keep the CODEC powered when doing audio through the CODEC so we won't actually suspend the device anyway; drivers which want to can override this behaviour when they resume. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Cc: stable@kernel.org
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e44267f66216..93109a4e2bc8 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -577,6 +577,7 @@ int snd_soc_suspend(struct device *dev)
577 case SND_SOC_BIAS_OFF: 577 case SND_SOC_BIAS_OFF:
578 codec->driver->suspend(codec, PMSG_SUSPEND); 578 codec->driver->suspend(codec, PMSG_SUSPEND);
579 codec->suspended = 1; 579 codec->suspended = 1;
580 codec->cache_sync = 1;
580 break; 581 break;
581 default: 582 default:
582 dev_dbg(codec->dev, "CODEC is on over suspend\n"); 583 dev_dbg(codec->dev, "CODEC is on over suspend\n");