]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8940: Enable cache usage to fix crashes on resume
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 16 Jun 2016 12:34:32 +0000 (14:34 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jun 2016 11:35:33 +0000 (12:35 +0100)
commit2432c4f3ba7a1ad266f1d803012b328536fabfd2
treec2181104840bce1515c2991bf33df385750d2090
parent50071cc55229e13f7b459c28388ff0f4e1bac824
ASoC: wm8940: Enable cache usage to fix crashes on resume

The wm8940 driver is using a regmap cache sync to restore the
configuration of the chip when switching from OFF to STANDBY, but does
not actually define a register cache which means that the restore is
never going to work and we trigger asserts in regmap.  Fix this by
enabling caching.

Based on commit f3c33671fa1305a7 ("ASoC: ak4642: Enable cache usage to
fix crashes on resume") by Mark Brown <broonie@kernel.org>.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8940.c