qemu-e2k/audio
Markus Armbruster 7e274652e4 audio: Clean up inappropriate and unreachable use of hw_error()
audio_init() should not use hw_error(), because dumping CPU registers
is unhelpful there, and aborting is wrong, because it can be called
called from an audio device's realize() method.

The two uses of hw_error() come from commit 0d9acba:

* When qemu_new_timer() fails.  It couldn't fail back then, and it
  can't fail now.  Drop the unreachable error handling.

* When no_audio_driver can't be initialized.  It couldn't fail back
  then, and it can't fail now.  Replace the error handling by an
  assertion.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
2016-01-13 15:16:16 +01:00
..
alsaaudio.c alsaaudio: use trace events instead of verbose 2015-06-15 12:42:48 +02:00
audio_int.h audio: expose drv_opaque to init_out and init_in 2015-06-15 12:42:47 +02:00
audio_pt_int.c
audio_pt_int.h
audio_template.h audio: remove plive 2015-06-15 12:42:48 +02:00
audio_win_int.c
audio_win_int.h
audio.c audio: Clean up inappropriate and unreachable use of hw_error() 2016-01-13 15:16:16 +01:00
audio.h
coreaudio.c audio/coreaudio.c: Avoid deprecated AudioDeviceAdd/RemoveIOProc APIs 2015-12-15 11:08:12 +01:00
dsound_template.h dsoundaudio: remove *_retries kludges 2015-06-15 12:42:48 +02:00
dsoundaudio.c dsoundaudio: remove primary buffer 2015-06-15 12:42:48 +02:00
Makefile.objs audio: remove winwave audio driver 2015-06-15 10:50:31 +02:00
mixeng_template.h audio/mixeng_template.h: fix inline declaration 2013-10-26 13:09:34 +04:00
mixeng.c audio: remove CONFIG_MIXEMU configure option 2013-09-24 10:29:34 +02:00
mixeng.h
noaudio.c audio: expose drv_opaque to init_out and init_in 2015-06-15 12:42:47 +02:00
ossaudio.c ossaudio: fix memory leak 2015-07-08 13:11:01 +02:00
paaudio.c paaudio: fix possible resource leak 2015-06-15 12:42:48 +02:00
rate_template.h
sdlaudio.c sdlaudio: do not allow multiple instances 2015-06-15 12:42:48 +02:00
spiceaudio.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00
wavaudio.c wavaudio: do not use global variables 2015-06-15 12:42:47 +02:00
wavcapture.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00