Skip to content

Commit

Permalink
DSP: Don't start audio dma requests if timer is not running
Browse files Browse the repository at this point in the history
  • Loading branch information
Gericom committed Mar 28, 2020
1 parent 883c0d7 commit 844ffca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dsp/src/gbaAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ static void updateDChanDMA(gbaa_daudio_channel_t* channel)
return;
}
}

const gbat_t* timer = &sTimers[channel->timerIdx];
if(!timer->isStarted)
return;
if(channel->fifoCount <= 16 && !sTransferBusy && !(REG_DMA_START & (1 << 5)))
{
u32 addr = channel->addrLo | ((u32)channel->addrHi << 16);
Expand Down

0 comments on commit 844ffca

Please sign in to comment.