Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99036
b: refs/heads/master
c: d0cc0d3
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Jaroslav Kysela committed May 19, 2008
1 parent 3dd0c7b commit 547030c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 105f1c28442301237d20b05a3d52d9987614016f
refs/heads/master: d0cc0d3a95cc3c022ee118072d243d3670ec1663
15 changes: 4 additions & 11 deletions trunk/sound/soc/codecs/tlv320aic3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static const struct snd_soc_dapm_widget aic3x_dapm_widgets[] = {
SND_SOC_DAPM_INPUT("LINE2R"),
};

static const char *intercon[][3] = {
static const struct snd_soc_dapm_route intercon[] = {
/* Left Output */
{"Left DAC Mux", "DAC_L1", "Left DAC"},
{"Left DAC Mux", "DAC_L2", "Left DAC"},
Expand Down Expand Up @@ -641,22 +641,15 @@ static const char *intercon[][3] = {
{"Right Line Out", NULL, "Right Line2 Bypass Mixer"},
{"Mono Out", NULL, "Right Line2 Bypass Mixer"},
{"Right HP Out", NULL, "Right Line2 Bypass Mixer"},

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

static int aic3x_add_widgets(struct snd_soc_codec *codec)
{
int i;

for (i = 0; i < ARRAY_SIZE(aic3x_dapm_widgets); i++)
snd_soc_dapm_new_control(codec, &aic3x_dapm_widgets[i]);
snd_soc_dapm_new_controls(codec, aic3x_dapm_widgets,
ARRAY_SIZE(aic3x_dapm_widgets));

/* set up 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_routes(codec, intercon, ARRAY_SIZE(intercon));

snd_soc_dapm_new_widgets(codec);
return 0;
Expand Down

0 comments on commit 547030c

Please sign in to comment.