]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Add single controls with specified range of values
authorAdam Thomson <Adam.Thomson@diasemi.com>
Thu, 31 May 2012 14:18:01 +0000 (15:18 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:06:41 +0000 (13:06 +0100)
commit2974766c60b39dceec86a8a40b7e0539980c2345
tree1a71ce7d37e0183e7e01968e64774711d444d10e
parentc05d9a43f82fbe9dc38d9f3dc108fe98d6f65feb
ASoC: core: Add single controls with specified range of values

Control type added for cases where a specific range of values
within a register are required for control.

Added convenience macros:

SOC_SINGLE_RANGE
SOC_SINGLE_RANGE_TLV

Added accessor implementations:

snd_soc_info_volsw_range
snd_soc_put_volsw_range
snd_soc_get_volsw_range

Signed-off-by: Michal Hajduk <Michal.Hajduk@diasemi.com>
Signed-off-by: Adam Thomson <Adam.Thomson@diasemi.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-core.c