]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Add support for masking out parts of coefficient blocks
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 18 Feb 2012 00:20:33 +0000 (16:20 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Feb 2012 19:34:48 +0000 (19:34 +0000)
commit818ac9d8aa76993d6bf856f8aa5dc41e01fd19bf
treecf0209339df80b83065986fe4db7f1ad61b9a154
parent9e16fa18bf56ccf0d9680e5dc97f67338eb9ee8a
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc.h
sound/soc/soc-core.c