summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-12 04:21:52 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-13 03:14:59 (GMT)
commitda8b8e0f15b375b44ed8ef4b0c5f5f60f19ccb37 (patch)
tree4147b9d1e27be5fac749b7c038341b695cd2d853 /sound/soc/soc-core.c
parent6b315958d330d3ebf46b7d45e0978a97be2c4ac0 (diff)
downloadlinux-fsl-qoriq-da8b8e0f15b375b44ed8ef4b0c5f5f60f19ccb37.tar.xz
ASoC: core: Mark regmap CODEC register maps as dirty when suspending
The core has for a long time had support for marking the register maps of devices dirty when suspending so that they are resynced on resume. Also implement this feature for CODECs using regmap. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index ad65459..2b41839 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -635,6 +635,8 @@ int snd_soc_suspend(struct device *dev)
codec->driver->suspend(codec);
codec->suspended = 1;
codec->cache_sync = 1;
+ if (codec->using_regmap)
+ regcache_mark_dirty(codec->control_data);
break;
default:
dev_dbg(codec->dev, "CODEC is on over suspend\n");