summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-04-20 12:52:01 +0200
committerHans de Goede <hdegoede@redhat.com>2012-04-23 11:52:36 +0200
commit9c9c42d60c459e2a2a16655f691b1ba4e9846b42 (patch)
tree774a285efe6fc623070025c28117f03ea17dedcf
parentc706d3882fc62cad6fb8ba6d54b164859e92a898 (diff)
hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writesqemu-kvm-1.0.1-usbredir
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 <hdegoede@redhat.com>
-rw-r--r--hw/ac97.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ac97.c b/hw/ac97.c
index a245c97e7..557f7b06d 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;