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)
commitbf726b1c86f2caab70ad614cdf7da3b81ad08e69
tree69f6aa32c93b96d14f904ef43dac794fc53ad500
parent150cbf8e66ec86966c13fd7a0e3de8813bca03d8
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