1
0
Fork 0
forked from len0rd/rockbox

The lowest watermark debug info wasn't correctly updated

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2941 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-12-05 13:23:12 +00:00
parent f1f7b6150a
commit 4851a2a939

View file

@ -861,10 +861,6 @@ void DEI3(void)
DTCR3 = last_dma_chunk_size & 0xffff;
SAR3 = (unsigned int)mp3buf + mp3buf_read;
id3tags[tag_read_idx]->id3.offset += last_dma_chunk_size;
/* Update the watermark debug level */
if(unplayed_space_left < lowest_watermark_level)
lowest_watermark_level = unplayed_space_left;
}
else
{
@ -887,6 +883,10 @@ void DEI3(void)
}
CHCR3 &= ~0x0001; /* Disable the DMA interrupt */
}
/* Update the watermark debug level */
if(unplayed_space_left < lowest_watermark_level)
lowest_watermark_level = unplayed_space_left;
}
CHCR3 &= ~0x0002; /* Clear DMA interrupt */