]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tas2562: Add support for digital volume control
authorDan Murphy <dmurphy@ti.com>
Fri, 21 Feb 2020 12:41:51 +0000 (06:41 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 21 Feb 2020 14:20:54 +0000 (14:20 +0000)
commita2774e7c2e6038580c0e0f4a4dd28e806059389e
tree69f6aa32c93b96d14f904ef43dac794fc53ad500
parenta85a4da554361dacf8ddbbf449a33f41f803edc0
ASoC: tas2562: Add support for digital volume control

Add support for digital volume control.  There is no dedicated register
for volume control but instead there are 4.  The values of the registers
are determined with exponential floating point math.
So a table was created with register values for 2dB step increments
from -110dB to 0dB.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200221124151.8774-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2562.c
sound/soc/codecs/tas2562.h