mirror of https://github.com/xemu-project/xemu.git
parent
26d64a85a3
commit
3a8bae3e05
21
hw/pc.c
21
hw/pc.c
|
@ -778,21 +778,14 @@ static int parallel_irq[MAX_PARALLEL_PORTS] = { 7, 7, 7 };
|
||||||
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
|
static void audio_init (PCIBus *pci_bus, qemu_irq *pic)
|
||||||
{
|
{
|
||||||
struct soundhw *c;
|
struct soundhw *c;
|
||||||
int audio_enabled = 0;
|
|
||||||
|
|
||||||
for (c = soundhw; !audio_enabled && c->name; ++c) {
|
for (c = soundhw; c->name; ++c) {
|
||||||
audio_enabled = c->enabled;
|
if (c->enabled) {
|
||||||
}
|
if (c->isa) {
|
||||||
|
c->init.init_isa(pic);
|
||||||
if (audio_enabled) {
|
} else {
|
||||||
for (c = soundhw; c->name; ++c) {
|
if (pci_bus) {
|
||||||
if (c->enabled) {
|
c->init.init_pci(pci_bus);
|
||||||
if (c->isa) {
|
|
||||||
c->init.init_isa(pic);
|
|
||||||
} else {
|
|
||||||
if (pci_bus) {
|
|
||||||
c->init.init_pci(pci_bus);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue