aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap')
-rw-r--r--sound/soc/omap/sdp3430.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sound/soc/omap/sdp3430.c b/sound/soc/omap/sdp3430.c
index 85e2e9183e21..4f1969de91a7 100644
--- a/sound/soc/omap/sdp3430.c
+++ b/sound/soc/omap/sdp3430.c
@@ -129,15 +129,6 @@ static int sdp3430_twl4030_init(struct snd_soc_pcm_runtime *rtd)
129 struct snd_soc_dapm_context *dapm = &codec->dapm; 129 struct snd_soc_dapm_context *dapm = &codec->dapm;
130 int ret; 130 int ret;
131 131
132 /* Add SDP3430 specific widgets */
133 ret = snd_soc_dapm_new_controls(dapm, sdp3430_twl4030_dapm_widgets,
134 ARRAY_SIZE(sdp3430_twl4030_dapm_widgets));
135 if (ret)
136 return ret;
137
138 /* Set up SDP3430 specific audio path audio_map */
139 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
140
141 /* SDP3430 connected pins */ 132 /* SDP3430 connected pins */
142 snd_soc_dapm_enable_pin(dapm, "Ext Mic"); 133 snd_soc_dapm_enable_pin(dapm, "Ext Mic");
143 snd_soc_dapm_enable_pin(dapm, "Ext Spk"); 134 snd_soc_dapm_enable_pin(dapm, "Ext Spk");
@@ -223,6 +214,11 @@ static struct snd_soc_card snd_soc_sdp3430 = {
223 .name = "SDP3430", 214 .name = "SDP3430",
224 .dai_link = sdp3430_dai, 215 .dai_link = sdp3430_dai,
225 .num_links = ARRAY_SIZE(sdp3430_dai), 216 .num_links = ARRAY_SIZE(sdp3430_dai),
217
218 .dapm_widgets = sdp3430_twl4030_dapm_widgets,
219 .num_dapm_widgets = ARRAY_SIZE(sdp3430_twl4030_dapm_widgets),
220 .dapm_routes = audio_map,
221 .num_dapm_routes = ARRAY_SIZE(audio_map),
226}; 222};
227 223
228static struct platform_device *sdp3430_snd_device; 224static struct platform_device *sdp3430_snd_device;