]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: sdp4430: No need to call dapm_pin_enable at init time
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 10 Oct 2011 12:34:16 +0000 (15:34 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Oct 2011 15:18:11 +0000 (16:18 +0100)
Widgets are connected by default.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/sdp4430.c

index ebe1bbbeaffd6a70ff723a04208c66943261aec0..cc3d792af5ead2d0761210eacba97811eb3135b4 100644 (file)
@@ -120,17 +120,8 @@ static const struct snd_soc_dapm_route audio_map[] = {
 static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd)
 {
        struct snd_soc_codec *codec = rtd->codec;
-       struct snd_soc_dapm_context *dapm = &codec->dapm;
        int ret, hs_trim;
 
-       /* SDP4430 connected pins */
-       snd_soc_dapm_enable_pin(dapm, "Ext Mic");
-       snd_soc_dapm_enable_pin(dapm, "Ext Spk");
-       snd_soc_dapm_enable_pin(dapm, "AFML");
-       snd_soc_dapm_enable_pin(dapm, "AFMR");
-       snd_soc_dapm_enable_pin(dapm, "Headset Mic");
-       snd_soc_dapm_enable_pin(dapm, "Headset Stereophone");
-
        /*
         * Configure McPDM offset cancellation based on the HSOTRIM value from
         * twl6040.