Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: [email protected] Reviewed-by: Gerd Hoffmann <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Message-id: [email protected]
- Loading branch information