Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99039
b: refs/heads/master
c: 8f3112d
h: refs/heads/master
i:
  99037: 30153ef
  99035: 3dd0c7b
  99031: ba3b692
  99023: ee2f0ad
  99007: da6f5cb
v: v3
  • Loading branch information
Mark Brown authored and Jaroslav Kysela committed May 19, 2008
1 parent a1ef5a4 commit bd24ee3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 51e6a8411a9440f0fdba6cdd7d779e74f89debc4
refs/heads/master: 8f3112d7a847c2933a42ce29f17899f585d09106
17 changes: 6 additions & 11 deletions trunk/sound/soc/s3c24xx/neo1973_wm8753.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,7 @@ static const struct snd_soc_dapm_widget wm8753_dapm_widgets[] = {
};


/* example machine audio_mapnections */
static const char *audio_map[][3] = {
static const struct snd_soc_dapm_route dapm_routes[] = {

/* Connections to the lm4857 amp */
{"Audio Out", NULL, "LOUT1"},
Expand All @@ -449,8 +448,6 @@ static const char *audio_map[][3] = {

/* Connect the ALC pins */
{"ACIN", NULL, "ACOP"},

{NULL, NULL, NULL},
};

static const char *lm4857_mode[] = {
Expand Down Expand Up @@ -526,8 +523,8 @@ static int neo1973_wm8753_init(struct snd_soc_codec *codec)
set_scenario_endpoints(codec, NEO_AUDIO_OFF);

/* Add neo1973 specific widgets */
for (i = 0; i < ARRAY_SIZE(wm8753_dapm_widgets); i++)
snd_soc_dapm_new_control(codec, &wm8753_dapm_widgets[i]);
snd_soc_dapm_new_controls(codec, wm8753_dapm_widgets,
ARRAY_SIZE(wm8753_dapm_widgets));

/* add neo1973 specific controls */
for (i = 0; i < ARRAY_SIZE(wm8753_neo1973_controls); i++) {
Expand All @@ -538,11 +535,9 @@ static int neo1973_wm8753_init(struct snd_soc_codec *codec)
return err;
}

/* set up neo1973 specific audio path audio_mapnects */
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]);
}
/* set up neo1973 specific audio routes */
err = snd_soc_dapm_add_routes(codec, dapm_routes,
ARRAY_SIZE(dapm_routes));

snd_soc_dapm_sync_endpoints(codec);
return 0;
Expand Down

0 comments on commit bd24ee3

Please sign in to comment.