]> 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)
commit7a7c11a98dd0d829547b3ad76f2d6a3d2a6ef359
tree69f6aa32c93b96d14f904ef43dac794fc53ad500
parent235fbcb18c54bbac839eb834ba16896fafce462b
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