From: Jarkko Nikula Date: Mon, 20 Sep 2010 07:39:13 +0000 (+0300) Subject: ASoC: tlv320aic3x: Use regulator notifiers for optimizing the cache sync X-Git-Tag: v2.6.37-rc1~126^2~1^2~77^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a895f8a09218716654fb89e0f876e4e3ca606a8;p=pandora-kernel.git 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 Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed