Skip to content

Commit

Permalink
ASoC: Remove unreferenced wm8974_add_controls()
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jun 29, 2009
1 parent 4fcbbb6 commit 372a14a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions sound/soc/codecs/wm8974.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,22 +205,6 @@ SOC_SINGLE("Capture Boost(+20dB)", WM8974_ADCBOOST, 8, 1, 0),
SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 0),
};

/* add non dapm controls */
static int wm8974_add_controls(struct snd_soc_codec *codec)
{
int err, i;

for (i = 0; i < ARRAY_SIZE(wm8974_snd_controls); i++) {
err = snd_ctl_add(codec->card,
snd_soc_cnew(&wm8974_snd_controls[i],
codec, NULL));
if (err < 0)
return err;
}

return 0;
}

/* Speaker Output Mixer */
static const struct snd_kcontrol_new wm8974_speaker_mixer_controls[] = {
SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_SPKMIX, 1, 1, 0),
Expand Down

0 comments on commit 372a14a

Please sign in to comment.