]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: rt5677: make volume TLV closer to reality
authorDylan Reid <dgreid@chromium.org>
Fri, 5 Dec 2014 01:00:13 +0000 (17:00 -0800)
committerMark Brown <broonie@kernel.org>
Fri, 5 Dec 2014 11:06:56 +0000 (11:06 +0000)
commit40e3262e425a04743f2a579a379f2f189f084580
tree1a3bc5688becd8853204e9f74c16b96b1e804e56
parent6fe17da00ba7046db2d3a952a930e127dcd7f06e
ASoC: rt5677: 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.  Update the masks to reflect
that these are registers have the LSB ignored.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c
sound/soc/codecs/rt5677.h