[alsa-devel] [PATCH 1/2] ASoC: sdp440: No need to call snd_soc_dapm_enable_pin at init time

Peter Ujfalusi peter.ujfalusi at ti.com
Fri Oct 7 09:49:31 CEST 2011


All DAPM widgets are connected after they have added. Machine driver
only need to mark not connected pins.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi at ti.com>
---
 sound/soc/omap/sdp4430.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/sound/soc/omap/sdp4430.c b/sound/soc/omap/sdp4430.c
index 10972fb..3069226 100644
--- a/sound/soc/omap/sdp4430.c
+++ b/sound/soc/omap/sdp4430.c
@@ -132,14 +132,6 @@ static int sdp4430_twl6040_init(struct snd_soc_pcm_runtime *rtd)
 	/* Set up SDP4430 specific audio path audio_map */
 	snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
 
-	/* 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");
-
 	ret = snd_soc_dapm_new_widgets(dapm);
 	if (ret)
 		return ret;
-- 
1.7.7



More information about the Alsa-devel mailing list