summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@freescale.com>2015-05-20 18:01:00 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:23 -0500
commitf463002398062bfca938963eeb33ab545ed3afbe (patch)
treec621e97462014bc00b077e45250471d82b0d4940 /sound
parent8fa6b528f8f7b00aa32d94160641f111f55bc6c5 (diff)
MLK-11004-1: ASoC: cs42888: Add regcache mask dirty in suspend
Add regcache mask dirty in suspend, otherwise the register is not synced with cache in resume. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs42xx8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index b7f7db54ca24..41a82ab89974 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -1,7 +1,7 @@
/*
* Cirrus Logic CS42448/CS42888 Audio CODEC Digital Audio Interface (DAI) driver
*
- * Copyright (C) 2014 Freescale Semiconductor, Inc.
+ * Copyright (C) 2014-2015 Freescale Semiconductor, Inc.
*
* Author: Nicolin Chen <Guangyu.Chen@freescale.com>
*
@@ -664,6 +664,7 @@ static int cs42xx8_runtime_suspend(struct device *dev)
{
struct cs42xx8_priv *cs42xx8 = dev_get_drvdata(dev);
+ regcache_mark_dirty(cs42xx8->regmap);
regcache_cache_only(cs42xx8->regmap, true);
regulator_bulk_disable(ARRAY_SIZE(cs42xx8->supplies),