aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>2009-01-27 04:29:42 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-01-27 05:43:02 -0500
commitfb2a2f84908460c18c3894963990518b224dd9ff (patch)
treea5a6be6fe3e49343a849285ca4bd3e48e65b8e10 /sound/soc
parentaad749e51a66d473f5cef4a050e3e36795261be3 (diff)
ASoC: TWL4030: Physical ADC and amplifier power switch change
Change the power switches for the physical ADC and for the amplifiers for the analog capture path to map more closely the actual path inside of the codec. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/twl4030.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c
index 900486ef633d..8fe059e3e9ab 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -802,16 +802,16 @@ static const struct snd_soc_dapm_widget twl4030_dapm_widgets[] = {
802 SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD| 802 SND_SOC_DAPM_POST_PMU|SND_SOC_DAPM_POST_PMD|
803 SND_SOC_DAPM_POST_REG), 803 SND_SOC_DAPM_POST_REG),
804 804
805 /* Analog input muxes with power switch for the physical ADCL/R */ 805 /* Analog input muxes with switch for the capture amplifiers */
806 SND_SOC_DAPM_VALUE_MUX("Analog Left Capture Route", 806 SND_SOC_DAPM_VALUE_MUX("Analog Left Capture Route",
807 TWL4030_REG_AVADC_CTL, 3, 0, &twl4030_dapm_analoglmic_control), 807 TWL4030_REG_ANAMICL, 4, 0, &twl4030_dapm_analoglmic_control),
808 SND_SOC_DAPM_VALUE_MUX("Analog Right Capture Route", 808 SND_SOC_DAPM_VALUE_MUX("Analog Right Capture Route",
809 TWL4030_REG_AVADC_CTL, 1, 0, &twl4030_dapm_analogrmic_control), 809 TWL4030_REG_ANAMICR, 4, 0, &twl4030_dapm_analogrmic_control),
810 810
811 SND_SOC_DAPM_PGA("Analog Left Amplifier", 811 SND_SOC_DAPM_PGA("ADC Physical Left",
812 TWL4030_REG_ANAMICL, 4, 0, NULL, 0), 812 TWL4030_REG_AVADC_CTL, 3, 0, NULL, 0),
813 SND_SOC_DAPM_PGA("Analog Right Amplifier", 813 SND_SOC_DAPM_PGA("ADC Physical Right",
814 TWL4030_REG_ANAMICR, 4, 0, NULL, 0), 814 TWL4030_REG_AVADC_CTL, 1, 0, NULL, 0),
815 815
816 SND_SOC_DAPM_PGA("Digimic0 Enable", 816 SND_SOC_DAPM_PGA("Digimic0 Enable",
817 TWL4030_REG_ADCMICSEL, 1, 0, NULL, 0), 817 TWL4030_REG_ADCMICSEL, 1, 0, NULL, 0),
@@ -885,23 +885,23 @@ static const struct snd_soc_dapm_route intercon[] = {
885 {"Analog Right Capture Route", "Sub mic", "SUBMIC"}, 885 {"Analog Right Capture Route", "Sub mic", "SUBMIC"},
886 {"Analog Right Capture Route", "AUXR", "AUXR"}, 886 {"Analog Right Capture Route", "AUXR", "AUXR"},
887 887
888 {"Analog Left Amplifier", NULL, "Analog Left Capture Route"}, 888 {"ADC Physical Left", NULL, "Analog Left Capture Route"},
889 {"Analog Right Amplifier", NULL, "Analog Right Capture Route"}, 889 {"ADC Physical Right", NULL, "Analog Right Capture Route"},
890 890
891 {"Digimic0 Enable", NULL, "DIGIMIC0"}, 891 {"Digimic0 Enable", NULL, "DIGIMIC0"},
892 {"Digimic1 Enable", NULL, "DIGIMIC1"}, 892 {"Digimic1 Enable", NULL, "DIGIMIC1"},
893 893
894 /* TX1 Left capture path */ 894 /* TX1 Left capture path */
895 {"TX1 Capture Route", "Analog", "Analog Left Amplifier"}, 895 {"TX1 Capture Route", "Analog", "ADC Physical Left"},
896 {"TX1 Capture Route", "Digimic0", "Digimic0 Enable"}, 896 {"TX1 Capture Route", "Digimic0", "Digimic0 Enable"},
897 /* TX1 Right capture path */ 897 /* TX1 Right capture path */
898 {"TX1 Capture Route", "Analog", "Analog Right Amplifier"}, 898 {"TX1 Capture Route", "Analog", "ADC Physical Right"},
899 {"TX1 Capture Route", "Digimic0", "Digimic0 Enable"}, 899 {"TX1 Capture Route", "Digimic0", "Digimic0 Enable"},
900 /* TX2 Left capture path */ 900 /* TX2 Left capture path */
901 {"TX2 Capture Route", "Analog", "Analog Left Amplifier"}, 901 {"TX2 Capture Route", "Analog", "ADC Physical Left"},
902 {"TX2 Capture Route", "Digimic1", "Digimic1 Enable"}, 902 {"TX2 Capture Route", "Digimic1", "Digimic1 Enable"},
903 /* TX2 Right capture path */ 903 /* TX2 Right capture path */
904 {"TX2 Capture Route", "Analog", "Analog Right Amplifier"}, 904 {"TX2 Capture Route", "Analog", "ADC Physical Right"},
905 {"TX2 Capture Route", "Digimic1", "Digimic1 Enable"}, 905 {"TX2 Capture Route", "Digimic1", "Digimic1 Enable"},
906 906
907 {"ADC Virtual Left1", NULL, "TX1 Capture Route"}, 907 {"ADC Virtual Left1", NULL, "TX1 Capture Route"},