]> git.openfabrics.org - ~emulex/infiniband.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)
commit5a895f8a09218716654fb89e0f876e4e3ca606a8
treecef536f517a54d24a637c2734d24c8795be5eaf2
parent6c1a7d40c2237ff7690ca682336e22777c847ffe
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