]> 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)
commit32ee0c286c81f1e44e925ecd9b4e985c9bbac2db
treec2181104840bce1515c2991bf33df385750d2090
parenteafb69e30fd2c5eb541ab8464cb7c24186e23039
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 299f35145b824a83 ("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