|
@@ -135,6 +135,17 @@
|
|
.info = snd_soc_info_volsw, \
|
|
.info = snd_soc_info_volsw, \
|
|
.get = xhandler_get, .put = xhandler_put, \
|
|
.get = xhandler_get, .put = xhandler_put, \
|
|
.private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
|
|
.private_value = SOC_SINGLE_VALUE(xreg, xshift, xmax, xinvert) }
|
|
|
|
+#define SOC_DOUBLE_EXT_TLV(xname, xreg, shift_left, shift_right, xmax, xinvert,\
|
|
|
|
+ xhandler_get, xhandler_put, tlv_array) \
|
|
|
|
+{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
|
|
|
|
+ .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
|
|
|
|
+ SNDRV_CTL_ELEM_ACCESS_READWRITE, \
|
|
|
|
+ .tlv.p = (tlv_array), \
|
|
|
|
+ .info = snd_soc_info_volsw, \
|
|
|
|
+ .get = xhandler_get, .put = xhandler_put, \
|
|
|
|
+ .private_value = (unsigned long)&(struct soc_mixer_control) \
|
|
|
|
+ {.reg = xreg, .shift = shift_left, .rshift = shift_right, \
|
|
|
|
+ .max = xmax, .invert = xinvert} }
|
|
#define SOC_SINGLE_BOOL_EXT(xname, xdata, xhandler_get, xhandler_put) \
|
|
#define SOC_SINGLE_BOOL_EXT(xname, xdata, xhandler_get, xhandler_put) \
|
|
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
|
|
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
|
|
.info = snd_soc_info_bool_ext, \
|
|
.info = snd_soc_info_bool_ext, \
|