mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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
This commit is contained in:
parent
dea1fb887c
commit
525d654d7a
4 changed files with 4 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue