31 May
2012
31 May
'12
2:07 p.m.
On Thu, May 31, 2012 at 11:19:15AM +0100, Adam Thomson wrote:
+#define SOC_SINGLE_RANGE_TLV(xname, xreg, xshift, xmin, xmax, tlv_array) \ +{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname),\
- .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\
SNDRV_CTL_ELEM_ACCESS_READWRITE,\
This looks good but please also add an invert flag to this so we can cope if the device does that, it's easier than having more macros to choose from.
It'd be good to have a non-TLV version too, should just be a case of adding a new macro (even if it's not normally used).