diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-01 00:02:17 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-01 09:14:30 -0400 |
commit | 79ef0abcd85842bc12ffb3297b958565f060464c (patch) | |
tree | 50732d29f63130d9e726f0f35bab82cc27b3d2c7 /sound/soc/codecs/wm8994.c | |
parent | 25032c119e5f43725b624ab30e2ccb8c23b9ebd3 (diff) |
ASoC: Implement new DC servo readback mode for late WM8994 revisions
Later WM8994 devices implement a new DC servo readback mode with the
register used to access the offset moved to register 0x59. Implement
support for this and enable it on the appropriate devices.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
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 09e680ae88b2..c0956899d5b5 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -107,6 +107,7 @@ static int wm8994_volatile(struct snd_soc_codec *codec, unsigned int reg) | |||
107 | case WM8994_LDO_2: | 107 | case WM8994_LDO_2: |
108 | case WM8958_DSP2_EXECCONTROL: | 108 | case WM8958_DSP2_EXECCONTROL: |
109 | case WM8958_MIC_DETECT_3: | 109 | case WM8958_MIC_DETECT_3: |
110 | case WM8994_DC_SERVO_4E: | ||
110 | return 1; | 111 | return 1; |
111 | default: | 112 | default: |
112 | return 0; | 113 | return 0; |
@@ -2978,7 +2979,7 @@ static int wm8994_codec_probe(struct snd_soc_codec *codec) | |||
2978 | wm8994->hubs.series_startup = 1; | 2979 | wm8994->hubs.series_startup = 1; |
2979 | break; | 2980 | break; |
2980 | default: | 2981 | default: |
2981 | wm8994->hubs.dcs_readback_mode = 1; | 2982 | wm8994->hubs.dcs_readback_mode = 2; |
2982 | break; | 2983 | break; |
2983 | } | 2984 | } |
2984 | 2985 | ||