diff options
author | Alexander Stein <alexander.stein@systec-electronic.com> | 2015-04-16 14:51:57 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-04-27 15:42:20 +0100 |
commit | 1f39d9397f8a27becd2b72009865610a71c64b0f (patch) | |
tree | dd736e870b699c31af2a2ce4a4e7f499dd070785 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | d2b7c2aaf7b565532c7d9937519b199fbca4a779 (diff) |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions