aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-08 07:02:13 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-11 09:30:19 -0400
commit35f0678ef7fc3a85d032bc870d1d11af6089e843 (patch)
tree2a73202711a49513a815533632e57f399080d1a2 /sound/soc/samsung
parentf8cf149f3e1568da7ea9ec5148d18ed83ac530de (diff)
ASoC: Convert Goni to data based DAPM init
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r--sound/soc/samsung/goni_wm8994.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sound/soc/samsung/goni_wm8994.c b/sound/soc/samsung/goni_wm8994.c
index 86ece1a97375..4a34f608e131 100644
--- a/sound/soc/samsung/goni_wm8994.c
+++ b/sound/soc/samsung/goni_wm8994.c
@@ -99,14 +99,6 @@ static int goni_wm8994_init(struct snd_soc_pcm_runtime *rtd)
99 struct snd_soc_dapm_context *dapm = &codec->dapm; 99 struct snd_soc_dapm_context *dapm = &codec->dapm;
100 int ret; 100 int ret;
101 101
102 /* add goni specific widgets */
103 snd_soc_dapm_new_controls(dapm, goni_dapm_widgets,
104 ARRAY_SIZE(goni_dapm_widgets));
105
106 /* set up goni specific audio routes */
107 snd_soc_dapm_add_routes(dapm, goni_dapm_routes,
108 ARRAY_SIZE(goni_dapm_routes));
109
110 /* set endpoints to not connected */ 102 /* set endpoints to not connected */
111 snd_soc_dapm_nc_pin(dapm, "IN2LP:VXRN"); 103 snd_soc_dapm_nc_pin(dapm, "IN2LP:VXRN");
112 snd_soc_dapm_nc_pin(dapm, "IN2RP:VXRP"); 104 snd_soc_dapm_nc_pin(dapm, "IN2RP:VXRP");
@@ -253,6 +245,11 @@ static struct snd_soc_card goni = {
253 .name = "goni", 245 .name = "goni",
254 .dai_link = goni_dai, 246 .dai_link = goni_dai,
255 .num_links = ARRAY_SIZE(goni_dai), 247 .num_links = ARRAY_SIZE(goni_dai),
248
249 .dapm_widgets = goni_dapm_widgets,
250 .num_dapm_widgets = ARRAY_SIZE(goni_dapm_widgets),
251 .dapm_routes = goni_dapm_routes,
252 .num_dapm_routes = ARRAY_SIZE(goni_dapm_routes),
256}; 253};
257 254
258static int __init goni_init(void) 255static int __init goni_init(void)