Fix hijacking of the CD audio filter by VIA AC97

This commit is contained in:
RichardG867
2021-11-20 22:59:08 -03:00
parent 96439dac3d
commit 1e98d531f2
4 changed files with 15 additions and 8 deletions

View File

@@ -824,6 +824,9 @@ pipc_sb_handlers(pipc_t *dev, uint8_t modem)
sb_dsp_setirq(&dev->sb->dsp, (irq == 11) ? 10 : irq);
sb_dsp_setdma8(&dev->sb->dsp, (dev->ac97_regs[0][0x43] >> 4) & 0x03);
/* Set up CD audio filter. This might not actually work if VIAUDIO writes to CD volume through AC97. */
sound_set_cd_audio_filter(sbpro_filter_cd_audio, dev->sb);
}
if (dev->ac97_regs[0][0x42] & 0x02) {