[alsa-devel] [PATCH] add simplified versions of widget macros

Mark Brown broonie at opensource.wolfsonmicro.com
Sat Jan 23 19:51:33 CET 2010

On Thu, Jan 21, 2010 at 09:10:47PM +0100, Guennadi Liakhovetski wrote:
> Many macros from include/sound/soc-dapm.h take an array and a number of 
> elements in it as arguments, whereas most users use static arrays and use 
> "x, ARRAY_SIZE(x)" as arguments. This patch adds simplified versions of 
> those macros, calling ARRAY_SIZE() internally.
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski at gmx.de>

I'll apply both of these, however I think I'll shortly cook up a patch
to switch things around so that the new variant of _PGA becomes the
default since with modern CODECs it's very rare to need the ramping
support for the volumes so the overwhelming majority of PGAs are better
off using the new version.

More information about the Alsa-devel mailing list