提交 c219c809 编写于 作者: L Liam Girdwood 提交者: Mark Brown

ASoC: dapm - add DAPM macro for external enum widgets

Add a convenience macro for external enumerated widgets.
Signed-off-by: NLiam Girdwood <lrg@ti.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 3198b9eb
...@@ -266,6 +266,12 @@ ...@@ -266,6 +266,12 @@
.get = snd_soc_dapm_get_enum_virt, \ .get = snd_soc_dapm_get_enum_virt, \
.put = snd_soc_dapm_put_enum_virt, \ .put = snd_soc_dapm_put_enum_virt, \
.private_value = (unsigned long)&xenum } .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) \ #define SOC_DAPM_VALUE_ENUM(xname, xenum) \
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_soc_info_enum_double, \ .info = snd_soc_info_enum_double, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册