summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/adau17x1.h
diff options
context:
space:
mode:
authorRicard Wanderlof <ricard.wanderlof@axis.com>2017-09-07 16:31:38 +0300
committerMark Brown <broonie@kernel.org>2017-09-07 16:46:34 +0300
commit1e6f4fc06f6411adf98bbbe7fcd79442cd2b2a75 (patch)
tree75f148ede163ca0690cd6ed0141b648e6b35b249 /sound/soc/codecs/adau17x1.h
parent7051334672e54fae67e02d5d3296fb62b3343be7 (diff)
downloadlinux-1e6f4fc06f6411adf98bbbe7fcd79442cd2b2a75.tar.xz
ASoC: adau17x1: Workaround for noise bug in ADC
The ADC in the ADAU1361 (and possibly other Analog Devices codecs) exhibits a cyclic variation in the noise floor (in our test setup between -87 and -93 dB), a new value being attained within this range whenever a new capture stream is started. The cycle repeats after about 10 or 11 restarts. The workaround recommended by the manufacturer is to toggle the ADOSR bit in the Converter Control 0 register each time a new capture stream is started. I have verified that the patch fixes this problem on the ADAU1361, and according to the manufacturer toggling the bit in question in this manner will at least have no detrimental effect on other chips served by this driver. Signed-off-by: Ricard Wanderlof <ricardw@axis.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/codecs/adau17x1.h')
-rw-r--r--sound/soc/codecs/adau17x1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/adau17x1.h b/sound/soc/codecs/adau17x1.h
index bf04b7efee40..db350035fad7 100644
--- a/sound/soc/codecs/adau17x1.h
+++ b/sound/soc/codecs/adau17x1.h
@@ -129,5 +129,7 @@ bool adau17x1_has_dsp(struct adau *adau);
#define ADAU17X1_CONVERTER0_CONVSR_MASK 0x7
+#define ADAU17X1_CONVERTER0_ADOSR BIT(3)
+
#endif