]> 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)
commit19edae99584c0b411439000651d21d50ea9f833d
tree5f3c1497024c4669a1443fd30263ed81b591aa15
parentb55175522176dbd6983a397228f9162aef60df5c
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