diff options
author | Gerd Hoffmann | 2020-07-02 15:25:20 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2020-07-06 17:01:11 +0200 |
commit | 525d654d7a113e24e5c4efc21e6f2f8c952d21d9 (patch) | |
tree | 7a15f061600705dc9b948a72d44a00752dabf73b /hw/isa | |
parent | softmmu: initialize spice and audio earlier (diff) | |
download | qemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.tar.gz qemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.tar.xz qemu-525d654d7a113e24e5c4efc21e6f2f8c952d21d9.zip |
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/isa')
-rw-r--r-- | hw/isa/i82378.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/isa/i82378.c b/hw/isa/i82378.c index d9e6c7fa00..75a2da2881 100644 --- a/hw/isa/i82378.c +++ b/hw/isa/i82378.c @@ -102,7 +102,7 @@ static void i82378_realize(PCIDevice *pci, Error **errp) pit = i8254_pit_init(isabus, 0x40, 0, NULL); /* speaker */ - pcspk_init(isabus, pit); + pcspk_init(isa_new(TYPE_PC_SPEAKER), isabus, pit); /* 2 82C37 (dma) */ isa_create_simple(isabus, "i82374"); |