diff options
Diffstat (limited to 'sound/soc/codecs/wm8974.c')
-rw-r--r-- | sound/soc/codecs/wm8974.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sound/soc/codecs/wm8974.c b/sound/soc/codecs/wm8974.c index 397432a736ef..d2a36ad256c5 100644 --- a/sound/soc/codecs/wm8974.c +++ b/sound/soc/codecs/wm8974.c | |||
@@ -205,22 +205,6 @@ SOC_SINGLE("Capture Boost(+20dB)", WM8974_ADCBOOST, 8, 1, 0), | |||
205 | SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 0), | 205 | SOC_SINGLE("Mono Playback Switch", WM8974_MONOMIX, 6, 1, 0), |
206 | }; | 206 | }; |
207 | 207 | ||
208 | /* add non dapm controls */ | ||
209 | static int wm8974_add_controls(struct snd_soc_codec *codec) | ||
210 | { | ||
211 | int err, i; | ||
212 | |||
213 | for (i = 0; i < ARRAY_SIZE(wm8974_snd_controls); i++) { | ||
214 | err = snd_ctl_add(codec->card, | ||
215 | snd_soc_cnew(&wm8974_snd_controls[i], | ||
216 | codec, NULL)); | ||
217 | if (err < 0) | ||
218 | return err; | ||
219 | } | ||
220 | |||
221 | return 0; | ||
222 | } | ||
223 | |||
224 | /* Speaker Output Mixer */ | 208 | /* Speaker Output Mixer */ |
225 | static const struct snd_kcontrol_new wm8974_speaker_mixer_controls[] = { | 209 | static const struct snd_kcontrol_new wm8974_speaker_mixer_controls[] = { |
226 | SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_SPKMIX, 1, 1, 0), | 210 | SOC_DAPM_SINGLE("Line Bypass Switch", WM8974_SPKMIX, 1, 1, 0), |