From a95a0c4518587466216a6047fdacbb9df81ce6f1 Mon Sep 17 00:00:00 2001 From: TC1995 Date: Sun, 15 Sep 2024 22:13:46 +0200 Subject: [PATCH] Remove a useless AND to 0x7f in the SB DSP reset routine in its port 0x0e (Read) This fixes the audio issue on Zool 2. --- src/sound/snd_sb_dsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sound/snd_sb_dsp.c b/src/sound/snd_sb_dsp.c index 7b010c77b..6e9a32086 100644 --- a/src/sound/snd_sb_dsp.c +++ b/src/sound/snd_sb_dsp.c @@ -1983,10 +1983,8 @@ sb_read(uint16_t a, void *priv) else ret = (dsp->sb_read_rp == dsp->sb_read_wp) ? 0x7f : 0xff; } - if (dsp->state == DSP_S_RESET_WAIT) { - ret &= 0x7f; + if (dsp->state == DSP_S_RESET_WAIT) dsp->state = DSP_S_NORMAL; - } break; case 0xF: /* 16-bit ack */ if (IS_NOT_ESS(dsp)) {