projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44b517
)
ASoC: wm8903: Use SOC_SINGLE_EXT() instead of open-coding it
author
Lars-Peter Clausen
<lars@metafoo.de>
Wed, 19 Jun 2013 17:33:55 +0000
(19:33 +0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Jun 2013 18:47:33 +0000
(19:47 +0100)
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm8903.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8903.c
b/sound/soc/codecs/wm8903.c
index 9d88437cdcd1db314b444022f25ce91e11466cb5..fa24cedee68769f2b723e2fb8b25c03869ee286a 100644
(file)
--- a/
sound/soc/codecs/wm8903.c
+++ b/
sound/soc/codecs/wm8903.c
@@
-403,10
+403,8
@@
static int wm8903_class_w_put(struct snd_kcontrol *kcontrol,
}
#define SOC_DAPM_SINGLE_W(xname, reg, shift, max, invert) \
-{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
- .info = snd_soc_info_volsw, \
- .get = snd_soc_dapm_get_volsw, .put = wm8903_class_w_put, \
- .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) }
+ SOC_SINGLE_EXT(xname, reg, shift, max, invert, \
+ snd_soc_dapm_get_volsw, wm8903_class_w_put)
static int wm8903_deemph[] = { 0, 32000, 44100, 48000 };