aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/samsung/jive_wm8750.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/samsung/jive_wm8750.c')
-rw-r--r--sound/soc/samsung/jive_wm8750.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/sound/soc/samsung/jive_wm8750.c b/sound/soc/samsung/jive_wm8750.c
index ed8f13a29c85..f5f7c6f822d5 100644
--- a/sound/soc/samsung/jive_wm8750.c
+++ b/sound/soc/samsung/jive_wm8750.c
@@ -110,18 +110,6 @@ static int jive_wm8750_init(struct snd_soc_pcm_runtime *rtd)
110 snd_soc_dapm_nc_pin(dapm, "OUT3"); 110 snd_soc_dapm_nc_pin(dapm, "OUT3");
111 snd_soc_dapm_nc_pin(dapm, "MONO"); 111 snd_soc_dapm_nc_pin(dapm, "MONO");
112 112
113 /* Add jive specific widgets */
114 err = snd_soc_dapm_new_controls(dapm, wm8750_dapm_widgets,
115 ARRAY_SIZE(wm8750_dapm_widgets));
116 if (err) {
117 printk(KERN_ERR "%s: failed to add widgets (%d)\n",
118 __func__, err);
119 return err;
120 }
121
122 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
123 snd_soc_dapm_sync(dapm);
124
125 return 0; 113 return 0;
126} 114}
127 115
@@ -141,6 +129,11 @@ static struct snd_soc_card snd_soc_machine_jive = {
141 .name = "Jive", 129 .name = "Jive",
142 .dai_link = &jive_dai, 130 .dai_link = &jive_dai,
143 .num_links = 1, 131 .num_links = 1,
132
133 .dapm_widgtets = wm8750_dapm_widgets,
134 .num_dapm_widgets = ARRAY_SIZE(wm8750_dapm_widgets),
135 .dapm_routes = audio_map,
136 .num_dapm_routes = ARRAY_SIZE(audio_map),
144}; 137};
145 138
146static struct platform_device *jive_snd_device; 139static struct platform_device *jive_snd_device;