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.
This commit is contained in:
TC1995
2024-09-15 22:13:46 +02:00
parent d12062017a
commit a95a0c4518

View File

@@ -1983,10 +1983,8 @@ sb_read(uint16_t a, void *priv)
else else
ret = (dsp->sb_read_rp == dsp->sb_read_wp) ? 0x7f : 0xff; ret = (dsp->sb_read_rp == dsp->sb_read_wp) ? 0x7f : 0xff;
} }
if (dsp->state == DSP_S_RESET_WAIT) { if (dsp->state == DSP_S_RESET_WAIT)
ret &= 0x7f;
dsp->state = DSP_S_NORMAL; dsp->state = DSP_S_NORMAL;
}
break; break;
case 0xF: /* 16-bit ack */ case 0xF: /* 16-bit ack */
if (IS_NOT_ESS(dsp)) { if (IS_NOT_ESS(dsp)) {