ASoC: TWL4030: DAC power optimization
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Tue, 13 Jul 2010 09:07:44 +0000 (12:07 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 13 Jul 2010 10:30:12 +0000 (11:30 +0100)
commit27eeb1feed5c85877f39ff05f6fde0b538b8b9fc
tree6c5094b034ad4197e98b49ae9dc64c716f3c71c3
parent8b0d31532e2351db920871b8835425bf1e34de38
ASoC: TWL4030: DAC power optimization

Restructure the DAPM connections in order to enable
only the needed DAC (out of four in twl4030 series).
I need to keep the 'AIF Enable' supply connected to
the L2/R2 digital path, since the digital loopback
needs AIF and APLL running.
If no valid route available, than none of the DAC will
be powered, but the AIF and APLL is going to be enabled.
Furthermore, if only one audio path have valid route,
than only the corresponding DAC will be powered.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsomicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/twl4030.c