summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ascodec-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ascodec-target.h')
-rw-r--r--firmware/target/arm/ascodec-target.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/firmware/target/arm/ascodec-target.h b/firmware/target/arm/ascodec-target.h
index d3a0bc4b7d..c87d869ebb 100644
--- a/firmware/target/arm/ascodec-target.h
+++ b/firmware/target/arm/ascodec-target.h
@@ -59,6 +59,28 @@ static inline void ascodec_unlock(void)
59 i2c_unlock(); 59 i2c_unlock();
60} 60}
61 61
62static inline void ascodec_enable_endofch_irq(void)
63{
64 ascodec_write(AS3514_IRQ_ENRD0, IRQ_ENDOFCH);
65}
66
67static inline void ascodec_disable_endofch_irq(void)
68{
69 ascodec_write(AS3514_IRQ_ENRD0, 0);
70}
71
72static inline void ascodec_wait_adc_finished(void)
73{
74 /*
75 * FIXME: not implemented
76 *
77 * If irqs are not available on the target platform,
78 * this should be most likely implemented by polling
79 * AS3514_IRQ_ENRD2 in the same way powermgmt-ascodec.c
80 * is polling IRQ_ENDOFCH.
81 */
82}
83
62extern void ascodec_suppressor_on(bool on); 84extern void ascodec_suppressor_on(bool on);
63 85
64#endif /* CPU_PP */ 86#endif /* CPU_PP */