From 22d83b140e7b2dda555b7e3035050454f8764b7f Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 12 May 2009 12:33:04 +0100 Subject: Push AUD_init down to devices Now we can safely call AUD_init multiple times we can push it down to individual audio devices, rather than having to pass it from the board init. Signed-off-by: Paul Brook --- hw/cs4231a.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'hw/cs4231a.c') diff --git a/hw/cs4231a.c b/hw/cs4231a.c index 25ad40990d..4212ed1b13 100644 --- a/hw/cs4231a.c +++ b/hw/cs4231a.c @@ -636,16 +636,12 @@ static int cs_load(QEMUFile *f, void *opaque, int version_id) return 0; } -int cs4231a_init (AudioState *audio, qemu_irq *pic) +int cs4231a_init (qemu_irq *pic) { + AudioState *audio = AUD_init(); int i; CSState *s; - if (!audio) { - lerr ("No audio state\n"); - return -1; - } - s = qemu_mallocz (sizeof (*s)); s->pic = pic; -- cgit v1.2.3