qemu-e2k/audio
Peter Maydell b28fb27b5e audio: Don't free hw resources until after hw backend is stopped
When stopping an audio voice, call the audio backend's fini
method before calling audio_pcm_hw_free_resources_ rather than
afterwards. This allows backends which use helper threads (like
pulseaudio) to terminate those threads before the conv_buf or
mix_buf are freed and avoids race conditions where the helper
may access a NULL pointer or freed memory.

Cc: qemu-stable@nongnu.org
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1418406239-9838-1-git-send-email-peter.maydell@linaro.org
2014-12-22 23:12:25 +00:00
..
alsaaudio.c
audio_int.h
audio_pt_int.c
audio_pt_int.h
audio_template.h audio: Don't free hw resources until after hw backend is stopped 2014-12-22 23:12:25 +00:00
audio_win_int.c
audio_win_int.h
audio.c
audio.h
coreaudio.c
dsound_template.h
dsoundaudio.c
esdaudio.c
fmodaudio.c
Makefile.objs
mixeng_template.h
mixeng.c
mixeng.h
noaudio.c
ossaudio.c
paaudio.c
rate_template.h
sdlaudio.c
spiceaudio.c
wavaudio.c
wavcapture.c
winwaveaudio.c