Fix small oversight on codec shadow write

This commit is contained in:
RichardG867
2021-07-11 17:12:48 -03:00
parent 2fa909ab91
commit 5bce2f09c7

View File

@@ -417,7 +417,7 @@ ac97_via_codec_write(uint16_t addr, uint8_t val, void *priv)
/* Bit 7 selects secondary codec. */
ac97_codec_t *codec = dev->codec[(modem << 1) | (addr >> 7)];
if (codec)
ac97_codec_write(codec, addr, val);
ac97_codec_write(codec, addr & 0x7f, val);
}