]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite816a9c77426bc29827d272e8c1b9ee7889986e0
tree0f563f289991273024fe34e1a1eafeb2300a551b
parentb482605f7939bd4035b2d11a7952dc3da5821c6d
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