ASoC: ak4642: Enable cache usage to fix crashes on resume
authorMark Brown <broonie@kernel.org>
Wed, 18 May 2016 17:30:39 +0000 (18:30 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 May 2016 18:13:28 +0000 (19:13 +0100)
commitd3030d11961a8c103cf07aed59905276ddfc06c2
treea3d3bc8b39393741a43b00b8ffae77c1ba79695a
parent29cf67b99527296e9c9b9f6995c1d271d21f79c0
ASoC: ak4642: Enable cache usage to fix crashes on resume

The ak4642 driver is using a regmap cache sync to restore the
configuration of the chip on resume but (as Peter observed) does not
actually define a register cache which means that the resume is never
going to work and we trigger asserts in regmap.  Fix this by enabling
caching.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/ak4642.c