diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-08 03:52:19 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-09 07:28:17 -0500 |
commit | 5a374524216a244d30c42545ab49f743a43b05c7 (patch) | |
tree | a067746972041a63aafa6b2ab15576910da9d9f8 /sound/soc/codecs/wm8804.c | |
parent | bc9c040d363f3be17a59024191e9400e5b6205ae (diff) |
ASoC: Convert WM8804 to table based control init
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8804.c')
-rw-r--r-- | sound/soc/codecs/wm8804.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8804.c b/sound/soc/codecs/wm8804.c index ae4b8fb3c3e5..d54a3ca5e19e 100644 --- a/sound/soc/codecs/wm8804.c +++ b/sound/soc/codecs/wm8804.c | |||
@@ -659,8 +659,6 @@ static int wm8804_probe(struct snd_soc_codec *codec) | |||
659 | 659 | ||
660 | wm8804_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 660 | wm8804_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
661 | 661 | ||
662 | snd_soc_add_controls(codec, wm8804_snd_controls, | ||
663 | ARRAY_SIZE(wm8804_snd_controls)); | ||
664 | return 0; | 662 | return 0; |
665 | 663 | ||
666 | err_reg_enable: | 664 | err_reg_enable: |
@@ -715,7 +713,10 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8804 = { | |||
715 | .reg_cache_size = ARRAY_SIZE(wm8804_reg_defs), | 713 | .reg_cache_size = ARRAY_SIZE(wm8804_reg_defs), |
716 | .reg_word_size = sizeof(u8), | 714 | .reg_word_size = sizeof(u8), |
717 | .reg_cache_default = wm8804_reg_defs, | 715 | .reg_cache_default = wm8804_reg_defs, |
718 | .volatile_register = wm8804_volatile | 716 | .volatile_register = wm8804_volatile, |
717 | |||
718 | .controls = wm8804_snd_controls, | ||
719 | .num_controls = ARRAY_SIZE(wm8804_snd_controls), | ||
719 | }; | 720 | }; |
720 | 721 | ||
721 | static const struct of_device_id wm8804_of_match[] = { | 722 | static const struct of_device_id wm8804_of_match[] = { |