diff options
Diffstat (limited to 'sound/soc/omap/sdp3430.c')
-rw-r--r-- | sound/soc/omap/sdp3430.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/sound/soc/omap/sdp3430.c b/sound/soc/omap/sdp3430.c index 07fbcf7d2411..3f72d17d1ef0 100644 --- a/sound/soc/omap/sdp3430.c +++ b/sound/soc/omap/sdp3430.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <sound/core.h> | 28 | #include <sound/core.h> |
29 | #include <sound/pcm.h> | 29 | #include <sound/pcm.h> |
30 | #include <sound/soc.h> | 30 | #include <sound/soc.h> |
31 | #include <sound/soc-dapm.h> | ||
32 | #include <sound/jack.h> | 31 | #include <sound/jack.h> |
33 | 32 | ||
34 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
@@ -191,39 +190,40 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
191 | static int sdp3430_twl4030_init(struct snd_soc_pcm_runtime *rtd) | 190 | static int sdp3430_twl4030_init(struct snd_soc_pcm_runtime *rtd) |
192 | { | 191 | { |
193 | struct snd_soc_codec *codec = rtd->codec; | 192 | struct snd_soc_codec *codec = rtd->codec; |
193 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
194 | int ret; | 194 | int ret; |
195 | 195 | ||
196 | /* Add SDP3430 specific widgets */ | 196 | /* Add SDP3430 specific widgets */ |
197 | ret = snd_soc_dapm_new_controls(codec, sdp3430_twl4030_dapm_widgets, | 197 | ret = snd_soc_dapm_new_controls(dapm, sdp3430_twl4030_dapm_widgets, |
198 | ARRAY_SIZE(sdp3430_twl4030_dapm_widgets)); | 198 | ARRAY_SIZE(sdp3430_twl4030_dapm_widgets)); |
199 | if (ret) | 199 | if (ret) |
200 | return ret; | 200 | return ret; |
201 | 201 | ||
202 | /* Set up SDP3430 specific audio path audio_map */ | 202 | /* Set up SDP3430 specific audio path audio_map */ |
203 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 203 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
204 | 204 | ||
205 | /* SDP3430 connected pins */ | 205 | /* SDP3430 connected pins */ |
206 | snd_soc_dapm_enable_pin(codec, "Ext Mic"); | 206 | snd_soc_dapm_enable_pin(dapm, "Ext Mic"); |
207 | snd_soc_dapm_enable_pin(codec, "Ext Spk"); | 207 | snd_soc_dapm_enable_pin(dapm, "Ext Spk"); |
208 | snd_soc_dapm_disable_pin(codec, "Headset Mic"); | 208 | snd_soc_dapm_disable_pin(dapm, "Headset Mic"); |
209 | snd_soc_dapm_disable_pin(codec, "Headset Stereophone"); | 209 | snd_soc_dapm_disable_pin(dapm, "Headset Stereophone"); |
210 | 210 | ||
211 | /* TWL4030 not connected pins */ | 211 | /* TWL4030 not connected pins */ |
212 | snd_soc_dapm_nc_pin(codec, "AUXL"); | 212 | snd_soc_dapm_nc_pin(dapm, "AUXL"); |
213 | snd_soc_dapm_nc_pin(codec, "AUXR"); | 213 | snd_soc_dapm_nc_pin(dapm, "AUXR"); |
214 | snd_soc_dapm_nc_pin(codec, "CARKITMIC"); | 214 | snd_soc_dapm_nc_pin(dapm, "CARKITMIC"); |
215 | snd_soc_dapm_nc_pin(codec, "DIGIMIC0"); | 215 | snd_soc_dapm_nc_pin(dapm, "DIGIMIC0"); |
216 | snd_soc_dapm_nc_pin(codec, "DIGIMIC1"); | 216 | snd_soc_dapm_nc_pin(dapm, "DIGIMIC1"); |
217 | 217 | ||
218 | snd_soc_dapm_nc_pin(codec, "OUTL"); | 218 | snd_soc_dapm_nc_pin(dapm, "OUTL"); |
219 | snd_soc_dapm_nc_pin(codec, "OUTR"); | 219 | snd_soc_dapm_nc_pin(dapm, "OUTR"); |
220 | snd_soc_dapm_nc_pin(codec, "EARPIECE"); | 220 | snd_soc_dapm_nc_pin(dapm, "EARPIECE"); |
221 | snd_soc_dapm_nc_pin(codec, "PREDRIVEL"); | 221 | snd_soc_dapm_nc_pin(dapm, "PREDRIVEL"); |
222 | snd_soc_dapm_nc_pin(codec, "PREDRIVER"); | 222 | snd_soc_dapm_nc_pin(dapm, "PREDRIVER"); |
223 | snd_soc_dapm_nc_pin(codec, "CARKITL"); | 223 | snd_soc_dapm_nc_pin(dapm, "CARKITL"); |
224 | snd_soc_dapm_nc_pin(codec, "CARKITR"); | 224 | snd_soc_dapm_nc_pin(dapm, "CARKITR"); |
225 | 225 | ||
226 | ret = snd_soc_dapm_sync(codec); | 226 | ret = snd_soc_dapm_sync(dapm); |
227 | if (ret) | 227 | if (ret) |
228 | return ret; | 228 | return ret; |
229 | 229 | ||