diff options
Diffstat (limited to 'sound/soc/omap')
-rw-r--r-- | sound/soc/omap/n810.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/soc/omap/n810.c b/sound/soc/omap/n810.c index 6533563a6011..c2afffbe8da6 100644 --- a/sound/soc/omap/n810.c +++ b/sound/soc/omap/n810.c | |||
@@ -177,7 +177,7 @@ static const struct snd_soc_dapm_widget aic33_dapm_widgets[] = { | |||
177 | SND_SOC_DAPM_HP("Headphone Jack", n810_jack_event), | 177 | SND_SOC_DAPM_HP("Headphone Jack", n810_jack_event), |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static const char *audio_map[][3] = { | 180 | static const struct snd_soc_dapm_route audio_map[] = { |
181 | {"Headphone Jack", NULL, "HPLOUT"}, | 181 | {"Headphone Jack", NULL, "HPLOUT"}, |
182 | {"Headphone Jack", NULL, "HPROUT"}, | 182 | {"Headphone Jack", NULL, "HPROUT"}, |
183 | 183 | ||
@@ -217,13 +217,11 @@ static int n810_aic33_init(struct snd_soc_codec *codec) | |||
217 | } | 217 | } |
218 | 218 | ||
219 | /* Add N810 specific widgets */ | 219 | /* Add N810 specific widgets */ |
220 | for (i = 0; i < ARRAY_SIZE(aic33_dapm_widgets); i++) | 220 | snd_soc_dapm_new_controls(codec, aic33_dapm_widgets, |
221 | snd_soc_dapm_new_control(codec, &aic33_dapm_widgets[i]); | 221 | ARRAY_SIZE(aic33_dapm_widgets)); |
222 | 222 | ||
223 | /* Set up N810 specific audio path audio_map */ | 223 | /* Set up N810 specific audio path audio_map */ |
224 | for (i = 0; i < ARRAY_SIZE(audio_map); i++) | 224 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); |
225 | snd_soc_dapm_connect_input(codec, audio_map[i][0], | ||
226 | audio_map[i][1], audio_map[i][2]); | ||
227 | 225 | ||
228 | snd_soc_dapm_sync_endpoints(codec); | 226 | snd_soc_dapm_sync_endpoints(codec); |
229 | 227 | ||