diff options
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2014-07-07 08:16:54 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-07 10:36:38 -0400 |
commit | 1e4c0d7c9a2b44e18fe9e93712672741f70e36da (patch) | |
tree | c9c0e25b919e78ba334bfde70bdf4ad9c48f1582 | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
ASoC: add SOC_VALUE_ENUM_EXT
Adds an equivalent of SOC_ENUM_EXT for value enums
Strictly speaking SOC_ENUM_EXT can also be used to define
a value enum since the only difference is the get and set
functions. But this doesn't look good in code because it is
inconsistent with the normal control definitions. Adding a
specific SOC_VALUE_ENUM_EXT is better for code clarity.
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index ed9e2d7e5fdc..5d812cfe9427 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -248,6 +248,8 @@ | |||
248 | .info = snd_soc_info_enum_double, \ | 248 | .info = snd_soc_info_enum_double, \ |
249 | .get = xhandler_get, .put = xhandler_put, \ | 249 | .get = xhandler_get, .put = xhandler_put, \ |
250 | .private_value = (unsigned long)&xenum } | 250 | .private_value = (unsigned long)&xenum } |
251 | #define SOC_VALUE_ENUM_EXT(xname, xenum, xhandler_get, xhandler_put) \ | ||
252 | SOC_ENUM_EXT(xname, xenum, xhandler_get, xhandler_put) | ||
251 | 253 | ||
252 | #define SND_SOC_BYTES(xname, xbase, xregs) \ | 254 | #define SND_SOC_BYTES(xname, xbase, xregs) \ |
253 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ | 255 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \ |