diff options
author | Howard Mitchell <hm@hmbedded.co.uk> | 2014-09-19 13:50:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-09-24 10:37:03 +0200 |
commit | 5c7c343a1159d1cb7604b6137cf547b2c1e2375d (patch) | |
tree | 692c0e9671eb90da2889caf384e4b58d83958863 /include/trace | |
parent | ASoC: Fix snd_soc_{new,free}_ac97_codec() locking removal (diff) | |
download | linux-5c7c343a1159d1cb7604b6137cf547b2c1e2375d.tar.xz linux-5c7c343a1159d1cb7604b6137cf547b2c1e2375d.zip |
ASoC: core: Fix volsw_range funcs so SOC_DOUBLE_R_RANGE_TLV works.
This fixes a bug when using the SOC_DOUBLE_R_RANGE_TLV macro in
the invert mode. In the non-invert case, e.g.
SOC_DOUBLE_R_RANGE_TLV("<name>", <reg_l>, <reg_r>,
0, 40, 255, 0, <tlv>)
the range sent to the hardware is 40..255, but in the invert case:
SOC_DOUBLE_R_RANGE_TLV("<name>", <reg_l>, <reg_r>,
0, 40, 255, 1, <tlv>)
the range 215..0 was being sent to the hardware. This commit
corrects this to 255..40 so it is consistent with the non-invert
case.
Signed-off-by: Howard Mitchell <hm@hmbedded.co.uk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions