More ViBRA 16XV fixing - DIAGNOSE 4.05 now successfully sets high DMA.

This commit is contained in:
OBattler
2023-10-22 00:46:06 +02:00
parent 3ef9941ba6
commit 90e682a339
2 changed files with 108 additions and 97 deletions

View File

@@ -158,6 +158,7 @@ static uint8_t sb_16_pnp_rom[] = {
// clang-format on
};
// #define ENABLE_SB_LOG 1
#ifdef ENABLE_SB_LOG
int sb_do_log = ENABLE_SB_LOG;
@@ -936,6 +937,15 @@ sb_ct1745_mixer_write(uint16_t addr, uint8_t val, void *priv)
}
break;
case 0xff:
if (sb->dsp.sb_type >= SBAWE32) {
if (val & 0x20)
sb_dsp_setdma16(&sb->dsp, 4);
else
sb_dsp_setdma16(&sb->dsp, val & 0x07);
}
break;
default:
break;
}