ASoC: ak4458: Add regulator support
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 14 Aug 2020 09:32:41 +0000 (17:32 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 18 Aug 2020 13:52:37 +0000 (14:52 +0100)
commit7e3096e8f823682c20e033113ec32dd590364774
tree9e7d796040d65384245295a37d37fceb39f5c86b
parent617a156f2ebae841bcd64ee5a21d0e12b5d733ab
ASoC: ak4458: Add regulator support

"AVDD" is for analog power supply,  "DVDD" is for digital power
supply, they can improve the power management.

As the regulator is enabled in pm runtime resume, which is
behind the component driver probe, so accessing registers in
component driver probe will fail. Fix this issue by enabling
regcache_cache_only after pm_runtime_enable.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1597397561-2426-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ak4458.c