ASoC: TWL4030: Change DAPM routings and controls for DACs and PGAs
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Mon, 18 May 2009 13:02:04 +0000 (16:02 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 20 May 2009 08:52:51 +0000 (09:52 +0100)
commit4005d39a5f5549f1f6afe88abceed78b2ab225b6
treec8eed85f991d91646a0b3e8d8e6353b08c18f822
parente24805dd85283ac0912b9c400768a4d171b400ff
ASoC: TWL4030: Change DAPM routings and controls for DACs and PGAs

Restructuring the twl4030 codec's DAPM routing to be able to handle the power
sequences correctly.

The twl4030 codec internal implementation have this order:
DAC -> Analog PGA -> Mixer/Mux

While the ASoC framework expects the following order:
DAC -> Mixer -> Analog PGA

This patch moves the Analog PGA handling from SND_SOC_DAPM_PGA to _MIXER and
adds two levels of mixer to handle the digital and analog loopback
functionality.

Now the analog loopback does not powers on any of the DACs.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Tested-by: Anuj Aggarwal <anuj.aggarwal@ti.com>
Tested-by: Jarkko Nikula <jhnikula@gmail.com>
Tested-by: Misael Lopez Cruz <x0052729@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c