ASoC: tas2770: Set regcache when shutting down and waking device
authorDan Murphy <dmurphy@ti.com>
Wed, 23 Sep 2020 13:25:57 +0000 (08:25 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 23 Sep 2020 17:48:01 +0000 (18:48 +0100)
commitf938e5eb799c50f2ecdc20035bdaf9b699f97593
treebf318907468a38b9d1af4a01b071a87d321c831e
parentf2010f87aa23d14103b0ad2d6cf55ad371c11e1a
ASoC: tas2770: Set regcache when shutting down and waking device

Set the regcache to cache data and mark cache as dirty when the device
is shutdown when suspend is called. When the device is woken up then
sync the cache and set to not caching the data.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200923132600.10652-3-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2770.c