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)
commit71d08516b80638a69d5efea4e8cb832c053f9dd9
tree5f3c1497024c4669a1443fd30263ed81b591aa15
parent2b4bdee2920fb3894f9116f76343f8b31f9e4da8
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