summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tas2562.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-02-21 15:41:51 +0300
committerMark Brown <broonie@kernel.org>2020-02-21 17:20:54 +0300
commitbf726b1c86f2caab70ad614cdf7da3b81ad08e69 (patch)
tree69f6aa32c93b96d14f904ef43dac794fc53ad500 /sound/soc/codecs/tas2562.h
parent150cbf8e66ec86966c13fd7a0e3de8813bca03d8 (diff)
downloadlinux-bf726b1c86f2caab70ad614cdf7da3b81ad08e69.tar.xz
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.h6
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)