diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-31 17:16:47 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-01-31 20:29:58 +0100 |
commit | f959dee9c7b5e36a139e1e8fcfedbddfea65d00d (patch) | |
tree | 4392179b08a3d963d079af1ea78089f7d556f0dd /sound/soc/codecs/wm8993.c | |
parent | ASoC: core: Support suspend to disk (diff) | |
download | linux-f959dee9c7b5e36a139e1e8fcfedbddfea65d00d.tar.xz linux-f959dee9c7b5e36a139e1e8fcfedbddfea65d00d.zip |
ASoC: wm_hubs: Push check for idle_bias_off out into drivers
For later wm_hubs devices we have much less need to keep the biases up
even when using single ended line outputs so flag idle_bias_off for
everything except the WM8993 and WM8994.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8993.c')
-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 474dc72b4d8d..db51007a6a43 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c @@ -1622,6 +1622,12 @@ static int wm8993_probe(struct snd_soc_codec *codec) wm_hubs_add_analogue_routes(codec, wm8993->pdata.lineout1_diff, wm8993->pdata.lineout2_diff); + /* If the line outputs are differential then we aren't presenting + * VMID as an output and can disable it. + */ + if (wm8993->pdata.lineout1_diff && wm8993->pdata.lineout2_diff) + codec->dapm.idle_bias_off = 1; + return 0; } |