projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3198b9e
)
ASoC: dapm - add DAPM macro for external enum widgets
author
Liam Girdwood
<lrg@ti.com>
Wed, 20 Jul 2011 18:42:20 +0000
(19:42 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Wed, 20 Jul 2011 19:51:08 +0000
(20:51 +0100)
Add a convenience macro for external enumerated widgets.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc-dapm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/sound/soc-dapm.h
b/include/sound/soc-dapm.h
index e09505c5a49097208ff29a344e8a0354514ab846..e0583b7769cb505648f005be33f8b6c10f3c4049 100644
(file)
--- a/
include/sound/soc-dapm.h
+++ b/
include/sound/soc-dapm.h
@@
-266,6
+266,12
@@
.get = snd_soc_dapm_get_enum_virt, \
.put = snd_soc_dapm_put_enum_virt, \
.private_value = (unsigned long)&xenum }
+#define SOC_DAPM_ENUM_EXT(xname, xenum, xget, xput) \
+{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
+ .info = snd_soc_info_enum_double, \
+ .get = xget, \
+ .put = xput, \
+ .private_value = (unsigned long)&xenum }
#define SOC_DAPM_VALUE_ENUM(xname, xenum) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_enum_double, \