diff options
Diffstat (limited to 'hw/cs4231a.c')
-rw-r--r-- | hw/cs4231a.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; |