diff options
author | Juan Quintela <quintela@redhat.com> | 2009-12-02 11:49:40 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:26 -0600 |
commit | 7626f39fd5041e4b8fe7739132efce9916399704 (patch) | |
tree | c84dc5b5b06360ab1af40ce48d3d1eee1dfe7e13 /hw/ac97.c | |
parent | 0148d1778b28b8c7f6205ecf20e3619aac1ccf8c (diff) |
ac97: recalculate active after loadvm
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ac97.c')
-rw-r--r-- | hw/ac97.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |