aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/s3c24xx/goni_wm8994.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/s3c24xx/goni_wm8994.c')
-rw-r--r--sound/soc/s3c24xx/goni_wm8994.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sound/soc/s3c24xx/goni_wm8994.c b/sound/soc/s3c24xx/goni_wm8994.c
index 694f702cc8e2..052729c6540d 100644
--- a/sound/soc/s3c24xx/goni_wm8994.c
+++ b/sound/soc/s3c24xx/goni_wm8994.c
@@ -97,25 +97,26 @@ static const struct snd_soc_dapm_route goni_dapm_routes[] = {
97static int goni_wm8994_init(struct snd_soc_pcm_runtime *rtd) 97static int goni_wm8994_init(struct snd_soc_pcm_runtime *rtd)
98{ 98{
99 struct snd_soc_codec *codec = rtd->codec; 99 struct snd_soc_codec *codec = rtd->codec;
100 struct snd_soc_dapm_context *dapm = &codec->dapm;
100 int ret; 101 int ret;
101 102
102 /* add goni specific widgets */ 103 /* add goni specific widgets */
103 snd_soc_dapm_new_controls(codec, goni_dapm_widgets, 104 snd_soc_dapm_new_controls(dapm, goni_dapm_widgets,
104 ARRAY_SIZE(goni_dapm_widgets)); 105 ARRAY_SIZE(goni_dapm_widgets));
105 106
106 /* set up goni specific audio routes */ 107 /* set up goni specific audio routes */
107 snd_soc_dapm_add_routes(codec, goni_dapm_routes, 108 snd_soc_dapm_add_routes(dapm, goni_dapm_routes,
108 ARRAY_SIZE(goni_dapm_routes)); 109 ARRAY_SIZE(goni_dapm_routes));
109 110
110 /* set endpoints to not connected */ 111 /* set endpoints to not connected */
111 snd_soc_dapm_nc_pin(codec, "IN2LP:VXRN"); 112 snd_soc_dapm_nc_pin(dapm, "IN2LP:VXRN");
112 snd_soc_dapm_nc_pin(codec, "IN2RP:VXRP"); 113 snd_soc_dapm_nc_pin(dapm, "IN2RP:VXRP");
113 snd_soc_dapm_nc_pin(codec, "LINEOUT1N"); 114 snd_soc_dapm_nc_pin(dapm, "LINEOUT1N");
114 snd_soc_dapm_nc_pin(codec, "LINEOUT1P"); 115 snd_soc_dapm_nc_pin(dapm, "LINEOUT1P");
115 snd_soc_dapm_nc_pin(codec, "LINEOUT2N"); 116 snd_soc_dapm_nc_pin(dapm, "LINEOUT2N");
116 snd_soc_dapm_nc_pin(codec, "LINEOUT2P"); 117 snd_soc_dapm_nc_pin(dapm, "LINEOUT2P");
117 118
118 snd_soc_dapm_sync(codec); 119 snd_soc_dapm_sync(dapm);
119 120
120 /* Headset jack detection */ 121 /* Headset jack detection */
121 ret = snd_soc_jack_new(&goni, "Headset Jack", 122 ret = snd_soc_jack_new(&goni, "Headset Jack",