Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248241
b: refs/heads/master
c: 2031400
h: refs/heads/master
i:
  248239: cb68eea
v: v3
  • Loading branch information
Lu Guanqun authored and Mark Brown committed Mar 30, 2011
1 parent f634608 commit 626503d
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8428edf96ebb9e8c8a5bec257568101b6ba01dc3
refs/heads/master: 203140006173ec1df42a05d8eb7051d82eb61c25
18 changes: 5 additions & 13 deletions trunk/sound/soc/codecs/wm8711.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ SND_SOC_DAPM_OUTPUT("ROUT"),
SND_SOC_DAPM_OUTPUT("RHPOUT"),
};

static const struct snd_soc_dapm_route intercon[] = {
static const struct snd_soc_dapm_route wm8711_intercon[] = {
/* output mixer */
{"Output Mixer", "Line Bypass Switch", "Line Input"},
{"Output Mixer", "HiFi Playback Switch", "DAC"},
Expand All @@ -89,17 +89,6 @@ static const struct snd_soc_dapm_route intercon[] = {
{"LOUT", NULL, "Output Mixer"},
};

static int wm8711_add_widgets(struct snd_soc_codec *codec)
{
struct snd_soc_dapm_context *dapm = &codec->dapm;

snd_soc_dapm_new_controls(dapm, wm8711_dapm_widgets,
ARRAY_SIZE(wm8711_dapm_widgets));
snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon));

return 0;
}

struct _coeff_div {
u32 mclk;
u32 rate;
Expand Down Expand Up @@ -398,7 +387,6 @@ static int wm8711_probe(struct snd_soc_codec *codec)

snd_soc_add_controls(codec, wm8711_snd_controls,
ARRAY_SIZE(wm8711_snd_controls));
wm8711_add_widgets(codec);

return ret;

Expand All @@ -420,6 +408,10 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8711 = {
.reg_cache_size = ARRAY_SIZE(wm8711_reg),
.reg_word_size = sizeof(u16),
.reg_cache_default = wm8711_reg,
.dapm_widgets = wm8711_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(wm8711_dapm_widgets),
.dapm_routes = wm8711_intercon,
.num_dapm_routes = ARRAY_SIZE(wm8711_intercon),
};

#if defined(CONFIG_SPI_MASTER)
Expand Down

0 comments on commit 626503d

Please sign in to comment.