From e6ce96a169d3700dc6d11d3800cc5878ba621bf9 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 7 Nov 2023 22:29:53 -0300 Subject: [PATCH] snd_sb: Fix small IDE initialization oversight --- src/sound/snd_sb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sound/snd_sb.c b/src/sound/snd_sb.c index dbf242e59..5efb56bd1 100644 --- a/src/sound/snd_sb.c +++ b/src/sound/snd_sb.c @@ -2230,7 +2230,7 @@ sb_16_pnp_init(UNUSED(const device_t *info)) sb_dsp_setdma16(&sb->dsp, ISAPNP_DMA_DISABLED); mpu401_change_addr(sb->mpu, 0); - ide_remove_handlers(2); + ide_remove_handlers(3); sb->gameport_addr = 0; gameport_remap(sb->gameport, 0); @@ -2559,7 +2559,8 @@ sb_awe32_pnp_init(const device_t *info) sb_dsp_setdma16(&sb->dsp, ISAPNP_DMA_DISABLED); mpu401_change_addr(sb->mpu, 0); - ide_remove_handlers(2); + if ((info->local != 2) && (info->local != 3) && (info->local != 4)) + ide_remove_handlers(3); emu8k_change_addr(&sb->emu8k, 0);