From: Mark Brown Date: Sat, 18 Feb 2012 00:20:33 +0000 (-0800) Subject: ASoC: core: Add support for masking out parts of coefficient blocks X-Git-Tag: v3.4-rc1~88^2^2~27^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f831b055ececb3172f7fe498db5ca1fb43ff644d;p=pandora-kernel.git ASoC: core: Add support for masking out parts of coefficient blocks Chip designers frequently include things like the enable and disable controls for algorithms in the register blocks which also hold the coefficients. Since it's desirable to split out the enable/disable control from userspace the plain SND_SOC_BYTES() isn't optimal for these devices. Add a SND_SOC_BYTES_MASK() which allows a bitmask from the first word of the block to be excluded from the control. This supports the needs of devices I've looked at and lets us have a reasonably simple API. Further controls can be added in future if that's needed. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- Reading git-diff-tree failed