[vfio-users] Why does the audio from VM crackle?

Arjen arjenvanweelden at gmail.com
Thu Jun 9 11:31:57 UTC 2016


For me, letting the host load the driver (snd_hda_intel) before passing 
through the onboard audio to the VM fixed the crackling and buffer 
underruns. I never found out why this worked...
Passing through the physical USB 2.0 controller worked wonders for my 
USB TV tuner compared to forwarding just the USB port.
Hopefully either of those approaches can help you too.

kind regards, Arjen

On 06/09/2016 10:21 AM, Stein van Broekhoven wrote:
> I have a on motherboard audio card that I can pass through to a vm
> without issues.
> If I do the same with a usb audio device I also get the crackling on
> playback.
> So I suspect it is due to the latency in the emulated usb.
>
> Possible Solutions:
>  - Pass through a pci audio device. (on motherboard / extra audio card)
>  - Pass through entire USB controller on pci level (read about this
> didn't yet try it myself)
>
>
>
> ------------------------------------------------------------------------
> *Van: *"rndbit" <rndbit at sysret.net>
> *Aan: *vfio-users at redhat.com
> *Verzonden: *Donderdag 9 juni 2016 09:17:29
> *Onderwerp: *Re: [vfio-users] Why does the audio from VM crackle?
>
> Check your DPC latency, it is one of causes for cracking sound. This is
> exact reason i stopped using vga passthrough for gaming..
>
> On 2016.06.09 10:07, Abdulla Bubshait wrote:
>
>     I am not the only one who has this issue, but if you emulate an
>     audio card you end up with occasional crackling audio output, which
>     is sometimes associated with drops in FPS.
>
>     I know there are ways to pass audio devices to the VM directly, but
>     in many setups it would be preferable to pass the audio to the host.
>
>     Does anyone know the reason the audio has distortion or crackling,
>     and are there any known solutions to the problem?
>
>
>     _______________________________________________
>     vfio-users mailing list
>     vfio-users at redhat.com
>     https://www.redhat.com/mailman/listinfo/vfio-users
>
>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>
>
> _______________________________________________
> vfio-users mailing list
> vfio-users at redhat.com
> https://www.redhat.com/mailman/listinfo/vfio-users
>




More information about the vfio-users mailing list