Sane defaults for mixer register FFh.

This commit is contained in:
OBattler
2023-10-24 02:34:50 +02:00
parent 2f3d5d5fc4
commit 26d9fa4daa

View File

@@ -820,8 +820,13 @@ sb_ct1745_mixer_write(uint16_t addr, uint8_t val, void *priv)
sb->dsp.sb_irqm16 = 0;
sb->dsp.sb_irqm401 = 0;
// mixer->regs[0xfd] = 0x10;
// mixer->regs[0xfe] = 0x06;
mixer->regs[0xfd] = 0x10;
mixer->regs[0xfe] = 0x06;
mixer->regs[0xff] = sb->dsp.sb_16_dma_supported ? 0x05 : 0x03;
sb_dsp_setdma16_enabled(&sb->dsp, 0x01);
sb_dsp_setdma16_translate(&sb->dsp, mixer->regs[0xff] & 0x02);
} else
mixer->regs[mixer->index] = val;