diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-21 06:33:20 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-01-21 07:05:39 -0500 |
commit | 821dd91ec7838e1313d783384ea9ce43510d4013 (patch) | |
tree | 020f4733c0bc55ea7e3b3262dd6685f126f2e298 /sound/soc/codecs/wm_hubs.c | |
parent | a96ca3387382498ec8b501db5acef3ed9eb1bd36 (diff) |
ASoC: Use BIAS_OFF when idle for wm_hubs devices
This provides a small power saving when audio is inactive.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm_hubs.c')
-rw-r--r-- | sound/soc/codecs/wm_hubs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index d73c30536a2c..a67319d9ca7e 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c | |||
@@ -753,6 +753,12 @@ int wm_hubs_handle_analogue_pdata(struct snd_soc_codec *codec, | |||
753 | WM8993_LINEOUT2_MODE, | 753 | WM8993_LINEOUT2_MODE, |
754 | WM8993_LINEOUT2_MODE); | 754 | WM8993_LINEOUT2_MODE); |
755 | 755 | ||
756 | /* If the line outputs are differential then we aren't presenting | ||
757 | * VMID as an output and can disable it. | ||
758 | */ | ||
759 | if (lineout1_diff && lineout2_diff) | ||
760 | codec->idle_bias_off = 1; | ||
761 | |||
756 | if (lineout1fb) | 762 | if (lineout1fb) |
757 | snd_soc_update_bits(codec, WM8993_ADDITIONAL_CONTROL, | 763 | snd_soc_update_bits(codec, WM8993_ADDITIONAL_CONTROL, |
758 | WM8993_LINEOUT1_FB, WM8993_LINEOUT1_FB); | 764 | WM8993_LINEOUT1_FB, WM8993_LINEOUT1_FB); |