projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cf766f
)
ASoC: wm9705: Use table based control setup
author
Lars-Peter Clausen
<lars@metafoo.de>
Thu, 30 Oct 2014 20:01:04 +0000
(21:01 +0100)
committer
Mark Brown
<broonie@kernel.org>
Fri, 31 Oct 2014 17:31:39 +0000
(17:31 +0000)
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>
sound/soc/codecs/wm9705.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm9705.c
b/sound/soc/codecs/wm9705.c
index 355b28dd6ac918e96c06b65c45295dff62dc2091..1650195f6c8467517a9dcae68382af27f5cfbb1f 100644
(file)
--- a/
sound/soc/codecs/wm9705.c
+++ b/
sound/soc/codecs/wm9705.c
@@
-347,9
+347,6
@@
static int wm9705_soc_probe(struct snd_soc_codec *codec)
if (ret)
goto reset_err;
- snd_soc_add_codec_controls(codec, wm9705_snd_ac97_controls,
- ARRAY_SIZE(wm9705_snd_ac97_controls));
-
return 0;
reset_err:
@@
-374,6
+371,9
@@
static struct snd_soc_codec_driver soc_codec_dev_wm9705 = {
.reg_word_size = sizeof(u16),
.reg_cache_step = 2,
.reg_cache_default = wm9705_reg,
+
+ .controls = wm9705_snd_ac97_controls,
+ .num_controls = ARRAY_SIZE(wm9705_snd_ac97_controls),
.dapm_widgets = wm9705_dapm_widgets,
.num_dapm_widgets = ARRAY_SIZE(wm9705_dapm_widgets),
.dapm_routes = wm9705_audio_map,