]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic3x: Use regulator notifiers for optimizing the cache sync
authorJarkko Nikula <jhnikula@gmail.com>
Mon, 20 Sep 2010 07:39:13 +0000 (10:39 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 20 Sep 2010 17:40:47 +0000 (18:40 +0100)
commit35c940301de3897dbc447469e38e68805042dabf
treecef536f517a54d24a637c2734d24c8795be5eaf2
parentd3e31992175656701a7ccb21e48043f6938a75a3
ASoC: tlv320aic3x: Use regulator notifiers for optimizing the cache sync

There is no need to reset the codec and perform cache sync if none of the
supply regulators were not disabled. Patch registers a notifier callback for
each supply and callback then sets a flag to indicate when cache sync is
required.

HW writes are also needless when codec bias is off so cache_only flag is set
independently of actual supply regulators state.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/tlv320aic3x.c