From 479ca3d6b4ba625f05cefe075469cc03f1b95477 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Thu, 5 Jun 2025 13:07:40 +0200 Subject: [PATCH] Small IRQ correction on ad1848/cs4231 (June 5th, 2025) This fixes the the looping wave plays in Win95 using GUS MAX and possibly on WSS derived products. --- src/sound/snd_ad1848.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sound/snd_ad1848.c b/src/sound/snd_ad1848.c index 202fd891a..e9a4390c0 100644 --- a/src/sound/snd_ad1848.c +++ b/src/sound/snd_ad1848.c @@ -731,9 +731,11 @@ ad1848_poll(void *priv) if (!(ad1848->status & 0x01)) { ad1848->status |= 0x01; ad1848->regs[24] |= 0x10; - if (ad1848->regs[10] & 2) - picint(1 << ad1848->irq); } + if (ad1848->regs[10] & 2) + picint(1 << ad1848->irq); + else + picintc(1 << ad1848->irq); } if (!(ad1848->adpcm_pos & 7)) /* ADPCM counts down every 4 bytes */