diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-14 06:25:18 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-14 13:10:39 -0500 |
commit | 83b6542533859d6ed6c95f8b869291e885eab5bd (patch) | |
tree | 570922e09db950ae17022cfb5a97b3a436159665 | |
parent | d88429a695a4a9ec66e90068956bbccb25d4ac6d (diff) |
ASoC: Explicitly clear WM8993 ramp controls on power down
This helps ensure that the ramp logic is reset when powering back up.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r-- | sound/soc/codecs/wm8993.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 77b1d441c3d0..15f34a26debf 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -1030,6 +1030,12 @@ static int wm8993_set_bias_level(struct snd_soc_codec *codec, | |||
1030 | WM8993_VMID_SEL_MASK | WM8993_BIAS_ENA, | 1030 | WM8993_VMID_SEL_MASK | WM8993_BIAS_ENA, |
1031 | 0); | 1031 | 0); |
1032 | 1032 | ||
1033 | snd_soc_update_bits(codec, WM8993_ANTIPOP2, | ||
1034 | WM8993_STARTUP_BIAS_ENA | | ||
1035 | WM8993_VMID_BUF_ENA | | ||
1036 | WM8993_VMID_RAMP_MASK | | ||
1037 | WM8993_BIAS_SRC, 0); | ||
1038 | |||
1033 | #ifdef CONFIG_REGULATOR | 1039 | #ifdef CONFIG_REGULATOR |
1034 | /* Post 2.6.34 we will be able to get a callback when | 1040 | /* Post 2.6.34 we will be able to get a callback when |
1035 | * the regulators are disabled which we can use but | 1041 | * the regulators are disabled which we can use but |