Merge pull request #5653 from 86Box/tc1995

Small IRQ correction on ad1848/cs4231 (June 5th, 2025)
This commit is contained in:
Miran Grča
2025-06-05 13:51:24 +02:00
committed by GitHub

View File

@@ -731,9 +731,11 @@ ad1848_poll(void *priv)
if (!(ad1848->status & 0x01)) {
ad1848->status |= 0x01;
ad1848->regs[24] |= 0x10;
if (ad1848->regs[10] & 2)
picint(1 << ad1848->irq);
}
if (ad1848->regs[10] & 2)
picint(1 << ad1848->irq);
else
picintc(1 << ad1848->irq);
}
if (!(ad1848->adpcm_pos & 7)) /* ADPCM counts down every 4 bytes */