ASoC: core: Add signed multi register control
authorKristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Fri, 20 Apr 2012 09:32:13 +0000 (11:32 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Apr 2012 19:05:06 +0000 (20:05 +0100)
commit4183eed288f31c3b9142476915e842f879f36b8e
tree136c22b92898e96e370776adcbe3656aa029f669
parentc1a4ecd921229a410b9a71cb7877250e85c26c1c
ASoC: core: Add signed multi register control

Added control type that can span multiple consecutive codec registers
forming a single signed value in a MSB/LSB manner.
The control dynamically adjusts to the register word size configured
in driver.

Added convenience macro.

SOC_SINGLE_XR_SX

Added accessor implementations.

snd_soc_info_xr_sx
snd_soc_get_xr_sx
snd_soc_put_xr_sx

Signed-off-by: Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-core.c