summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-01-16 16:02:10 +0100
committerMark Brown <broonie@linaro.org>2014-02-03 12:44:50 +0000
commitf227b88f0fce5f9b82aa934f8829a741c2e06d82 (patch)
tree79d3aa04bf8075f5611ff1ee30ad9238a5c0d4f8 /drivers
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
ASoC: core: Add signed register volume control logic
Some codecs use signed volume control representation with non standard register sizes, e.g. 6 or 7 bit signed integers. This patch adds generic signed register volume control logic to soc-core. Instead of a fixed width signed register control, this implementation uses a 'min' value and the signed bit location to translate it to an absolute volume. Using the 'sign_bit' we can calculate a correct mask for the register values and translate it back into signed integers of standard size. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions