From 26d9fa4daae86bcdc2b9fdd4c140b72fe78acdb9 Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 24 Oct 2023 02:34:50 +0200 Subject: [PATCH] Sane defaults for mixer register FFh. --- src/sound/snd_sb.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/sound/snd_sb.c b/src/sound/snd_sb.c index 525b2e50d..5f9fb7f27 100644 --- a/src/sound/snd_sb.c +++ b/src/sound/snd_sb.c @@ -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;