diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2012-05-07 09:24:38 +0200 |
|---|---|---|
| committer | malc <av1474@comtv.ru> | 2012-05-07 16:31:40 +0400 |
| commit | 847c25d01cbe8e4fe457a7426f82daaaf3287aae (patch) | |
| tree | cd6911a51603bf22d28d93c1b6fcf87674a977d6 /hw/ac97.c | |
| parent | 7873bfb866c89f9e6eab28b14d0c2007b361150c (diff) | |
| download | focaccia-qemu-847c25d01cbe8e4fe457a7426f82daaaf3287aae.tar.gz focaccia-qemu-847c25d01cbe8e4fe457a7426f82daaaf3287aae.zip | |
hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes
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>
Diffstat (limited to 'hw/ac97.c')
| -rw-r--r-- | hw/ac97.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ac97.c b/hw/ac97.c index b009257434..e791b9d3e6 100644 --- 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; |