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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 6 Jun 2016 23:12:28 +0000 (19:12 -0400)
commitded044fcdd60ec9fea0e3cc512d85073f88d129b
tree9f44d02d0c08add1cc70e9ddacb78933b1b4f4d5
parent141afa30231ef169dc4d1bcc00c00478068cf2f7
ASoC: ak4642: Enable cache usage to fix crashes on resume

[ Upstream commit d3030d11961a8c103cf07aed59905276ddfc06c2 ]

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
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/codecs/ak4642.c