]> git.proxmox.com Git - qemu.git/commitdiff
hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 May 2012 07:24:38 +0000 (09:24 +0200)
committermalc <av1474@comtv.ru>
Mon, 7 May 2012 12:31:40 +0000 (16:31 +0400)
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>
Signed-off-by: malc <av1474@comtv.ru>
hw/ac97.c

index b0092574344ad321b36082fece99add43c755528..e791b9d3e6e0b095111b42ad1c1ba22aee97baa9 100644 (file)
--- a/hw/ac97.c
+++ b/hw/ac97.c
@@ -603,7 +603,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;