aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-08 08:30:17 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-10 06:10:44 -0400
commit03b5362d2fef02cabbbb440d861d27e40ed3a929 (patch)
tree193d17472ef8fd2752ca92b5691f9499cb343e10
parentce363f6d34e43dd860f1df10fa213ad1bbf6a4e0 (diff)
ASoC: Convert Jive to table based init
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Sangbeom Kim <sbkim73@samsung.com>
-rw-r--r--sound/soc/samsung/jive_wm8750.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sound/soc/samsung/jive_wm8750.c b/sound/soc/samsung/jive_wm8750.c
index bb69e9fbaef6..f5f7c6f822d5 100644
--- a/sound/soc/samsung/jive_wm8750.c
+++ b/sound/soc/samsung/jive_wm8750.c
@@ -110,17 +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
124 return 0; 113 return 0;
125} 114}
126 115
@@ -140,6 +129,11 @@ static struct snd_soc_card snd_soc_machine_jive = {
140 .name = "Jive", 129 .name = "Jive",
141 .dai_link = &jive_dai, 130 .dai_link = &jive_dai,
142 .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),
143}; 137};
144 138
145static struct platform_device *jive_snd_device; 139static struct platform_device *jive_snd_device;