/* example machine audio_mapnections */
-static const char* audio_map[][3] = {
+static const struct snd_soc_dapm_route audio_map[] = {
/* Connections to the lm4853 amp */
{"Stereo Out", NULL, "LOUT1"},
/* Connect the ALC pins */
{"ACIN", NULL, "ACOP"},
-
- {NULL, NULL, NULL},
};
static const struct snd_kcontrol_new wm8753_neo1973_gta02_controls[] = {
snd_soc_dapm_set_endpoint(codec, "LINE1", 0);
snd_soc_dapm_set_endpoint(codec, "LINE2", 0);
+
/* Add neo1973 gta02 specific widgets */
+ snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets, ARRAY_SIZE(wm8753_dapm_widgets));
+#if 0
for (i = 0; i < ARRAY_SIZE(wm8753_dapm_widgets); i++)
snd_soc_dapm_new_control(codec, &wm8753_dapm_widgets[i]);
+#endif
/* add neo1973 gta02 specific controls */
for (i = 0; i < ARRAY_SIZE(wm8753_neo1973_gta02_controls); i++) {
}
/* set up neo1973 gta02 specific audio path audio_mapnects */
+#if 0
for (i = 0; audio_map[i][0] != NULL; i++) {
snd_soc_dapm_connect_input(codec, audio_map[i][0],
audio_map[i][1], audio_map[i][2]);
}
+#endif
+ snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
/* set endpoints to default off mode */
snd_soc_dapm_set_endpoint(codec, "Stereo Out", 0);