summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tlv320adcx140.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-05-14 07:33:38 -0500
committerMark Brown <broonie@kernel.org>2020-05-14 18:05:21 +0100
commit79fc48e41e39d7a98c5f8ae37f613d7ff9953c86 (patch)
tree694018da0d0eb1e19c579836cbc1c35bcd41a9a7 /sound/soc/codecs/tlv320adcx140.h
parent75b0adbb0806a141b0b5f074cd6bd58bb9870c0d (diff)
downloadlinux-79fc48e41e39d7a98c5f8ae37f613d7ff9953c86.tar.gz
linux-79fc48e41e39d7a98c5f8ae37f613d7ff9953c86.tar.bz2
linux-79fc48e41e39d7a98c5f8ae37f613d7ff9953c86.zip
ASoC: tlv320adcx140: Configure PDM sampling edge
Configure the PDM sampling edges based on the values from the firmware. Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200514123338.20392-3-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/tlv320adcx140.h b/sound/soc/codecs/tlv320adcx140.h
index 6d055e55909e..432eaf25d1a7 100644
--- a/sound/soc/codecs/tlv320adcx140.h
+++ b/sound/soc/codecs/tlv320adcx140.h
@@ -128,4 +128,7 @@
#define ADCX140_TX_OFFSET_MASK GENMASK(4, 0)
+#define ADCX140_NUM_PDM_EDGES 4
+#define ADCX140_PDM_EDGE_SHIFT 7
+
#endif /* _TLV320ADCX140_ */