[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] hw/ac97: Mask out the EAPD bit on Powerdown Ctr
From: |
Hans de Goede |
Subject: |
[Qemu-devel] [PATCH 5/5] hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes |
Date: |
Fri, 20 Apr 2012 13:04:02 +0200 |
The Linux AC97 driver tests this bit to decide wether or not to show
an External amplifier toggle control.
This patch was also tested with a Windows XP guest without any issues.
Signed-off-by: Hans de Goede <address@hidden>
---
hw/ac97.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ac97.c b/hw/ac97.c
index a245c97..557f7b0 100644
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -600,7 +600,7 @@ static void nam_writew (void *opaque, uint32_t addr,
uint32_t val)
mixer_reset (s);
break;
case AC97_Powerdown_Ctrl_Stat:
- val &= ~0xf;
+ val &= ~0x800f;
val |= mixer_load (s, index) & 0xf;
mixer_store (s, index, val);
break;
--
1.7.10