aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx/smdk64xx_wm8580.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/s3c24xx/smdk64xx_wm8580.c')
-rw-r--r--sound/soc/s3c24xx/smdk64xx_wm8580.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/smdk64xx_wm8580.c b/sound/soc/s3c24xx/smdk64xx_wm8580.c
index 052e499b68d1..291939cf8483 100644
--- a/sound/soc/s3c24xx/smdk64xx_wm8580.c
+++ b/sound/soc/s3c24xx/smdk64xx_wm8580.c
@@ -182,21 +182,22 @@ static const struct snd_soc_dapm_route audio_map_rx[] = {
182static int smdk64xx_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd) 182static int smdk64xx_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd)
183{ 183{
184 struct snd_soc_codec *codec = rtd->codec; 184 struct snd_soc_codec *codec = rtd->codec;
185 struct snd_soc_dapm_context *dapm = &codec->dapm;
185 186
186 /* Add smdk64xx specific Capture widgets */ 187 /* Add smdk64xx specific Capture widgets */
187 snd_soc_dapm_new_controls(codec, wm8580_dapm_widgets_cpt, 188 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_cpt,
188 ARRAY_SIZE(wm8580_dapm_widgets_cpt)); 189 ARRAY_SIZE(wm8580_dapm_widgets_cpt));
189 190
190 /* Set up PAIFTX audio path */ 191 /* Set up PAIFTX audio path */
191 snd_soc_dapm_add_routes(codec, audio_map_tx, ARRAY_SIZE(audio_map_tx)); 192 snd_soc_dapm_add_routes(dapm, audio_map_tx, ARRAY_SIZE(audio_map_tx));
192 193
193 /* Enabling the microphone requires the fitting of a 0R 194 /* Enabling the microphone requires the fitting of a 0R
194 * resistor to connect the line from the microphone jack. 195 * resistor to connect the line from the microphone jack.
195 */ 196 */
196 snd_soc_dapm_disable_pin(codec, "MicIn"); 197 snd_soc_dapm_disable_pin(dapm, "MicIn");
197 198
198 /* signal a DAPM event */ 199 /* signal a DAPM event */
199 snd_soc_dapm_sync(codec); 200 snd_soc_dapm_sync(dapm);
200 201
201 return 0; 202 return 0;
202} 203}
@@ -204,16 +205,17 @@ static int smdk64xx_wm8580_init_paiftx(struct snd_soc_pcm_runtime *rtd)
204static int smdk64xx_wm8580_init_paifrx(struct snd_soc_pcm_runtime *rtd) 205static int smdk64xx_wm8580_init_paifrx(struct snd_soc_pcm_runtime *rtd)
205{ 206{
206 struct snd_soc_codec *codec = rtd->codec; 207 struct snd_soc_codec *codec = rtd->codec;
208 struct snd_soc_dapm_context *dapm = &codec->dapm;
207 209
208 /* Add smdk64xx specific Playback widgets */ 210 /* Add smdk64xx specific Playback widgets */
209 snd_soc_dapm_new_controls(codec, wm8580_dapm_widgets_pbk, 211 snd_soc_dapm_new_controls(dapm, wm8580_dapm_widgets_pbk,
210 ARRAY_SIZE(wm8580_dapm_widgets_pbk)); 212 ARRAY_SIZE(wm8580_dapm_widgets_pbk));
211 213
212 /* Set up PAIFRX audio path */ 214 /* Set up PAIFRX audio path */
213 snd_soc_dapm_add_routes(codec, audio_map_rx, ARRAY_SIZE(audio_map_rx)); 215 snd_soc_dapm_add_routes(dapm, audio_map_rx, ARRAY_SIZE(audio_map_rx));
214 216
215 /* signal a DAPM event */ 217 /* signal a DAPM event */
216 snd_soc_dapm_sync(codec); 218 snd_soc_dapm_sync(dapm);
217 219
218 return 0; 220 return 0;
219} 221}