summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702/debug-s5l8702.c
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2014-12-06 18:37:09 +0100
committerCástor Muñoz <cmvidal@gmail.com>2015-10-07 06:15:03 +0200
commit67b4e7f958f4b6569dce8c50c117b22c9f1f9ca7 (patch)
tree638f9a6141122065f0120cba51bafd7c8ea6f22e /firmware/target/arm/s5l8702/debug-s5l8702.c
parentd6ee2c9eafbf5381695d1c7eb01801855c85222b (diff)
downloadrockbox-67b4e7f958f4b6569dce8c50c117b22c9f1f9ca7.tar.gz
rockbox-67b4e7f958f4b6569dce8c50c117b22c9f1f9ca7.zip
iPod Classic: use new PL080 DMA driver
This patch uses the new pl080 DMA driver for I2S playback and LCD update. I have tried to be as fiel as possible to the current behaviour, algorithms and configurations are the same, but using the new driver. Other modifications: Playback: - CHUNK_SIZE is decreased from 42988 to 8188 bytes, it does not affect normal playback (block size 1024), was tested using metronome (block size 46080). This change is needed because the new code commits d-cache range instead of commiting the whole d-cache, maximum time spent commiting the range should be limited, CHUNK_SIZE can be decreased even more if necessary. - pcm_play_dma_start() calls pcm_play_dma_stop() to stop the channel when it is running (metronome replays the tick sound without stopping the channel). - pcm_play_dma_get_peak_buffer(): same as actual SVN function but returns samples count instead of bytes count. TODO: AFAIK, actually this function is not used in RB. Not tested, but probably this function will fail because it returns pointers to the internal double buffer. LCD update: - suppresses lcd_wakeup semaphore and uses yield() Change-Id: I79b8aa47a941e0dd91847150618f3f7f676c26ef
Diffstat (limited to 'firmware/target/arm/s5l8702/debug-s5l8702.c')
-rw-r--r--firmware/target/arm/s5l8702/debug-s5l8702.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/firmware/target/arm/s5l8702/debug-s5l8702.c b/firmware/target/arm/s5l8702/debug-s5l8702.c
index 66bfa36a93..74f765e447 100644
--- a/firmware/target/arm/s5l8702/debug-s5l8702.c
+++ b/firmware/target/arm/s5l8702/debug-s5l8702.c
@@ -44,7 +44,7 @@ bool dbg_hw_info(void)
44 int line; 44 int line;
45 int i; 45 int i;
46 unsigned int state = 0; 46 unsigned int state = 0;
47 const unsigned int max_states=3; 47 const unsigned int max_states=2;
48 48
49 lcd_clear_display(); 49 lcd_clear_display();
50 lcd_setfont(FONT_SYSFIXED); 50 lcd_setfont(FONT_SYSFIXED);
@@ -95,16 +95,6 @@ bool dbg_hw_info(void)
95 _DEBUG_PRINTF("backlight: %s", pmu_read(0x29) ? "on" : "off"); 95 _DEBUG_PRINTF("backlight: %s", pmu_read(0x29) ? "on" : "off");
96 _DEBUG_PRINTF("brightness value: %d", pmu_read(0x28)); 96 _DEBUG_PRINTF("brightness value: %d", pmu_read(0x28));
97 } 97 }
98 else if(state==2)
99 {
100 _DEBUG_PRINTF("Audio DMA:");
101 _DEBUG_PRINTF(">%08X %08X %08X %08X %08X", DMAC0C0CONFIG, DMAC0C0SRCADDR,
102 DMAC0C0DESTADDR, DMAC0C0NEXTLLI, DMAC0C0CONTROL);
103 for(i = 0; i < PCM_LLICOUNT; i++)
104 _DEBUG_PRINTF("%08X: %08X %08X %08X %08X", &pcm_lli[i], pcm_lli[i].srcaddr,
105 pcm_lli[i].dstaddr, pcm_lli[i].nextlli, pcm_lli[i].control);
106 _DEBUG_PRINTF("chunk: %08X %08X", pcm_chunksize, pcm_remaining);
107 }
108 else 98 else
109 { 99 {
110 state=0; 100 state=0;