summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2015-04-16 14:51:57 +0200
committerMark Brown <broonie@kernel.org>2015-04-27 16:42:20 +0200
commit1f39d9397f8a27becd2b72009865610a71c64b0f (patch)
treedd736e870b699c31af2a2ce4a4e7f499dd070785 /include
parentASoC: sgtl5000: Use specific variable for lo_vag (diff)
downloadlinux-1f39d9397f8a27becd2b72009865610a71c64b0f.tar.xz
linux-1f39d9397f8a27becd2b72009865610a71c64b0f.zip
ASoC: sgtl5000: Calculate Lineout Channel Output Level
Currently LO_VOL_* stays at it's default (0x4 each) but this should be calculated after setting VAG_VAL and LO_VAGCNTRL. LO_VOL_* = 40 * log10(VAG_VAL / LO_VAGCNTRL) + 15 To avoid the log10 operation a table for all valid register values is precalculated which contains the corresponding value (VAG_VAL * 100 / LO_VAGCNTRL). Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions