VIA AC97: Fix SGD pause bit, fixes mpxplay looping on stop

This commit is contained in:
RichardG867
2021-08-03 21:24:08 -03:00
parent e937de6760
commit b0c1e4726f

View File

@@ -350,10 +350,10 @@ ac97_via_sgd_write(uint16_t addr, uint8_t val, void *priv)
if (val & 0x40)
dev->sgd_regs[addr & 0xf0] &= ~0x88;
val &= 0x04;
val &= 0x08;
/* (Un)pause SGD if requested. */
if (val & 0x04)
if (val & 0x08)
dev->sgd_regs[addr & 0xf0] |= 0x40;
else
dev->sgd_regs[addr & 0xf0] &= ~0x40;