ASoC: tpa6130a2: Define output pins with SND_SOC_DAPM_OUTPUT
authorJarkko Nikula <jhnikula@gmail.com>
Wed, 19 May 2010 10:55:26 +0000 (13:55 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 19 May 2010 15:38:03 +0000 (16:38 +0100)
Codec output pin should be defined with SND_SOC_DAPM_OUTPUT as otherwise
external widgets doesn't alter the output state.

Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Cc: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/tpa6130a2.c

index fa4fa33a51aa9a5f2a20114be5bc55fe83d3d4c4..89788921280ecaefd2c5e4f4ad305686208703b3 100644 (file)
@@ -371,8 +371,8 @@ static const struct snd_soc_dapm_widget tpa6130a2_dapm_widgets[] = {
                        0, 0, tpa6130a2_supply_event,
                        SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD),
        /* Outputs */
-       SND_SOC_DAPM_HP("TPA6130A2 Headphone Left", NULL),
-       SND_SOC_DAPM_HP("TPA6130A2 Headphone Right", NULL),
+       SND_SOC_DAPM_OUTPUT("TPA6130A2 Headphone Left"),
+       SND_SOC_DAPM_OUTPUT("TPA6130A2 Headphone Right"),
 };
 
 static const struct snd_soc_dapm_route audio_map[] = {