aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/snd-soc-afeb9260.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/atmel/snd-soc-afeb9260.c')
-rw-r--r--sound/soc/atmel/snd-soc-afeb9260.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sound/soc/atmel/snd-soc-afeb9260.c b/sound/soc/atmel/snd-soc-afeb9260.c
index e3d283561c19..92c709ed0965 100644
--- a/sound/soc/atmel/snd-soc-afeb9260.c
+++ b/sound/soc/atmel/snd-soc-afeb9260.c
@@ -105,19 +105,20 @@ static const struct snd_soc_dapm_route audio_map[] = {
105static int afeb9260_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd) 105static int afeb9260_tlv320aic23_init(struct snd_soc_pcm_runtime *rtd)
106{ 106{
107 struct snd_soc_codec *codec = rtd->codec; 107 struct snd_soc_codec *codec = rtd->codec;
108 struct snd_soc_dapm_context *dapm = &codec->dapm;
108 109
109 /* Add afeb9260 specific widgets */ 110 /* Add afeb9260 specific widgets */
110 snd_soc_dapm_new_controls(codec, tlv320aic23_dapm_widgets, 111 snd_soc_dapm_new_controls(dapm, tlv320aic23_dapm_widgets,
111 ARRAY_SIZE(tlv320aic23_dapm_widgets)); 112 ARRAY_SIZE(tlv320aic23_dapm_widgets));
112 113
113 /* Set up afeb9260 specific audio path audio_map */ 114 /* Set up afeb9260 specific audio path audio_map */
114 snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 115 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
115 116
116 snd_soc_dapm_enable_pin(codec, "Headphone Jack"); 117 snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
117 snd_soc_dapm_enable_pin(codec, "Line In"); 118 snd_soc_dapm_enable_pin(dapm, "Line In");
118 snd_soc_dapm_enable_pin(codec, "Mic Jack"); 119 snd_soc_dapm_enable_pin(dapm, "Mic Jack");
119 120
120 snd_soc_dapm_sync(codec); 121 snd_soc_dapm_sync(dapm);
121 122
122 return 0; 123 return 0;
123} 124}