mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
rk27xx: substitute magic constants with meaningful names for INTC
Change-Id: Ic93114db351a9940a53d0c1df6439d82ada044e1
This commit is contained in:
parent
15818bef55
commit
efe1042759
6 changed files with 49 additions and 12 deletions
|
|
@ -35,7 +35,7 @@ void pcm_play_lock(void)
|
|||
if (++locked == 1)
|
||||
{
|
||||
int old = disable_irq_save();
|
||||
INTC_IMR &= ~(1<<12); /* mask HDMA interrupt */
|
||||
INTC_IMR &= ~IRQ_ARM_HDMA; /* mask HDMA interrupt */
|
||||
restore_irq(old);
|
||||
}
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ void pcm_play_unlock(void)
|
|||
if(--locked == 0)
|
||||
{
|
||||
int old = disable_irq_save();
|
||||
INTC_IMR |= (1<<12); /* unmask HDMA interrupt */
|
||||
INTC_IMR |= IRQ_ARM_HDMA; /* unmask HDMA interrupt */
|
||||
restore_irq(old);
|
||||
}
|
||||
}
|
||||
|
|
@ -241,8 +241,8 @@ static void set_codec_freq(unsigned int freq)
|
|||
void pcm_play_dma_init(void)
|
||||
{
|
||||
/* unmask HDMA interrupt in INTC */
|
||||
INTC_IMR |= (1<<12);
|
||||
INTC_IECR |= (1<<12);
|
||||
INTC_IMR |= IRQ_ARM_HDMA;
|
||||
INTC_IECR |= IRQ_ARM_HDMA;
|
||||
|
||||
audiohw_preinit();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue