diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-09-15 14:06:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-17 14:47:12 +0100 |
commit | df16e2210454ca0b8a59caf364dd287fbb76a804 (patch) | |
tree | 4af48c701581706e0150555d7b5076c388f55e36 /sound/soc/codecs/tlv320adcx140.h | |
parent | 73154aca4a03a2ab4833fd36683feb884af06d4b (diff) | |
download | linux-df16e2210454ca0b8a59caf364dd287fbb76a804.tar.gz linux-df16e2210454ca0b8a59caf364dd287fbb76a804.tar.bz2 linux-df16e2210454ca0b8a59caf364dd287fbb76a804.zip |
ASoC: tlv320adcx140: Idle the device while writing registers
It was observed that if the device was active and register writes were
performed there were some unwanted behaviors particularly when writing
the word length and some filter options. So when writing to the device
the device should be placed in sleep mode and then exit sleep mode once
the register update is complete.
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200915190606.1744-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320adcx140.h b/sound/soc/codecs/tlv320adcx140.h index eedbc1d7221f..94c6d1fd2977 100644 --- a/sound/soc/codecs/tlv320adcx140.h +++ b/sound/soc/codecs/tlv320adcx140.h @@ -123,6 +123,7 @@ #define ADCX140_MIC_BIAS_VREF_1375V 2 #define ADCX140_MIC_BIAS_VREF_MSK GENMASK(1, 0) +#define ADCX140_PWR_CTRL_MSK GENMASK(7, 5) #define ADCX140_PWR_CFG_BIAS_PDZ BIT(7) #define ADCX140_PWR_CFG_ADC_PDZ BIT(6) #define ADCX140_PWR_CFG_PLL_PDZ BIT(5) @@ -145,4 +146,5 @@ #define ADCX140_GPO_CFG_MAX 4 #define ADCX140_GPO_DRV_MAX 5 + #endif /* _TLV320ADCX140_ */ |