Re: [PATCH] ASoC: tpa6130a2: fix volume setting when no stream is running

2016-09-24 Thread Mark Brown
On Thu, Sep 22, 2016 at 01:10:40PM +0300, Nikita Yushchenko wrote: > - ret = regulator_disable(data->supply); > - if (ret != 0) { > + ret2 = regulator_disable(data->supply); > + if (ret2 != 0) { > dev_err(data->dev, > -

[PATCH] ASoC: tpa6130a2: fix volume setting when no stream is running

2016-09-22 Thread Nikita Yushchenko
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.