diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/wavplay.c | 4 | ||||
-rw-r--r-- | apps/plugins/wavrecord.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/wavplay.c b/apps/plugins/wavplay.c index 6a969f187b..bf06787dd9 100644 --- a/apps/plugins/wavplay.c +++ b/apps/plugins/wavplay.c | |||
@@ -3345,7 +3345,7 @@ void dma_end_isr(void) | |||
3345 | 3345 | ||
3346 | void demand_irq_enable(bool on) | 3346 | void demand_irq_enable(bool on) |
3347 | { | 3347 | { |
3348 | int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL); | 3348 | int oldlevel = disable_irq_save(); |
3349 | 3349 | ||
3350 | if(on) | 3350 | if(on) |
3351 | { | 3351 | { |
@@ -3357,7 +3357,7 @@ void demand_irq_enable(bool on) | |||
3357 | IPRA &= 0xfff0; | 3357 | IPRA &= 0xfff0; |
3358 | } | 3358 | } |
3359 | 3359 | ||
3360 | set_irq_level(oldlevel); | 3360 | restore_irq(oldlevel); |
3361 | } | 3361 | } |
3362 | 3362 | ||
3363 | static inline int available(void) | 3363 | static inline int available(void) |
diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index ee557633a4..b509212239 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c | |||
@@ -3415,7 +3415,7 @@ void rec_tick(void) | |||
3415 | 3415 | ||
3416 | void rec_tick_enable(bool on) | 3416 | void rec_tick_enable(bool on) |
3417 | { | 3417 | { |
3418 | int oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL); | 3418 | int oldlevel = disable_irq_save(); |
3419 | 3419 | ||
3420 | if(on) | 3420 | if(on) |
3421 | { | 3421 | { |
@@ -3431,7 +3431,7 @@ void rec_tick_enable(bool on) | |||
3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ | 3431 | IPRB = (IPRB & 0xff0f) | 0x0080; /* Reenable IRQ6 */ |
3432 | } | 3432 | } |
3433 | 3433 | ||
3434 | set_irq_level(oldlevel); | 3434 | restore_irq(oldlevel); |
3435 | } | 3435 | } |
3436 | 3436 | ||
3437 | void hijack_interrupts(bool on) | 3437 | void hijack_interrupts(bool on) |