From a2b4a4c5a06db4ebd93fb795df4b61fedeb5ccff Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 3 Jan 2025 09:18:15 +0100 Subject: [PATCH] ES1370: Fix detection. --- src/sound/snd_audiopci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_audiopci.c b/src/sound/snd_audiopci.c index ca929fc14..81c979723 100644 --- a/src/sound/snd_audiopci.c +++ b/src/sound/snd_audiopci.c @@ -2627,7 +2627,7 @@ es1370_init(const device_t *info) dev->gameport = gameport_add(&gameport_pnp_device); gameport_remap(dev->gameport, 0x200); - pci_add_card(info->local ? PCI_ADD_SOUND : PCI_ADD_NORMAL, es1370_pci_read, es1370_pci_write, dev, &dev->pci_slot); + pci_add_card((info->local & 1) ? PCI_ADD_SOUND : PCI_ADD_NORMAL, es1370_pci_read, es1370_pci_write, dev, &dev->pci_slot); timer_add(&dev->dac[1].timer, es137x_poll, dev, 1);