From: Mark Brown Date: Thu, 21 Jan 2010 11:33:20 +0000 (+0000) Subject: ASoC: Use BIAS_OFF when idle for wm_hubs devices X-Git-Tag: v2.6.34-rc1~3^2~3^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=821dd91ec7838e1313d783384ea9ce43510d4013;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Acked-by: Liam Girdwood --- diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index d73c305..a67319d 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, WM8993_LINEOUT2_MODE, WM8993_LINEOUT2_MODE); + /* If the line outputs are differential then we aren't presenting + * VMID as an output and can disable it. + */ + if (lineout1_diff && lineout2_diff) + codec->idle_bias_off = 1; + if (lineout1fb) snd_soc_update_bits(codec, WM8993_ADDITIONAL_CONTROL, WM8993_LINEOUT1_FB, WM8993_LINEOUT1_FB);