commit | 5a748de0644d16ceb4192ebf785742619b88109b | [log] [tgz] |
---|---|---|
author | Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> | Tue May 08 12:16:39 2018 +0900 |
committer | Mark Brown <broonie@kernel.org> | Wed May 09 18:40:39 2018 +0900 |
tree | df7f3c3cbe31af36092def4d5016c252f3b265fd | |
parent | 0e7b25c673ec916dee8d927fc8de5806d900cba8 [diff] |
ASoC: uniphier: add digital output volume for UniPhier sound system This patch adds controllers for digital volume of PCM output. Volume effects simply linear, not dB scale as follows: Gained PCM = Original * 0x4000 / Volume The value range of volume is from 0x0001 to 0xffff. 0x0000 works as mute. Initial value is 0x4000 (+0dB). Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Signed-off-by: Mark Brown <broonie@kernel.org>