aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-mcpdm.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-09-26 09:05:58 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-26 17:23:32 -0400
commit89b0d550a6800793b917ce2290ddcd55374d7df6 (patch)
tree2521e9d63ec2be7f997c9d3e990355122cae7c14 /sound/soc/omap/omap-mcpdm.h
parentdb4aabcc1f2ac32de290510bcc895a960886779d (diff)
ASoC: omap-mcpdm: API to configure offset cancellation
The offset cancellation values can be different from board to board, even on the same HW platform. Provide a way for the machine drivers to configure the McPDM offset cancellation. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap-mcpdm.h')
-rw-r--r--sound/soc/omap/omap-mcpdm.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcpdm.h b/sound/soc/omap/omap-mcpdm.h
index d23122afdb10..de8cf26595b1 100644
--- a/sound/soc/omap/omap-mcpdm.h
+++ b/sound/soc/omap/omap-mcpdm.h
@@ -92,4 +92,16 @@
92#define MCPDM_UP_THRES_MAX 0xF 92#define MCPDM_UP_THRES_MAX 0xF
93#define MCPDM_DN_THRES_MAX 0xF 93#define MCPDM_DN_THRES_MAX 0xF
94 94
95/*
96 * MCPDM_DN_OFFSET bit fields
97 */
98
99#define MCPDM_DN_OFST_RX1_EN (1 << 0)
100#define MCPDM_DNOFST_RX1(x) ((x & 0x1f) << 1)
101#define MCPDM_DN_OFST_RX2_EN (1 << 8)
102#define MCPDM_DNOFST_RX2(x) ((x & 0x1f) << 9)
103
104void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,
105 u8 rx1, u8 rx2);
106
95#endif /* End of __OMAP_MCPDM_H__ */ 107#endif /* End of __OMAP_MCPDM_H__ */