dbdma: Clear active flag if paused flag is set.

The active flag is cleared when the pause flag is set, so why shouldn't the active flag be cleared when the start flag is set with the pause flag is already set?
This commit is contained in:
joevt 2024-03-20 02:00:48 -07:00 committed by dingusdev
parent 6766ca8647
commit 96875a1278

View File

@ -546,6 +546,7 @@ void DMAChannel::start() {
if (this->ch_stat & CH_STAT_PAUSE) {
LOG_F(WARNING, "%s: Cannot start DMA channel, PAUSE bit is set",
this->get_name().c_str());
this->ch_stat &= ~CH_STAT_ACTIVE; // TODO: Test this in Open Firmware.
return;
}