]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Add SND_SOC_BYTES control for coefficient blocks
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 10 Oct 2011 17:31:26 +0000 (18:31 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 21 Feb 2012 19:34:48 +0000 (19:34 +0000)
commit9e16fa18bf56ccf0d9680e5dc97f67338eb9ee8a
tree5f3c1497024c4669a1443fd30263ed81b591aa15
parentfe059ef574cede6bff8f190bddbad1185c02840e
ASoC: core: Add SND_SOC_BYTES control for coefficient blocks

Allow devices to export blocks of registers to the application layer,
intended for use for reading and writing coefficient data which can't
usefully be worked with by the kernel at runtime (for example, due to
requiring complex and expensive calculations or being the results of
callibration procedures). Currently drivers are using platform data to
provide configurations for coefficient blocks which isn't at all
convenient for runtime management or configuration development.

Currently only devices using regmap are supported, an error will be
generated for any attempt to work with a byte control on a non-regmap
device. There's no fundamental block to other devices so support could
be added if required.

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