qemu/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
..
Makefile.objs
alsaaudio.c alsaaudio: use trace events instead of verbose 2015-06-15 12:42:48 +02:00
audio.c audio: Clean up inappropriate and unreachable use of hw_error() 2016-01-13 15:16:16 +01:00
audio.h
audio_int.h
audio_pt_int.c
audio_pt_int.h
audio_template.h
audio_win_int.c
audio_win_int.h
coreaudio.c audio/coreaudio.c: Avoid deprecated AudioDeviceAdd/RemoveIOProc APIs 2015-12-15 11:08:12 +01:00
dsound_template.h
dsoundaudio.c
mixeng.c
mixeng.h
mixeng_template.h
noaudio.c
ossaudio.c ossaudio: fix memory leak 2015-07-08 13:11:01 +02:00
paaudio.c
rate_template.h
sdlaudio.c
spiceaudio.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00
wavaudio.c
wavcapture.c qerror: Move #include out of qerror.h 2015-06-22 18:20:40 +02:00