1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
Microphone input dies in guest when switching evdev input
justin@justin-3900x:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
justin@justin-3900x:~$ apt list --installed | egrep '*qemu*|*kvm*'
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
ipxe-qemu-256k-compat-efi-roms/focal,focal,now 1.0.0+git-20150424.a25a16d-0ubuntu4 all [installed,automatic]
ipxe-qemu/focal,focal,now 1.0.0+git-20190109.133f4c4-0ubuntu3 all [installed,automatic]
libvirt-daemon-driver-qemu/focal,now 6.0.0-0ubuntu8 amd64 [installed,automatic]
qemu-block-extra/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed,automatic]
qemu-kvm/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed]
qemu-system-common/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed,automatic]
qemu-system-data/focal-updates,focal-updates,focal-security,focal-security,now 1:4.2-3ubuntu6.1 all [installed,automatic]
qemu-system-gui/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed,automatic]
qemu-system-x86/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed]
qemu-utils/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed,automatic]
qemu/focal-updates,focal-security,now 1:4.2-3ubuntu6.1 amd64 [installed]
justin@justin-3900x:~$
This did not happen in Eoan (qemu 4.0.0). I was able to switch in/out of a VM with my audio coming through fine. I enabled Eoan in my sources.list, downgraded all my qemu packages, and the issue was resolved.
This happens on the latest Windows 10 guest when a sound device is listening for the microphone.
/var/log/libvirt/qemu/<vmname>.log spews this error out when I switch with evdev (which is just the keyboard and mouse, the audio is passed through I assume spice):
audio: live=228193 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=228675 sw->hw->conv_buf->size=1920
A bug was just triggered in audio_pcm_hw_get_live_in
Context:
audio: live=228675 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=229156 sw->hw->conv_buf->size=1920
A bug was just triggered in audio_pcm_hw_get_live_in
Context:
audio: live=229156 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=229638 sw->hw->conv_buf->size=1920
A bug was just triggered in audio_pcm_hw_get_live_in
Context:
audio: live=229638 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=230119 sw->hw->conv_buf->size=1920
A bug was just triggered in audio_pcm_hw_get_live_in
Context:
audio: live=230119 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=230600 sw->hw->conv_buf->size=1920
A bug was just triggered in audio_pcm_hw_get_live_in
Context:
audio: live=230600 hw->conv_buf->size=1920
A bug was just triggered in audio_get_avail
Context:
audio: live=231081 sw->hw->conv_buf->size=1920
|