aboutsummaryrefslogtreecommitdiff
path: root/hw/mips
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-02 15:25:20 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-06 17:01:11 +0200
commit525d654d7a113e24e5c4efc21e6f2f8c952d21d9 (patch)
tree7a15f061600705dc9b948a72d44a00752dabf73b /hw/mips
parentdea1fb887c37f163891fb18313403a07752948d8 (diff)
downloadqemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.zip
qemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.tar.gz
qemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.tar.bz2
audio: rework pcspk_init()
Instead of creating and returning the pc speaker accept it as argument. That allows to rework the initialization workflow in followup patches. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200702132525.6849-16-kraxel@redhat.com
Diffstat (limited to 'hw/mips')
-rw-r--r--hw/mips/jazz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mips/jazz.c b/hw/mips/jazz.c
index c3b0da6..0002bff 100644
--- a/hw/mips/jazz.c
+++ b/hw/mips/jazz.c
@@ -250,7 +250,7 @@ static void mips_jazz_init(MachineState *machine,
isa_bus_irqs(isa_bus, i8259);
i8257_dma_init(isa_bus, 0);
pit = i8254_pit_init(isa_bus, 0x40, 0, NULL);
- pcspk_init(isa_bus, pit);
+ pcspk_init(isa_new(TYPE_PC_SPEAKER), isa_bus, pit);
/* Video card */
switch (jazz_model) {