diff options
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index bc9e6b0b3f6f..fd969057344d 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -132,26 +132,27 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
132 | static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd) | 132 | static int evm_aic3x_init(struct snd_soc_pcm_runtime *rtd) |
133 | { | 133 | { |
134 | struct snd_soc_codec *codec = rtd->codec; | 134 | struct snd_soc_codec *codec = rtd->codec; |
135 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
135 | 136 | ||
136 | /* Add davinci-evm specific widgets */ | 137 | /* Add davinci-evm specific widgets */ |
137 | snd_soc_dapm_new_controls(codec, aic3x_dapm_widgets, | 138 | snd_soc_dapm_new_controls(dapm, aic3x_dapm_widgets, |
138 | ARRAY_SIZE(aic3x_dapm_widgets)); | 139 | ARRAY_SIZE(aic3x_dapm_widgets)); |
139 | 140 | ||
140 | /* Set up davinci-evm specific audio path audio_map */ | 141 | /* Set up davinci-evm specific audio path audio_map */ |
141 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 142 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); |
142 | 143 | ||
143 | /* not connected */ | 144 | /* not connected */ |
144 | snd_soc_dapm_disable_pin(codec, "MONO_LOUT"); | 145 | snd_soc_dapm_disable_pin(dapm, "MONO_LOUT"); |
145 | snd_soc_dapm_disable_pin(codec, "HPLCOM"); | 146 | snd_soc_dapm_disable_pin(dapm, "HPLCOM"); |
146 | snd_soc_dapm_disable_pin(codec, "HPRCOM"); | 147 | snd_soc_dapm_disable_pin(dapm, "HPRCOM"); |
147 | 148 | ||
148 | /* always connected */ | 149 | /* always connected */ |
149 | snd_soc_dapm_enable_pin(codec, "Headphone Jack"); | 150 | snd_soc_dapm_enable_pin(dapm, "Headphone Jack"); |
150 | snd_soc_dapm_enable_pin(codec, "Line Out"); | 151 | snd_soc_dapm_enable_pin(dapm, "Line Out"); |
151 | snd_soc_dapm_enable_pin(codec, "Mic Jack"); | 152 | snd_soc_dapm_enable_pin(dapm, "Mic Jack"); |
152 | snd_soc_dapm_enable_pin(codec, "Line In"); | 153 | snd_soc_dapm_enable_pin(dapm, "Line In"); |
153 | 154 | ||
154 | snd_soc_dapm_sync(codec); | 155 | snd_soc_dapm_sync(dapm); |
155 | 156 | ||
156 | return 0; | 157 | return 0; |
157 | } | 158 | } |