[alsa-devel] [PATCH 01/16] ASoC: core: Add multi reg control struct & macros

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Mar 13 22:39:00 CET 2012


On Tue, Mar 13, 2012 at 04:11:28PM +0100, Ola Lilja wrote:

> SOC_SINGLE_VALUE_S1R  One control value spans one register
> SOC_SINGLE_VALUE_S2R  One control value spans two registers
> SOC_SINGLE_VALUE_S4R  One control value spans four registers
> SOC_SINGLE_VALUE_S8R  One control value spans eight registers

This is fairly painful; the number of registers really ought to be
parameterised rather than having to add a new crop of macros every time
there's a new format or a new count.  Can we possibly make the
simplifying assumption that all the registers are contiguous?
-------------- 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/20120313/0cd5308f/attachment.sig 


More information about the Alsa-devel mailing list