ASoC: Store DC offset correction for wm_hubs devices in class W mode
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Oct 2010 20:48:36 +0000 (13:48 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 28 Oct 2010 18:34:03 +0000 (11:34 -0700)
commitfec6dd833e733b5d9588a1f1e4d81118b79b5774
treefd321d8252fa61dd6df15166c41e262f4c8955ae
parentd906401114861585c990ff0290c002b5d22fc71a
ASoC: Store DC offset correction for wm_hubs devices in class W mode

Providing the analogue configuration of the output path remains the same
the DC offset corrected by the DC servo will remain identical so we can
skip the callibration, reducing the startup time for the headphone output.
Implement this for the wm_hubs devices as has been done for several other
CODECs.

Don't do this if we have any analogue paths enabled since offsets may be
being introduced by the analogue paths which could vary outside the
control of the driver.

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