Skip to contentSkip to conversation

ASoC: dapm - add DAPM macro for external enum widgets

PATCH Applied Liam Girdwood 2 participants 2 messages Jul 20, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: dapm - add DAPM macro for external enum widgets

Add a convenience macro for external enumerated widgets.

---
 include/sound/soc-dapm.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
include/sound/soc-dapm.h +6 -0
index 596387b..655acc5 100644
@@ -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, \
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 1 line · Liam Girdwood

Add a convenience macro for external enumerated widgets.

Applied, thanks.