From: Hans de Goede Date: Mon, 7 May 2012 07:24:38 +0000 (+0200) Subject: hw/ac97: Mask out the EAPD bit on Powerdown Ctrl/Stat writes X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1528^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a872b9178c0fe167fb66989562a56c4b9a3323d;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: malc --- diff --git a/hw/ac97.c b/hw/ac97.c index a245c97e79..557f7b06d0 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;