summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tlv320adcx140.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-05-13 17:28:07 +0300
committerMark Brown <broonie@kernel.org>2020-05-13 19:13:23 +0300
commit0e36f32f6b6c4c86a6bf3d6f0940831691b0a3b0 (patch)
tree730b8bf18c8b1e58e2d8a6306e3496a0cba49e35 /sound/soc/codecs/tlv320adcx140.h
parent65e412a01bc0161175a962abd5a7fef6a62d5c8e (diff)
downloadlinux-0e36f32f6b6c4c86a6bf3d6f0940831691b0a3b0.tar.xz
ASoC: tlv320adcx140: Fix bias config values
The device tree binding declares the ti,mic-bias-source and the ti,vref-source properties as u32. The code reads them as u8 which is incorrect. Since the device tree binding indicates them as u32 the conde needs to be updated to read u32. In addition the bias source needs to be shifted 4 bits to correctly write the register. driver family") Fixes: 37bde5acf040 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200513142807.11802-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 6d055e55909e..69de52d473f4 100644
--- a/sound/soc/codecs/tlv320adcx140.h
+++ b/sound/soc/codecs/tlv320adcx140.h
@@ -116,6 +116,7 @@
#define ADCX140_MIC_BIAS_VAL_VREF_1096 1
#define ADCX140_MIC_BIAS_VAL_AVDD 6
#define ADCX140_MIC_BIAS_VAL_MSK GENMASK(6, 4)
+#define ADCX140_MIC_BIAS_SHIFT 4
#define ADCX140_MIC_BIAS_VREF_275V 0
#define ADCX140_MIC_BIAS_VREF_25V 1