From 5bce2f09c7c7e7f2d3b3a816e4db831e820bdced Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Sun, 11 Jul 2021 17:12:48 -0300 Subject: [PATCH] Fix small oversight on codec shadow write --- src/sound/snd_ac97_via.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/snd_ac97_via.c b/src/sound/snd_ac97_via.c index b8d92fe8a..85e18b71b 100644 --- a/src/sound/snd_ac97_via.c +++ b/src/sound/snd_ac97_via.c @@ -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); }