ASoC: rt5645: make volume TLV closer to reality
authorBard Liao <bardliao@realtek.com>
Thu, 30 Apr 2015 10:18:47 +0000 (18:18 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 1 May 2015 16:33:49 +0000 (17:33 +0100)
commit177e1e1fbc63f6e4ac0fab56dcb61bb8c8597681
tree35881139be6f87d9e6451d14e31f1589b4cf14d9
parent21ab3f2bef5a89617e76c7c6ad882595ab96300b
ASoC: rt5645: make volume TLV closer to reality

The volume blocks have an step of 0.375dB, but TLV uses 0.01dB for
units.  Only use the resolution supported, ignoring the LSB of the
volume register.  This results in half the steps and 0.75dB per step,
but reports accurate levels through TLV.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c