aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/s3c24xx/s3c24xx_simtec_hermes.c')
-rw-r--r--sound/soc/s3c24xx/s3c24xx_simtec_hermes.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c b/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
index f88453735ae..05c793705d9 100644
--- a/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
+++ b/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
@@ -76,19 +76,20 @@ static const struct snd_soc_dapm_route base_map[] = {
76static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd) 76static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd)
77{ 77{
78 struct snd_soc_codec *codec = rtd->codec; 78 struct snd_soc_codec *codec = rtd->codec;
79 struct snd_soc_dapm_context *dapm = &codec->dapm;
79 80
80 snd_soc_dapm_new_controls(codec, dapm_widgets, 81 snd_soc_dapm_new_controls(dapm, dapm_widgets,
81 ARRAY_SIZE(dapm_widgets)); 82 ARRAY_SIZE(dapm_widgets));
82 83
83 snd_soc_dapm_add_routes(codec, base_map, ARRAY_SIZE(base_map)); 84 snd_soc_dapm_add_routes(dapm, base_map, ARRAY_SIZE(base_map));
84 85
85 snd_soc_dapm_enable_pin(codec, "Headphone Jack"); 86 snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
86 snd_soc_dapm_enable_pin(codec, "Line In"); 87 snd_soc_dapm_enable_pin(dapm, "Line In");
87 snd_soc_dapm_enable_pin(codec, "Line Out"); 88 snd_soc_dapm_enable_pin(dapm, "Line Out");
88 snd_soc_dapm_enable_pin(codec, "Mic Jack"); 89 snd_soc_dapm_enable_pin(dapm, "Mic Jack");
89 90
90 simtec_audio_init(rtd); 91 simtec_audio_init(rtd);
91 snd_soc_dapm_sync(codec); 92 snd_soc_dapm_sync(dapm);
92 93
93 return 0; 94 return 0;
94} 95}