audio: remove unused parameter isa_pic
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
d3c68e4f45
commit
4a0f031d5b
10
arch_init.c
10
arch_init.c
@ -473,7 +473,7 @@ struct soundhw {
|
|||||||
int enabled;
|
int enabled;
|
||||||
int isa;
|
int isa;
|
||||||
union {
|
union {
|
||||||
int (*init_isa) (ISABus *bus, qemu_irq *pic);
|
int (*init_isa) (ISABus *bus);
|
||||||
int (*init_pci) (PCIBus *bus);
|
int (*init_pci) (PCIBus *bus);
|
||||||
} init;
|
} init;
|
||||||
};
|
};
|
||||||
@ -628,15 +628,15 @@ void select_soundhw(const char *optarg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void audio_init(ISABus *isa_bus, qemu_irq *isa_pic, PCIBus *pci_bus)
|
void audio_init(ISABus *isa_bus, PCIBus *pci_bus)
|
||||||
{
|
{
|
||||||
struct soundhw *c;
|
struct soundhw *c;
|
||||||
|
|
||||||
for (c = soundhw; c->name; ++c) {
|
for (c = soundhw; c->name; ++c) {
|
||||||
if (c->enabled) {
|
if (c->enabled) {
|
||||||
if (c->isa) {
|
if (c->isa) {
|
||||||
if (isa_pic) {
|
if (isa_bus) {
|
||||||
c->init.init_isa(isa_bus, isa_pic);
|
c->init.init_isa(isa_bus);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (pci_bus) {
|
if (pci_bus) {
|
||||||
@ -650,7 +650,7 @@ void audio_init(ISABus *isa_bus, qemu_irq *isa_pic, PCIBus *pci_bus)
|
|||||||
void select_soundhw(const char *optarg)
|
void select_soundhw(const char *optarg)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void audio_init(ISABus *isa_bus, qemu_irq *isa_pic, PCIBus *pci_bus)
|
void audio_init(ISABus *isa_bus, PCIBus *pci_bus)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -27,7 +27,7 @@ void do_acpitable_option(const char *optarg);
|
|||||||
void do_smbios_option(const char *optarg);
|
void do_smbios_option(const char *optarg);
|
||||||
void cpudef_init(void);
|
void cpudef_init(void);
|
||||||
int audio_available(void);
|
int audio_available(void);
|
||||||
void audio_init(ISABus *isa_bus, qemu_irq *isa_pic, PCIBus *pci_bus);
|
void audio_init(ISABus *isa_bus, PCIBus *pci_bus);
|
||||||
int tcg_available(void);
|
int tcg_available(void);
|
||||||
int kvm_available(void);
|
int kvm_available(void);
|
||||||
int xen_available(void);
|
int xen_available(void);
|
||||||
|
@ -275,7 +275,7 @@ static void Adlib_fini (AdlibState *s)
|
|||||||
AUD_remove_card (&s->card);
|
AUD_remove_card (&s->card);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Adlib_init (ISABus *bus, qemu_irq *pic)
|
int Adlib_init (ISABus *bus)
|
||||||
{
|
{
|
||||||
AdlibState *s = &glob_adlib;
|
AdlibState *s = &glob_adlib;
|
||||||
struct audsettings as;
|
struct audsettings as;
|
||||||
|
@ -2,19 +2,19 @@
|
|||||||
int es1370_init(PCIBus *bus);
|
int es1370_init(PCIBus *bus);
|
||||||
|
|
||||||
/* sb16.c */
|
/* sb16.c */
|
||||||
int SB16_init(ISABus *bus, qemu_irq *pic);
|
int SB16_init(ISABus *bus);
|
||||||
|
|
||||||
/* adlib.c */
|
/* adlib.c */
|
||||||
int Adlib_init(ISABus *bus, qemu_irq *pic);
|
int Adlib_init(ISABus *bus);
|
||||||
|
|
||||||
/* gus.c */
|
/* gus.c */
|
||||||
int GUS_init(ISABus *bus, qemu_irq *pic);
|
int GUS_init(ISABus *bus);
|
||||||
|
|
||||||
/* ac97.c */
|
/* ac97.c */
|
||||||
int ac97_init(PCIBus *bus);
|
int ac97_init(PCIBus *bus);
|
||||||
|
|
||||||
/* cs4231a.c */
|
/* cs4231a.c */
|
||||||
int cs4231a_init(ISABus *bus, qemu_irq *pic);
|
int cs4231a_init(ISABus *bus);
|
||||||
|
|
||||||
/* intel-hda.c + hda-audio.c */
|
/* intel-hda.c + hda-audio.c */
|
||||||
int intel_hda_and_codec_init(PCIBus *bus);
|
int intel_hda_and_codec_init(PCIBus *bus);
|
||||||
|
@ -659,7 +659,7 @@ static int cs4231a_initfn (ISADevice *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int cs4231a_init (ISABus *bus, qemu_irq *pic)
|
int cs4231a_init (ISABus *bus)
|
||||||
{
|
{
|
||||||
isa_create_simple (bus, "cs4231a");
|
isa_create_simple (bus, "cs4231a");
|
||||||
return 0;
|
return 0;
|
||||||
|
2
hw/gus.c
2
hw/gus.c
@ -293,7 +293,7 @@ static int gus_initfn (ISADevice *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int GUS_init (ISABus *bus, qemu_irq *pic)
|
int GUS_init (ISABus *bus)
|
||||||
{
|
{
|
||||||
isa_create_simple (bus, "gus");
|
isa_create_simple (bus, "gus");
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -281,7 +281,7 @@ static void mips_jazz_init(MemoryRegion *address_space,
|
|||||||
|
|
||||||
/* Sound card */
|
/* Sound card */
|
||||||
/* FIXME: missing Jazz sound at 0x8000c000, rc4030[2] */
|
/* FIXME: missing Jazz sound at 0x8000c000, rc4030[2] */
|
||||||
audio_init(isa_bus, i8259, NULL);
|
audio_init(isa_bus, NULL);
|
||||||
|
|
||||||
/* NVRAM */
|
/* NVRAM */
|
||||||
dev = qdev_create(NULL, "ds1225y");
|
dev = qdev_create(NULL, "ds1225y");
|
||||||
|
@ -973,7 +973,7 @@ void mips_malta_init (ram_addr_t ram_size,
|
|||||||
fdctrl_init_isa(isa_bus, fd);
|
fdctrl_init_isa(isa_bus, fd);
|
||||||
|
|
||||||
/* Sound card */
|
/* Sound card */
|
||||||
audio_init(isa_bus, NULL, pci_bus);
|
audio_init(isa_bus, pci_bus);
|
||||||
|
|
||||||
/* Network card */
|
/* Network card */
|
||||||
network_init();
|
network_init();
|
||||||
|
2
hw/pc.h
2
hw/pc.h
@ -176,7 +176,7 @@ extern int no_hpet;
|
|||||||
|
|
||||||
/* pcspk.c */
|
/* pcspk.c */
|
||||||
void pcspk_init(ISADevice *pit);
|
void pcspk_init(ISADevice *pit);
|
||||||
int pcspk_audio_init(ISABus *bus, qemu_irq *pic);
|
int pcspk_audio_init(ISABus *bus);
|
||||||
|
|
||||||
/* piix_pci.c */
|
/* piix_pci.c */
|
||||||
struct PCII440FXState;
|
struct PCII440FXState;
|
||||||
|
@ -222,7 +222,7 @@ static void pc_init1(MemoryRegion *system_memory,
|
|||||||
qdev_property_add_child(qdev_resolve_path("/i440fx/piix3", NULL),
|
qdev_property_add_child(qdev_resolve_path("/i440fx/piix3", NULL),
|
||||||
"rtc", (DeviceState *)rtc_state, NULL);
|
"rtc", (DeviceState *)rtc_state, NULL);
|
||||||
|
|
||||||
audio_init(isa_bus, gsi, pci_enabled ? pci_bus : NULL);
|
audio_init(isa_bus, pci_enabled ? pci_bus : NULL);
|
||||||
|
|
||||||
pc_cmos_init(below_4g_mem_size, above_4g_mem_size, boot_device,
|
pc_cmos_init(below_4g_mem_size, above_4g_mem_size, boot_device,
|
||||||
floppy, idebus[0], idebus[1], rtc_state);
|
floppy, idebus[0], idebus[1], rtc_state);
|
||||||
|
@ -96,7 +96,7 @@ static void pcspk_callback(void *opaque, int free)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int pcspk_audio_init(ISABus *bus, qemu_irq *pic)
|
int pcspk_audio_init(ISABus *bus)
|
||||||
{
|
{
|
||||||
PCSpkState *s = &pcspk_state;
|
PCSpkState *s = &pcspk_state;
|
||||||
struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};
|
struct audsettings as = {PCSPK_SAMPLE_RATE, 1, AUD_FMT_U8, 0};
|
||||||
|
Loading…
Reference in New Issue
Block a user