Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99038
b: refs/heads/master
c: 51e6a84
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Jaroslav Kysela committed May 19, 2008
1 parent 30153ef commit a1ef5a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 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: 25191c45aec54cd01b53391bb0b0e1e60377a5fc
refs/heads/master: 51e6a8411a9440f0fdba6cdd7d779e74f89debc4
17 changes: 4 additions & 13 deletions trunk/sound/soc/at91/eti_b1_wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,38 +191,29 @@ static const struct snd_soc_dapm_widget eti_b1_dapm_widgets[] = {
SND_SOC_DAPM_SPK("Ext Spk", NULL),
};

static const char *intercon[][3] = {
static const struct snd_soc_dapm_route intercon[] = {

/* speaker connected to LHPOUT */
{"Ext Spk", NULL, "LHPOUT"},

/* mic is connected to Mic Jack, with WM8731 Mic Bias */
{"MICIN", NULL, "Mic Bias"},
{"Mic Bias", NULL, "Int Mic"},

/* terminator */
{NULL, NULL, NULL},
};

/*
* Logic for a wm8731 as connected on a Endrelia ETI-B1 board.
*/
static int eti_b1_wm8731_init(struct snd_soc_codec *codec)
{
int i;

DBG("eti_b1_wm8731_init() called\n");

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

/* Set up specific audio path interconnects */
for(i = 0; intercon[i][0] != NULL; i++) {
snd_soc_dapm_connect_input(codec, intercon[i][0],
intercon[i][1], intercon[i][2]);
}
snd_soc_dapm_add_route(codec, intercon, ARRAY_SIZE(intercon));

/* not connected */
snd_soc_dapm_set_endpoint(codec, "RLINEIN", 0);
Expand Down

0 comments on commit a1ef5a4

Please sign in to comment.