]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b8b573a03331725bf562ba4e062245d3e56cb1d
tree35881139be6f87d9e6451d14e31f1589b4cf14d9
parente924f50aeb708ac1f31bbec2562cd1e4d50f112b
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