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: next-20120914~64^2~2^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f32959e89467ab72fcf73bd27e4e440ce91cb235;p=karo-tx-linux.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 --- 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");