aboutsummaryrefslogtreecommitdiff
path: root/hw/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/pc.c')
-rw-r--r--hw/pc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/hw/pc.c b/hw/pc.c
index fe9d644..c81a7a8 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -788,17 +788,13 @@ static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
}
if (audio_enabled) {
- AudioState *s;
-
- s = AUD_init ();
for (c = soundhw; c->name; ++c) {
if (c->enabled) {
if (c->isa) {
- c->init.init_isa (s, pic);
- }
- else {
+ c->init.init_isa(pic);
+ } else {
if (pci_bus) {
- c->init.init_pci (pci_bus, s);
+ c->init.init_pci(pci_bus);
}
}
}