summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorS.j. Wang <shengjiu.wang@nxp.com>2019-05-16 06:04:29 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-19 08:18:01 +0200
commitd7d15ac38ba61883f1250445a76ccd3c8a79d6b8 (patch)
tree6d8915bfe78199a9777ecc07f46cb7f8f48b4f44 /sound
parentc3b85bda41f0a8c00b7492cbc9042b612dad2162 (diff)
downloadlinux-stable-d7d15ac38ba61883f1250445a76ccd3c8a79d6b8.tar.gz
linux-stable-d7d15ac38ba61883f1250445a76ccd3c8a79d6b8.tar.bz2
linux-stable-d7d15ac38ba61883f1250445a76ccd3c8a79d6b8.zip
ASoC: cs42xx8: Add regcache mask dirty
commit ad6eecbfc01c987e0253371f274c3872042e4350 upstream. Add regcache_mark_dirty before regcache_sync for power of codec may be lost at suspend, then all the register need to be reconfigured. Fixes: 0c516b4ff85c ("ASoC: cs42xx8: Add codec driver support for CS42448/CS42888") Cc: <stable@vger.kernel.org> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs42xx8.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/cs42xx8.c b/sound/soc/codecs/cs42xx8.c
index ebb9e0cf8364..28a4ac36c4f8 100644
--- a/sound/soc/codecs/cs42xx8.c
+++ b/sound/soc/codecs/cs42xx8.c
@@ -558,6 +558,7 @@ static int cs42xx8_runtime_resume(struct device *dev)
msleep(5);
regcache_cache_only(cs42xx8->regmap, false);
+ regcache_mark_dirty(cs42xx8->regmap);
ret = regcache_sync(cs42xx8->regmap);
if (ret) {