]> bbs.cooldavid.org Git - net-next-2.6.git/commit - sound/soc/codecs/wm8904.c
ASoC: Add support for BIAS_OFF when idle to WM8904
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Jan 2010 22:37:11 +0000 (22:37 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 4 Feb 2010 10:42:07 +0000 (10:42 +0000)
commitc133421800d9d1dfec0c98de6c9da0a7a99e0573
tree4ee82f1a6548ac7b2b2aae8008ec8008f49fbaed
parentcf56f62746c3e2f70bfad3d6fd051427a0022368
ASoC: Add support for BIAS_OFF when idle to WM8904

As well as disabling the biases of the CODEC the drop into BIAS_OFF will
also disable all the regulators powering the CODEC, allowing even greater
power savings on appropriately configured systems.

Since the regulator API does not currently provide notification when
regulators are disabled we assume that this always happens when we stop
using the regulators. Once 2.6.34 is merged this code can be optimised
to only sync the cache when power was actually removed.

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