From 0d9acba8fddbf970c7353083e6a60b47017ce3e4 Mon Sep 17 00:00:00 2001 From: Paul Brook Date: Tue, 12 May 2009 12:02:38 +0100 Subject: Make AUD_init failure fatal Failure to initialize the audio subsystem is not handled consistently. Where it is handled it has guest visible effects, which is wrong. We already have a "nosound" audio driver as a last resort, so trying to proceed without an audio backend seems pointless. Also protect against multiple calls to AUD_init so that this can be pushed down into individual devices. Signed-off-by: Paul Brook --- hw/spitz.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'hw/spitz.c') diff --git a/hw/spitz.c b/hw/spitz.c index 3c155a4b35..e53a81da6d 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -744,8 +744,6 @@ static void spitz_i2c_setup(PXA2xxState *cpu) i2c_slave *wm; audio = AUD_init(); - if (!audio) - return; /* Attach a WM8750 to the bus */ wm = wm8750_init(bus, audio); -- cgit v1.2.3-55-g7522