summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/h100/power-h100.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-07 06:23:02 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-07 06:23:02 +0000
commit633f3880024a2f83a21dd96368aa397940bc9ad6 (patch)
tree7c4319b1715c5c86252fd816764fdf53435163fb /firmware/target/coldfire/iriver/h100/power-h100.c
parent2c94c1afc377c6605772008e6c27b06d579cecf4 (diff)
downloadrockbox-633f3880024a2f83a21dd96368aa397940bc9ad6.tar.gz
rockbox-633f3880024a2f83a21dd96368aa397940bc9ad6.zip
Coldfire targets: Shuffle IRQ levels around to have all interaction between low level audio function calls and DMA be atomic. Make recording and playback independently startable and stoppable so one can be running and not interfere with the other. All tests I can do at the moment check out ok (play, record, play+record, FM radio on iRivers, S/PDIF on H120 (w/running optical on/off), and on-the-fly samplerate changes). Recording tested for well over an hour run and no problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12658 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iriver/h100/power-h100.c')
-rw-r--r--firmware/target/coldfire/iriver/h100/power-h100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/coldfire/iriver/h100/power-h100.c b/firmware/target/coldfire/iriver/h100/power-h100.c
index 75c8bea9dd..ce1c350802 100644
--- a/firmware/target/coldfire/iriver/h100/power-h100.c
+++ b/firmware/target/coldfire/iriver/h100/power-h100.c
@@ -119,7 +119,7 @@ bool ide_powered(void)
119 119
120void power_off(void) 120void power_off(void)
121{ 121{
122 set_irq_level(HIGHEST_IRQ_LEVEL); 122 set_irq_level(DISABLE_INTERRUPTS);
123 and_l(~0x00080000, &GPIO1_OUT); 123 and_l(~0x00080000, &GPIO1_OUT);
124 asm("halt"); 124 asm("halt");
125 while(1) 125 while(1)