From 9f548d4a228eebf253c70b003796d76311fbe5ff Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Tue, 22 Nov 2022 00:53:44 +0600 Subject: [PATCH] OPTiMC: MC6 register is readable, despite what the datasheet says --- src/sound/snd_optimc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sound/snd_optimc.c b/src/sound/snd_optimc.c index 45010f087..30c1fe482 100644 --- a/src/sound/snd_optimc.c +++ b/src/sound/snd_optimc.c @@ -312,7 +312,8 @@ optimc_reg_read(uint16_t addr, void *p) case 3: /* MC4 */ case 4: /* MC5 */ temp = optimc->regs[addr - 0xF8D]; - case 5: /* MC6 (not readable) */ + case 5: /* MC6 */ + temp = optimc->regs[5]; break; case 2: /* MC3 */ temp = (optimc->regs[2] & ~0x3) | 0x2;