summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tas571x.h
diff options
context:
space:
mode:
authorPetr Kulhavy <brain@jikos.cz>2016-06-01 09:30:00 +0200
committerMark Brown <broonie@kernel.org>2016-06-01 16:22:10 +0100
commitf7d3d2d8e8891433dc76f2427441b2584729e200 (patch)
tree56d5730043d9403db63e2178cd306cb8bd065c89 /sound/soc/codecs/tas571x.h
parent4b9e385b9dac5c84640b13e70dbbd8e2bb669c8d (diff)
ASoC: tas571x: add input channel mixer for TAS5717/19
Add channel 1 and 2 input mixer registers and the related ALSA mixer controls for TAS5717/19 chips. The mixer control coefficients on the chip are linear in the range -3.99999 to +3.99999, encoded in 3.23 number format. In this patch the mixer controls are limited to 128 values from 0.0 to 1.0 in 1/64 steps. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tas571x.h')
-rw-r--r--sound/soc/codecs/tas571x.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/tas571x.h b/sound/soc/codecs/tas571x.h
index bf4d4362c784..c45677bc26ad 100644
--- a/sound/soc/codecs/tas571x.h
+++ b/sound/soc/codecs/tas571x.h
@@ -87,4 +87,9 @@
#define TAS5717_CH3_BQ0_REG 0x5e
#define TAS5717_CH3_BQ1_REG 0x5f
+#define TAS5717_CH1_RIGHT_CH_MIX_REG 0x72
+#define TAS5717_CH1_LEFT_CH_MIX_REG 0x73
+#define TAS5717_CH2_LEFT_CH_MIX_REG 0x76
+#define TAS5717_CH2_RIGHT_CH_MIX_REG 0x77
+
#endif /* _TAS571X_H */