Patchwork [v2,6/6] prep: initialize pc speaker

login
register
mail settings
Submitter Hervé Poussineau
Date April 14, 2012, 8:51 p.m.
Message ID <1334436694-3469-7-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/152557/
State New
Headers show

Comments

Hervé Poussineau - April 14, 2012, 8:51 p.m.
Speaker init has been added in 506b7ddf889312659b36c667f7ae17bc9e909418,
but audio subsystem init was missing.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/ppc_prep.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Andreas Färber - April 28, 2012, 7:29 p.m.
Am 14.04.2012 22:51, schrieb Hervé Poussineau:
> Speaker init has been added in 506b7ddf889312659b36c667f7ae17bc9e909418,
> but audio subsystem init was missing.
> 
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>

Thanks, applied to prep-up:
http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/prep-up

Andreas

Patch

diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c
index 6a0d81d..0dbe2ba 100644
--- a/hw/ppc_prep.c
+++ b/hw/ppc_prep.c
@@ -37,6 +37,7 @@ 
 #include "loader.h"
 #include "mc146818rtc.h"
 #include "blockdev.h"
+#include "arch_init.h"
 #include "exec-memory.h"
 
 //#define HARD_DEBUG_PPC_IO
@@ -654,6 +655,9 @@  static void ppc_prep_init (ram_addr_t ram_size,
 
     /* Special port to get debug messages from Open-Firmware */
     register_ioport_write(0x0F00, 4, 1, &PPC_debug_write, NULL);
+
+    /* Initialize audio subsystem */
+    audio_init(isa_bus, pci_bus);
 }
 
 static QEMUMachine prep_machine = {