aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/Makefile
diff options
context:
space:
mode:
authorStuart Longland <redhatter@gentoo.org>2010-06-18 12:56:10 +1000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-06-19 02:33:44 +0100
commit20630c7f5966419dd6a1f00b669a7771e228510a (patch)
tree04e684f6720e9fece574570208d196da9c09574e /sound/soc/Makefile
parentASoC: eukrea-tlv320: add support for our i.MX25 board (diff)
downloadlinux-dev-20630c7f5966419dd6a1f00b669a7771e228510a.tar.xz
linux-dev-20630c7f5966419dd6a1f00b669a7771e228510a.zip
ASoC: Fix overflow bug in SOC_DOUBLE_R_SX_TLV
When SX_TLV widgets are read, if the gain is set to a value below 0dB, the mixer control is erroniously read as being at maximum volume. The value read out of the CODEC register is never sign-extended, and when the minimum value is subtracted (read; added, since the minimum is negative) the result is a number greater than the maximum allowed value for the control, and hence it saturates. Solution: Mask the result so that it "wraps around", emulating sign-extension. Signed-off-by: Stuart Longland <redhatter@gentoo.org> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/Makefile')
0 files changed, 0 insertions, 0 deletions