ASoC: tpa6130a2: fix volume setting when no stream is running
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Thu, 22 Sep 2016 10:10:40 +0000 (13:10 +0300)
committerMark Brown <broonie@kernel.org>
Sat, 24 Sep 2016 18:26:59 +0000 (19:26 +0100)
commita114580f8f3e5bdefc14d75d6c3ba7032210b980
tree0f563f289991273024fe34e1a1eafeb2300a551b
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
ASoC: tpa6130a2: fix volume setting when no stream is running

After moving tpa6130a2 power management to DAPM, if chip can be physically
powered off (either reset_gpio is defined, or regulator indeed removes
power), then volume change no longer works unless chip is on due to
a running stream.

Fix that by entering regcache cache_only mode while chip is off.

Move regcache calls to tpa6130a2_power() to get them at driver init time
as well.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tpa6130a2.c