From e8908ee1b40ecbcb62303492e05263f28c22ed5e Mon Sep 17 00:00:00 2001 From: Ompronce <88358700+Ompronce@users.noreply.github.com> Date: Sat, 18 Sep 2021 22:01:13 -0400 Subject: [PATCH] Add files via upload --- src/sound/snd_audiopci.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/sound/snd_audiopci.c b/src/sound/snd_audiopci.c index a24978750..f9ecb7d1f 100644 --- a/src/sound/snd_audiopci.c +++ b/src/sound/snd_audiopci.c @@ -802,7 +802,6 @@ es1371_outb(uint16_t port, uint8_t val, void *p) Addressable as byte, word, longword */ case 0x18: dev->legacy_ctrl |= LEGACY_INT; - // nmi = 0; break; case 0x1a: old_legacy_ctrl = dev->legacy_ctrl; @@ -879,7 +878,6 @@ es1371_outw(uint16_t port, uint16_t val, void *p) Addressable as byte, word, longword */ case 0x18: dev->legacy_ctrl |= LEGACY_INT; - // nmi = 0; break; case 0x1a: old_legacy_ctrl = dev->legacy_ctrl; @@ -1032,7 +1030,6 @@ es1371_outl(uint16_t port, uint32_t val, void *p) old_legacy_ctrl = dev->legacy_ctrl; dev->legacy_ctrl = (dev->legacy_ctrl & 0x0000ffff) | (val & 0xffff0000); dev->legacy_ctrl |= LEGACY_INT; - // nmi = 0; es1371_update_irqs(dev); update_legacy(dev, old_legacy_ctrl); break; @@ -1239,17 +1236,17 @@ update_legacy(es1371_t *dev, uint32_t old_legacy_ctrl) if (old_legacy_ctrl & LEGACY_CAPTURE_CODEC) { switch ((old_legacy_ctrl >> LEGACY_CODEC_ADDR_SHIFT) & 3) { case 0: - io_removehandler(0x5300, 0x0080, + io_removehandler(0x0530, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec, NULL, NULL, dev); break; case 2: - io_removehandler(0xe800, 0x0080, + io_removehandler(0x0e80, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec,NULL,NULL, dev); break; case 3: - io_removehandler(0xf400, 0x0080, + io_removehandler(0x0f40, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec, NULL, NULL, dev); break; @@ -1326,17 +1323,17 @@ update_legacy(es1371_t *dev, uint32_t old_legacy_ctrl) if (dev->legacy_ctrl & LEGACY_CAPTURE_CODEC) { switch ((dev->legacy_ctrl >> LEGACY_CODEC_ADDR_SHIFT) & 3) { case 0: - io_sethandler(0x5300, 0x0080, + io_sethandler(0x0530, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec, NULL, NULL, dev); break; case 2: - io_sethandler(0xe800, 0x0080, + io_sethandler(0x0e80, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec, NULL, NULL, dev); break; case 3: - io_sethandler(0xf400, 0x0080, + io_sethandler(0x0f40, 0x0008, capture_read_codec, NULL, NULL, capture_write_codec, NULL, NULL, dev); break;