From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N37f1-0004Cy-PW for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N37ew-00047z-8f for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:55 -0400 Received: from [199.232.76.173] (port=45161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N37ew-00047v-1I for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25657) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N37ev-0004rZ-KA for qemu-devel@nongnu.org; Wed, 28 Oct 2009 08:29:49 -0400 From: Juan Quintela Date: Wed, 28 Oct 2009 13:29:29 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 08/10] ac97: recalculate active after loadvm List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Juan Quintela --- hw/ac97.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/ac97.c b/hw/ac97.c index e4ecbe9..b1a6395 100644 --- a/hw/ac97.c +++ b/hw/ac97.c @@ -1242,6 +1242,9 @@ static int ac97_load (QEMUFile *f, void *opaque, int version_id) V_ (AC97_Line_In_Volume_Mute, AUD_MIXER_LINE_IN); #undef V_ #endif + active[PI_INDEX] = !!(s->bm_regs[PI_INDEX].cr & CR_RPBM); + active[PO_INDEX] = !!(s->bm_regs[PO_INDEX].cr & CR_RPBM); + active[MC_INDEX] = !!(s->bm_regs[MC_INDEX].cr & CR_RPBM); reset_voices (s, active); s->bup_flag = 0; -- 1.6.2.5