aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/imx/wm1133-ev1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/imx/wm1133-ev1.c')
-rw-r--r--sound/soc/imx/wm1133-ev1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/imx/wm1133-ev1.c b/sound/soc/imx/wm1133-ev1.c
index 30fdb15065be..46fadf497243 100644
--- a/sound/soc/imx/wm1133-ev1.c
+++ b/sound/soc/imx/wm1133-ev1.c
@@ -213,11 +213,12 @@ static struct snd_soc_jack_pin mic_jack_pins[] = {
213static int wm1133_ev1_init(struct snd_soc_pcm_runtime *rtd) 213static int wm1133_ev1_init(struct snd_soc_pcm_runtime *rtd)
214{ 214{
215 struct snd_soc_codec *codec = rtd->codec; 215 struct snd_soc_codec *codec = rtd->codec;
216 struct snd_soc_dapm_context *dapm = &codec->dapm;
216 217
217 snd_soc_dapm_new_controls(codec, wm1133_ev1_widgets, 218 snd_soc_dapm_new_controls(dapm, wm1133_ev1_widgets,
218 ARRAY_SIZE(wm1133_ev1_widgets)); 219 ARRAY_SIZE(wm1133_ev1_widgets));
219 220
220 snd_soc_dapm_add_routes(codec, wm1133_ev1_map, 221 snd_soc_dapm_add_routes(dapm, wm1133_ev1_map,
221 ARRAY_SIZE(wm1133_ev1_map)); 222 ARRAY_SIZE(wm1133_ev1_map));
222 223
223 /* Headphone jack detection */ 224 /* Headphone jack detection */
@@ -234,7 +235,7 @@ static int wm1133_ev1_init(struct snd_soc_pcm_runtime *rtd)
234 wm8350_mic_jack_detect(codec, &mic_jack, SND_JACK_MICROPHONE, 235 wm8350_mic_jack_detect(codec, &mic_jack, SND_JACK_MICROPHONE,
235 SND_JACK_BTN_0); 236 SND_JACK_BTN_0);
236 237
237 snd_soc_dapm_force_enable_pin(codec, "Mic Bias"); 238 snd_soc_dapm_force_enable_pin(dapm, "Mic Bias");
238 239
239 return 0; 240 return 0;
240} 241}