diff options
author | Michael Sparmann <theseven@rockbox.org> | 2011-01-07 15:16:17 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2011-01-07 15:16:17 +0000 |
commit | 46945eff06e32316b2658e57d2aea5cbb42ebae6 (patch) | |
tree | fc5036894be8e28370ad8b6c7c4b99e5392e7f85 /firmware/target/arm/s5l8702/debug-s5l8702.c | |
parent | 67a85912c8b799e5ab0bb089f5839a390e3a11de (diff) |
iPod Classic: Fix remaining PCM issues and add DMA information to the HW debug screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/s5l8702/debug-s5l8702.c')
-rw-r--r-- | firmware/target/arm/s5l8702/debug-s5l8702.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8702/debug-s5l8702.c b/firmware/target/arm/s5l8702/debug-s5l8702.c index 30d97d9203..471eae8acd 100644 --- a/firmware/target/arm/s5l8702/debug-s5l8702.c +++ b/firmware/target/arm/s5l8702/debug-s5l8702.c @@ -29,6 +29,7 @@ #include "storage.h"
#include "power.h"
#include "pmu-target.h"
+#include "pcm-target.h"
/* Skeleton for adding target specific debug info to the debug menu
*/
@@ -40,7 +41,7 @@ bool __dbg_hw_info(void) int line;
int i;
unsigned int state = 0;
- const unsigned int max_states=2;
+ const unsigned int max_states=3;
lcd_clear_display();
lcd_setfont(FONT_SYSFIXED);
@@ -81,6 +82,16 @@ bool __dbg_hw_info(void) _DEBUG_PRINTF("backlight: %s", pmu_read(0x29) ? "on" : "off");
_DEBUG_PRINTF("brightness value: %d", pmu_read(0x28));
}
+ else if(state==2)
+ {
+ _DEBUG_PRINTF("Audio DMA:");
+ _DEBUG_PRINTF(">%08X %08X %08X %08X %08X", DMAC0C0CONFIG, DMAC0C0SRCADDR,
+ DMAC0C0DESTADDR, DMAC0C0NEXTLLI, DMAC0C0CONTROL);
+ for(i = 0; i < PCM_LLICOUNT; i++)
+ _DEBUG_PRINTF("%08X: %08X %08X %08X %08X", &pcm_lli[i], pcm_lli[i].srcaddr,
+ pcm_lli[i].dstaddr, pcm_lli[i].nextlli, pcm_lli[i].control);
+ _DEBUG_PRINTF("chunk: %08X %08X", pcm_chunksize, pcm_remaining);
+ }
else
{
state=0;
|