diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-07 20:49:13 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-07 20:49:13 +0000 |
commit | 6099dc8b77e1b536ff47b4b74edf20f1fafda5b6 (patch) | |
tree | 904bb7a034a55d7f7eb37277a75a061f631b3afe /firmware/export | |
parent | f5cf798db124f2b2add8044283b1c7f79b1ca720 (diff) | |
download | rockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.tar.gz rockbox-6099dc8b77e1b536ff47b4b74edf20f1fafda5b6.zip |
iPod: Re-written audio driver. This brings it in line with changes to pcm playback system, and also appears to fix all the ipod-specific playback glitches
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8614 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/system.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 380c229f1d..e88c793fae 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -345,7 +345,7 @@ static inline int set_irq_level(int level) | |||
345 | 345 | ||
346 | static inline void enable_fiq(void) | 346 | static inline void enable_fiq(void) |
347 | { | 347 | { |
348 | /* enable FIQ */ | 348 | /* Clear FIQ disable bit */ |
349 | asm volatile ( | 349 | asm volatile ( |
350 | "mrs r0, cpsr \n"\ | 350 | "mrs r0, cpsr \n"\ |
351 | "bic r0, r0, #0x40 \n"\ | 351 | "bic r0, r0, #0x40 \n"\ |
@@ -354,6 +354,17 @@ static inline void enable_fiq(void) | |||
354 | ); | 354 | ); |
355 | } | 355 | } |
356 | 356 | ||
357 | static inline void disable_fiq(void) | ||
358 | { | ||
359 | /* Set FIQ disable bit */ | ||
360 | asm volatile ( | ||
361 | "mrs r0, cpsr \n"\ | ||
362 | "orr r0, r0, #0x40 \n"\ | ||
363 | "msr cpsr_c, r0 " | ||
364 | : : : "r0" | ||
365 | ); | ||
366 | } | ||
367 | |||
357 | #define invalidate_icache() | 368 | #define invalidate_icache() |
358 | 369 | ||
359 | #if CONFIG_CPU == PNX0101 | 370 | #if CONFIG_CPU == PNX0101 |