23 Jan
2010
23 Jan
'10
7:51 p.m.
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@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.