Deal with a complication when transferring recording method from PP5024: since the FIFO POP is always read until empty, keep track of sample parity instead of always saving the first one in the FIFO upon entering the ISR or else the first of a duplicate that is also the last in the FIFO would get duplicated. Also, give top priority to audio interrupts in all cases.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31218 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2011-12-12 20:12:22 +00:00
parent 5c1e936592
commit 184459fa54
5 changed files with 53 additions and 42 deletions

View file

@ -137,7 +137,7 @@ void INT_DMAC(void)
{
unsigned int channel;
/* SD channel is serviced first */
/* Lowest channel index is serviced first */
for(channel = 0; channel < 2; channel++)
if(DMAC_INT_STATUS & (1<<channel))
{