projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0148d17
)
ac97: recalculate active after loadvm
author
Juan Quintela
<quintela@redhat.com>
Wed, 2 Dec 2009 10:49:40 +0000
(11:49 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:26 +0000
(09:41 -0600)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ac97.c
patch
|
blob
|
history
diff --git
a/hw/ac97.c
b/hw/ac97.c
index 36aab8ae318b414ddf3331133a8bfc4147d2759d..e89a56a7fc81811f22c6ee85adb5ec4edec0cba2 100644
(file)
--- 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;