aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-05 04:46:36 -0500
committerMark Brown <broonie@kernel.org>2014-11-05 09:49:51 -0500
commitb131c02e99b9da672a2b0cf96bad48d74c39572e (patch)
tree6a504296d232321e59a06220447abef9c50239d2 /sound/soc
parentf114040e3ea6e07372334ade75d1ee0775c355e1 (diff)
ASoC: wm8995: Use table based DAPM and control setup
Makes the code a bit cleaner. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm8995.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c
index 1288edeb8c7d..e40c8a662183 100644
--- a/sound/soc/codecs/wm8995.c
+++ b/sound/soc/codecs/wm8995.c
@@ -2102,13 +2102,6 @@ static int wm8995_probe(struct snd_soc_codec *codec)
2102 2102
2103 wm8995_update_class_w(codec); 2103 wm8995_update_class_w(codec);
2104 2104
2105 snd_soc_add_codec_controls(codec, wm8995_snd_controls,
2106 ARRAY_SIZE(wm8995_snd_controls));
2107 snd_soc_dapm_new_controls(&codec->dapm, wm8995_dapm_widgets,
2108 ARRAY_SIZE(wm8995_dapm_widgets));
2109 snd_soc_dapm_add_routes(&codec->dapm, wm8995_intercon,
2110 ARRAY_SIZE(wm8995_intercon));
2111
2112 return 0; 2105 return 0;
2113 2106
2114err_reg_enable: 2107err_reg_enable:
@@ -2205,6 +2198,13 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8995 = {
2205 .remove = wm8995_remove, 2198 .remove = wm8995_remove,
2206 .set_bias_level = wm8995_set_bias_level, 2199 .set_bias_level = wm8995_set_bias_level,
2207 .idle_bias_off = true, 2200 .idle_bias_off = true,
2201
2202 .controls = wm8995_snd_controls,
2203 .num_controls = ARRAY_SIZE(wm8995_snd_controls),
2204 .dapm_widgets = wm8995_dapm_widgets,
2205 .num_dapm_widgets = ARRAY_SIZE(wm8995_dapm_widgets),
2206 .dapm_routes = wm8995_intercon,
2207 .num_dapm_routes = ARRAY_SIZE(wm8995_intercon),
2208}; 2208};
2209 2209
2210static struct regmap_config wm8995_regmap = { 2210static struct regmap_config wm8995_regmap = {