diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-02-21 13:41:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-21 15:20:54 +0100 |
commit | bf726b1c86f2caab70ad614cdf7da3b81ad08e69 (patch) | |
tree | 69f6aa32c93b96d14f904ef43dac794fc53ad500 /sound/soc/codecs/tas2562.h | |
parent | ASoC: sun8i-codec: Remove unused dev from codec struct (diff) | |
download | linux-bf726b1c86f2caab70ad614cdf7da3b81ad08e69.tar.xz linux-bf726b1c86f2caab70ad614cdf7da3b81ad08e69.zip |
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>
Diffstat (limited to 'sound/soc/codecs/tas2562.h')
-rw-r--r-- | sound/soc/codecs/tas2562.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/tas2562.h b/sound/soc/codecs/tas2562.h index 6f55ebcf19ea..28e75fc431d0 100644 --- a/sound/soc/codecs/tas2562.h +++ b/sound/soc/codecs/tas2562.h @@ -35,8 +35,10 @@ #define TAS2562_REV_ID TAS2562_REG(0, 0x7d) /* Page 2 */ -#define TAS2562_DVC_CFG1 TAS2562_REG(2, 0x01) -#define TAS2562_DVC_CFG2 TAS2562_REG(2, 0x02) +#define TAS2562_DVC_CFG1 TAS2562_REG(2, 0x0c) +#define TAS2562_DVC_CFG2 TAS2562_REG(2, 0x0d) +#define TAS2562_DVC_CFG3 TAS2562_REG(2, 0x0e) +#define TAS2562_DVC_CFG4 TAS2562_REG(2, 0x0f) #define TAS2562_RESET BIT(0) |