From 350f2eac9ac58f7702b4149f5ccae60a3dac5411 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 7 Mar 2022 10:53:18 -0300 Subject: [PATCH] CMI8x38: Set TDMA channels even after the fact --- src/sound/snd_cmi8x38.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sound/snd_cmi8x38.c b/src/sound/snd_cmi8x38.c index af3645c7e..d28ccf9de 100644 --- a/src/sound/snd_cmi8x38.c +++ b/src/sound/snd_cmi8x38.c @@ -436,9 +436,8 @@ cmi8x38_sb_mixer_write(uint16_t addr, uint8_t val, void *priv) /* Set TDMA channels if autodetection is enabled. */ if ((dev->io_regs[0x27] & 0x01) && (mixer->index == 0x81)) { - if (dev->tdma_8 == -1) - dev->tdma_8 = dev->sb->dsp.sb_8_dmanum; - if ((dev->sb->dsp.sb_type >= SB16) && (dev->tdma_16 == -1)) + dev->tdma_8 = dev->sb->dsp.sb_8_dmanum; + if (dev->sb->dsp.sb_type >= SB16) dev->tdma_16 = dev->sb->dsp.sb_16_dmanum; } } else {