From: Liam Girdwood Date: Wed, 20 Jul 2011 18:42:20 +0000 (+0100) Subject: ASoC: dapm - add DAPM macro for external enum widgets X-Git-Tag: upstream/snapshot3+hdmi~7307^2~988 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c219c80929ca942c38334aad38b7582aed4e038e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: dapm - add DAPM macro for external enum widgets Add a convenience macro for external enumerated widgets. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index e09505c..e0583b7 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, \