[alsa-devel] [PATCH 1/2] ASoC: core: Add single controls with specified range of values

Mark Brown broonie at opensource.wolfsonmicro.com
Thu May 31 14:07:39 CEST 2012

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),\

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).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20120531/330967a3/attachment.sig 

More information about the Alsa-devel mailing list