Fix errors in unintentionally merged gerrit commit.

It proved the system work as unintended, even if slightly prematurely.
It was almost ready anyway.

Change-Id: Ic4de2b925bd26b094eaf65a120591569923954d1
This commit is contained in:
Michael Sevakis 2012-03-03 01:45:09 -05:00
parent 286a4c5caa
commit 59e5a323f1
2 changed files with 3 additions and 2 deletions

View file

@ -53,7 +53,7 @@ struct dma_data
struct dma_data dma_play_data SHAREDBSS_ATTR = struct dma_data dma_play_data SHAREDBSS_ATTR =
{ {
/* Initialize to a locked, stopped state */ /* Initialize to a locked, stopped state */
.p = NULL, { .p = NULL },
.size = 0, .size = 0,
#if NUM_CORES > 1 #if NUM_CORES > 1
.core = 0x00, .core = 0x00,

View file

@ -65,7 +65,8 @@ void INT_DMAC0C0(void)
DMAC0INTTCCLR = 1; DMAC0INTTCCLR = 1;
if (!pcm_remaining) if (!pcm_remaining)
{ {
pcm_play_dma_complete_callback((const void**)&dataptr, &pcm_remaining); pcm_play_dma_complete_callback(PCM_DMAST_OK, (const void**)&dataptr,
&pcm_remaining);
pcm_chunksize = pcm_remaining; pcm_chunksize = pcm_remaining;
} }
if (!pcm_remaining) if (!pcm_remaining)