diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-03-29 12:09:45 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-04-05 11:19:09 -0400 |
commit | 8437f7006b9cfa249791e2fd57596683d4561843 (patch) | |
tree | c1701c27b37b21c53daec55f730162757511e041 /sound/soc/codecs/wm8994.c | |
parent | 3fa49e3ad9ac20b15edfb0c51bbad36e45a84b17 (diff) |
ASoC: Support second DC servo readback method for wm_hubs
More recent Wolfson hubs devices add the ability to read back the DC
servo calibration information from the register used to write offsets,
and later still ones remove the old readback registers. Add support
for the new scheme, and use it for WM8994 device revisions that
support it.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8994.c')
-rw-r--r-- | sound/soc/codecs/wm8994.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index d10d65191fd2..c80218f23bb9 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -3730,11 +3730,12 @@ static int wm8994_codec_probe(struct platform_device *pdev) | |||
3730 | case 3: | 3730 | case 3: |
3731 | wm8994->hubs.dcs_codes = -5; | 3731 | wm8994->hubs.dcs_codes = -5; |
3732 | wm8994->hubs.hp_startup_mode = 1; | 3732 | wm8994->hubs.hp_startup_mode = 1; |
3733 | wm8994->hubs.dcs_readback_mode = 1; | ||
3733 | break; | 3734 | break; |
3734 | default: | 3735 | default: |
3736 | wm8994->hubs.dcs_readback_mode = 1; | ||
3735 | break; | 3737 | break; |
3736 | } | 3738 | } |
3737 | |||
3738 | 3739 | ||
3739 | /* Remember if AIFnLRCLK is configured as a GPIO. This should be | 3740 | /* Remember if AIFnLRCLK is configured as a GPIO. This should be |
3740 | * configured on init - if a system wants to do this dynamically | 3741 | * configured on init - if a system wants to do this dynamically |