From: Mark Brown Date: Wed, 12 Sep 2012 04:21:52 +0000 (+0800) Subject: ASoC: core: Mark regmap CODEC register maps as dirty when suspending X-Git-Tag: firefly_0821_release~3680^2~1589^2~52^2~85 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=da8b8e0f15b375b44ed8ef4b0c5f5f60f19ccb37;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Liam Girdwood --- diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index ad65459da28e..2b418398ec18 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");