device: 0.196 graphic: 0.179 other: 0.146 semantic: 0.117 performance: 0.072 PID: 0.061 debug: 0.041 vnc: 0.036 socket: 0.035 permissions: 0.032 network: 0.027 boot: 0.024 files: 0.023 KVM: 0.012 debug: 0.410 performance: 0.241 other: 0.056 device: 0.050 files: 0.049 PID: 0.043 network: 0.025 boot: 0.022 socket: 0.021 semantic: 0.020 KVM: 0.019 graphic: 0.018 vnc: 0.017 permissions: 0.011 QEMU soundhw HDA huge microphone lag I use a Windows 7 x86_64 guest with VGA passthrough and -soundhw hda. The audio plays fine, but the microphone input is delayed by more than 20 seconds. -soundhw ac97 does not have this delay but it has choppy sound playback and input. System: Arch linux Kernel: 4.1.6-1-ARCH Audio hardware: 00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller Audio system: Pulseaudio 6.0 I seem to have this issue too. Using latest 15.04 Ubuntu, qemu and -soundhw all. I can reproduce this on Windows 10 (64bit) with hda device. Host kernel is 4.1.13-rt15-1-rt, also tried with non-realtime kernel with same results. Output works without delay, given it is choppy from time to time. Using the following env vars when starting QEMU: QEMU_AUDIO_DRV: pa QEMU_PA_SAMPLE: 32 # also tried with 128, 256, 512 and 1024. Same results for input, output got less choppy but with notable latency QEMU_PA_SERVER: unix:/run/user/1000/pulse/native # where user with uid is the user with Xorg and PA session, of course. I cannot figure out why - but, it would seem the input ringbuffer is not processed till the buffer is full. As an ugly workaround, i tried to set the buffering attributes to the input section - which reduced the delay to less then a second. (important part here is ba.maxlength) I've got this issue too on windows 10 with QEMU emulator version 3.1.0 (Debian 1:3.1+dfsg-4). It seems to only occur when the device isn't used in the windows host for a while by any application. If an application opens the capture device, the delay slowly gets smaller until it's only a 4th of a second. My uneducated guess is that the pa/hda driver isn't dequeuing the buffer unless the device is opened and being used by an application. This should not be happening, it should move the read pointer to the sample length even if the device isn't being used. Proofread your comments, guys... oops So it's a debian HOST and windows GUEST, not windows host. :-l Sorry for the double post. The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now. If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience. [Expired for QEMU because there has been no activity for 60 days.]