aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8350.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
-rw-r--r--sound/soc/codecs/wm8350.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 47a9dabb5235..2e0db29b4998 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -782,21 +782,6 @@ static const struct snd_soc_dapm_route audio_map[] = {
782 {"Beep", NULL, "IN3R PGA"}, 782 {"Beep", NULL, "IN3R PGA"},
783}; 783};
784 784
785static int wm8350_add_controls(struct snd_soc_codec *codec)
786{
787 int err, i;
788
789 for (i = 0; i < ARRAY_SIZE(wm8350_snd_controls); i++) {
790 err = snd_ctl_add(codec->card,
791 snd_soc_cnew(&wm8350_snd_controls[i],
792 codec, NULL));
793 if (err < 0)
794 return err;
795 }
796
797 return 0;
798}
799
800static int wm8350_add_widgets(struct snd_soc_codec *codec) 785static int wm8350_add_widgets(struct snd_soc_codec *codec)
801{ 786{
802 int ret; 787 int ret;
@@ -1490,7 +1475,8 @@ static int wm8350_probe(struct platform_device *pdev)
1490 return ret; 1475 return ret;
1491 } 1476 }
1492 1477
1493 wm8350_add_controls(codec); 1478 snd_soc_add_controls(codec, wm8350_snd_controls,
1479 ARRAY_SIZE(wm8350_snd_controls));
1494 wm8350_add_widgets(codec); 1480 wm8350_add_widgets(codec);
1495 1481
1496 wm8350_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 1482 wm8350_set_bias_level(codec, SND_SOC_BIAS_STANDBY);