summaryrefslogtreecommitdiffstats
path: root/kernel/up.c
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2017-06-14 10:36:12 +0200
committerMark Brown <broonie@kernel.org>2017-06-14 10:33:26 +0100
commita729526720059ae019803acc953f07d9c17ae234 (patch)
tree9d79ba4908e750b13f5335a26d9c796d99c3dbe3 /kernel/up.c
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
downloadlinux-stable-a729526720059ae019803acc953f07d9c17ae234.tar.gz
linux-stable-a729526720059ae019803acc953f07d9c17ae234.tar.bz2
linux-stable-a729526720059ae019803acc953f07d9c17ae234.zip
ASoC: sgtl5000: add avc support
The sgtl5000 features an automatic volume control block (AVC), which reduces loud signals and amplifies low level signals for easier listening. This patch adds support for this AVC block to the driver. Apart from the "AVC Switch" control which enables the block following controls for the configuration of AVC are added: + AVC Threshold Volume: threshold where audio is compressed when the measured level is above or expanded when below + AVC Max Gain Volume: maximum gain which can be applied when the measured audio level is below threshold + AVC Hard Limiter Switch: when enabled the signal is limited to the programmed threshold. + AVC Integrator Response: response time of the integrator The AVC block is enabled and configured using the DAP_AVC_CTRL and DAP_AVC_THRESHOLD registers. Following 2 checkpatch.pl strict checks are ignored because the indentation style is different for the struct snd_kcontrol_new definition: patch:147: CHECK: Alignment should match open parenthesis patch:150: CHECK: Alignment should match open parenthesis Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel/up.c')
0 files changed, 0 insertions, 0 deletions