Hello!

After some more digging, I've tracked the problem to the audio input /
capture-side of the code. If I leave out the QEMU_ALSA_ADC_DEV="null" environment variable, the freeze does not happen, but Qemu spews
hundreds of errors, following lines repeat many times:

--
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
--

I also tried disabling the capture in the code, with this patch against
v4.2.0 git. (You also have to pass --disable-werror to configure.)

diff --git a/audio/audio.c b/audio/audio.c
index 56fae55047..82476a41de 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1352,8 +1352,10 @@ static void audio_run_capture (AudioState *s)
 void audio_run(AudioState *s, const char *msg)
 {
     audio_run_out(s);
+#if 0
     audio_run_in(s);
     audio_run_capture(s);
+#endif

 #ifdef DEBUG_POLL
     {

.. and with the patch it worked perfectly. No hangs/freeze. But obviously it is not a solution for other people as it disables audio capture/recording. Personally I don't need it, of course, which is why I have that QEMU_ALSA_ADC_DEV="null" set.

Hope this helps.

--
] ccr/TNSP ^ pWp  ::  c...@tnsp.org  ::  https://tnsp.org/~ccr/
] https://tnsp.org/hg/ -- https://www.openhub.net/accounts/ccr
] PGP key: 7BED 62DE 898D D1A4 FC4A  F392 B705 E735 307B AAE3

Reply via email to