aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-04 00:23:38 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-14 06:18:37 -0400
commita115c72802c37351b6d87dfb62938d2ad440eef4 (patch)
treef0fdfd7579a86db7ab9b81efd2b0fae0e8e60344 /sound/soc
parentf6b864a9071e21186476910613ec9913b56067a2 (diff)
ASoC: Move WM8962 CLKREG_OVD earlier
When the clocking registers are not overriden some of the registers are not writable. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> Cc: stable@kernel.org
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8962.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 60d740ebeb5b..28650edfdebb 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -2927,10 +2927,6 @@ static int wm8962_set_bias_level(struct snd_soc_codec *codec,
2927 WM8962_BIAS_ENA | 0x180); 2927 WM8962_BIAS_ENA | 0x180);
2928 2928
2929 msleep(5); 2929 msleep(5);
2930
2931 snd_soc_update_bits(codec, WM8962_CLOCKING2,
2932 WM8962_CLKREG_OVD,
2933 WM8962_CLKREG_OVD);
2934 } 2930 }
2935 2931
2936 /* VMID 2*250k */ 2932 /* VMID 2*250k */
@@ -3868,6 +3864,10 @@ static int wm8962_probe(struct snd_soc_codec *codec)
3868 */ 3864 */
3869 snd_soc_update_bits(codec, WM8962_CLOCKING2, WM8962_SYSCLK_ENA, 0); 3865 snd_soc_update_bits(codec, WM8962_CLOCKING2, WM8962_SYSCLK_ENA, 0);
3870 3866
3867 /* Ensure we have soft control over all registers */
3868 snd_soc_update_bits(codec, WM8962_CLOCKING2,
3869 WM8962_CLKREG_OVD, WM8962_CLKREG_OVD);
3870
3871 regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies); 3871 regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);
3872 3872
3873 if (pdata) { 3873 if (pdata) {