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
..
Makefile.objs audio: remove winwave audio driver 2015-06-15 10:50:31 +02:00
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 misc: move include files to include/qemu/ 2012-12-19 08:32:39 +01: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 Revert "audio/audio_pt_int: Clarify licensing" 2012-11-30 09:04:08 -06:00
audio_pt_int.h pthreads-based audio and miscellaneous audio clean-up (malc). 2008-01-14 04:24:29 +00:00
audio_template.h audio: remove plive 2015-06-15 12:42:48 +02:00
audio_win_int.c remove some double-includes 2013-05-18 16:35:12 +04:00
audio_win_int.h Windows Waveform Audio driver (no ADC support yet) 2009-10-10 01:18:24 +04:00
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
mixeng.c audio: remove CONFIG_MIXEMU configure option 2013-09-24 10:29:34 +02:00
mixeng.h audio: split sample conversion and volume mixing 2011-01-12 18:36:22 +03:00
mixeng_template.h audio/mixeng_template.h: fix inline declaration 2013-10-26 13:09:34 +04:00
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 Make audio violate POSIX less 2008-12-03 22:48:44 +00:00
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