diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-03-23 05:02:37 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-03-23 05:02:37 +0000 |
commit | 47ab95904efe238568e4cc66f0d3aacd9e7a8c10 (patch) | |
tree | 8da94d74b9e0ef3ad01011d706781577eeec0e26 /firmware/target/arm/ascodec-target.h | |
parent | 655034983547c0678842e7407cebe0ea12b006cc (diff) | |
download | rockbox-47ab95904efe238568e4cc66f0d3aacd9e7a8c10.tar.gz rockbox-47ab95904efe238568e4cc66f0d3aacd9e7a8c10.zip |
Add handler for audio irq.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ascodec-target.h')
-rw-r--r-- | firmware/target/arm/ascodec-target.h | 22 |
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 | ||
62 | static inline void ascodec_enable_endofch_irq(void) | ||
63 | { | ||
64 | ascodec_write(AS3514_IRQ_ENRD0, IRQ_ENDOFCH); | ||
65 | } | ||
66 | |||
67 | static inline void ascodec_disable_endofch_irq(void) | ||
68 | { | ||
69 | ascodec_write(AS3514_IRQ_ENRD0, 0); | ||
70 | } | ||
71 | |||
72 | static 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 | |||
62 | extern void ascodec_suppressor_on(bool on); | 84 | extern void ascodec_suppressor_on(bool on); |
63 | 85 | ||
64 | #endif /* CPU_PP */ | 86 | #endif /* CPU_PP */ |