summaryrefslogtreecommitdiff
path: root/firmware/pcm_playback.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/pcm_playback.c')
-rw-r--r--firmware/pcm_playback.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index af642e4d43..6d60c40fdb 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -333,8 +333,6 @@ static int pcm_freq = 0x6; /* 44.1 is default */
333unsigned short* p IBSS_ATTR; 333unsigned short* p IBSS_ATTR;
334long p_size IBSS_ATTR; 334long p_size IBSS_ATTR;
335 335
336#define PP5002_DMA_OUT_MASK (1 << DMA_OUT_IRQ)
337
338static void dma_start(const void *addr, size_t size) 336static void dma_start(const void *addr, size_t size)
339{ 337{
340 p=(unsigned short*)addr; 338 p=(unsigned short*)addr;
@@ -348,8 +346,8 @@ static void dma_start(const void *addr, size_t size)
348 outl(I2S_MASK, 0x60004024); 346 outl(I2S_MASK, 0x60004024);
349#else 347#else
350 /* setup I2S interrupt for FIQ */ 348 /* setup I2S interrupt for FIQ */
351 outl(inl(0xcf00103c) | PP5002_DMA_OUT_MASK, 0xcf00103c); 349 outl(inl(0xcf00103c) | DMA_OUT_MASK, 0xcf00103c);
352 outl(PP5002_DMA_OUT_MASK, 0xcf001034); 350 outl(DMA_OUT_MASK, 0xcf001034);
353#endif 351#endif
354 352
355 /* Clear the FIQ disable bit in cpsr_c */ 353 /* Clear the FIQ disable bit in cpsr_c */
@@ -370,7 +368,7 @@ static void dma_start(const void *addr, size_t size)
370#if CONFIG_CPU == PP5020 368#if CONFIG_CPU == PP5020
371 IISCONFIG |= 0x2; 369 IISCONFIG |= 0x2;
372#elif CONFIG_CPU == PP5002 370#elif CONFIG_CPU == PP5002
373 IISFIFO_CFG &= ~(1<<9); 371 IISFIFO_CFG |= (1<<9);
374#endif 372#endif
375 return; 373 return;
376 } 374 }
@@ -483,7 +481,7 @@ void pcm_play_pause(bool play)
483#if CONFIG_CPU == PP5020 481#if CONFIG_CPU == PP5020
484 IISCONFIG |= 0x2; 482 IISCONFIG |= 0x2;
485#elif CONFIG_CPU == PP5002 483#elif CONFIG_CPU == PP5002
486 IISFIFO_CFG &= ~(1<<9); 484 IISFIFO_CFG |= (1<<9);
487#endif 485#endif
488 return; 486 return;
489 } 487 }
@@ -643,7 +641,7 @@ void fiq(void)
643#if CONFIG_CPU == PP5020 641#if CONFIG_CPU == PP5020
644 IISCONFIG |= 0x2; 642 IISCONFIG |= 0x2;
645#elif CONFIG_CPU == PP5002 643#elif CONFIG_CPU == PP5002
646 IISFIFO_CFG &= ~(1<<9); 644 IISFIFO_CFG |= (1<<9);
647#endif 645#endif
648 return; 646 return;
649 } 647 }