From b14e20b3fbed835c6fb34f435f65f264ae297612 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 13 Jul 2021 21:15:25 -0300 Subject: [PATCH] Fix AC97 codec ID byte ordering --- src/sound/snd_ac97_codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sound/snd_ac97_codec.c b/src/sound/snd_ac97_codec.c index f97b1c551..0074a9601 100644 --- a/src/sound/snd_ac97_codec.c +++ b/src/sound/snd_ac97_codec.c @@ -90,7 +90,7 @@ ac97_codec_write(ac97_codec_t *dev, uint8_t reg, uint8_t val) //case 0x2a ... 0x59: /* Linux tests for audio capability by writing to 38-39 */ case 0x5a ... 0x5f: /* Vendor Reserved */ //case 0x60 ... 0x6f: - case 0x70 ... 0x7b: /* Vendor Reserved */ + case 0x70 ... 0x7f: /* Vendor Reserved */ /* Read-only registers. */ return; @@ -175,8 +175,8 @@ ac97_codec_reset(void *priv) /* Set Vendor ID. */ dev->regs[0x7c] = dev->id >> 16; dev->regs[0x7d] = dev->id >> 24; - dev->regs[0x7e] = dev->id >> 8; - dev->regs[0x7f] = dev->id; + dev->regs[0x7e] = dev->id; + dev->regs[0x7f] = dev->id >> 8; }