* [PATCH] ASoC: dapm - add DAPM macro for external enum widgets
@ 2011-07-20 18:42 Liam Girdwood
2011-07-20 19:52 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Liam Girdwood @ 2011-07-20 18:42 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, Liam Girdwood
Add a convenience macro for external enumerated widgets.
Signed-off-by: Liam Girdwood <lrg@ti.com>
---
include/sound/soc-dapm.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index 596387b..655acc5 100644
--- 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, \
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: dapm - add DAPM macro for external enum widgets
2011-07-20 18:42 [PATCH] ASoC: dapm - add DAPM macro for external enum widgets Liam Girdwood
@ 2011-07-20 19:52 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-07-20 19:52 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel
On Wed, Jul 20, 2011 at 07:42:20PM +0100, Liam Girdwood wrote:
> Add a convenience macro for external enumerated widgets.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-20 19:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-20 18:42 [PATCH] ASoC: dapm - add DAPM macro for external enum widgets Liam Girdwood
2011-07-20 19:52 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.