summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tlv320adcx140.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-02-21 21:13:57 +0300
committerMark Brown <broonie@kernel.org>2020-02-21 22:36:18 +0300
commit8a329dbd4a02dc4e4ff78b006c33676f867f2726 (patch)
tree688f61795a5fb67c8b8c0a2e97fbc2f1259856b5 /sound/soc/codecs/tlv320adcx140.h
parentb38c4a8a0291c31a660cd77761202ebb18332fb7 (diff)
downloadlinux-8a329dbd4a02dc4e4ff78b006c33676f867f2726.tar.xz
ASoC: tlv320adcx140: Add DRE and AGC support
The TLV320ADCx140 parts support Dynamic Range Enhancer (DRE) as defined in Section 8.3.2 of the data sheets. The DRE achieves a complete-channel dynamic range as high as 120 dB. At a system level, the DRE scheme enables far-field, high-fidelity recording of audio signals in very quiet environments and low-distortion recording in loud environments. There are 2 enables for DRE. The first is a global setting that enables the DRE engine in the device and the other enable is per channel. If the DRE is enabled globally then either DRE or AGC can be used per each configured channel. If global DRE is disabled then even setting the DRE enable bit in the channel config register will have no effect. Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200221181358.22526-1-dmurphy@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tlv320adcx140.h')
-rw-r--r--sound/soc/codecs/tlv320adcx140.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320adcx140.h b/sound/soc/codecs/tlv320adcx140.h
index 66b1c3b33f1e..6d055e55909e 100644
--- a/sound/soc/codecs/tlv320adcx140.h
+++ b/sound/soc/codecs/tlv320adcx140.h
@@ -84,6 +84,7 @@
#define ADCX140_DSP_CFG0 0x6b
#define ADCX140_DSP_CFG1 0x6c
#define ADCX140_DRE_CFG0 0x6d
+#define ADCX140_AGC_CFG0 0x70
#define ADCX140_IN_CH_EN 0x73
#define ADCX140_ASI_OUT_CH_EN 0x74
#define ADCX140_PWR_CFG 0x75