Backport virtio sound driver
Fixed
Description
Environment
None
Activity
Show:
Walt Miner August 17, 2021 at 9:48 PM
Walt Miner
August 17, 2021 at 9:48 PM
Close for LL 12.0.0
George Kiagiadakis April 29, 2021 at 12:28 PM
George Kiagiadakis
April 29, 2021 at 12:28 PM
Older versions of PipeWire struggle with virtual sound cards. Newer versions (what you will find in AGL master) can cope, but they need configuration tweaking. Specifically, you will need to increase the period-size and headroom properties of the alsa sink, as described in https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/469
Vasyl Vavrychuk April 29, 2021 at 10:18 AM
Vasyl Vavrychuk
April 29, 2021 at 10:18 AM
@George Kiagiadakis in scope of this ticket I am adding to AGL driver for virtio-snd virtual sound card.
Playback via this driver works well using aplay but it fails when using AGL mediaplayer UI.
Here are errors when driver is used on AGL Koi
sh-5.0# journalctl -u pipewire@1001.service -f
-- Logs begin at Mon 2020-06-29 03:06:42 UTC. --
Apr 29 08:43:57 virtio-aarch64 systemd[1]: Started Multimedia Service for user 1001.
Apr 29 08:43:58 virtio-aarch64 pipewire[556]: [W][000000036.349378][connection.c:150 connection_ensure_size()] connection 0x55747df820: resize buffer to 29208 4112 65536
Apr 29 08:43:58 virtio-aarch64 pipewire[558]: [W][000000036.359200][connection.c:150 connection_ensure_size()] connection 0x559483db80: resize buffer to 32768 2552 65536
Apr 29 08:46:09 virtio-aarch64 pipewire[556]: [W][000000167.328923][alsa-pcm.c:469 spa_alsa_set_format()] alsa-pcm hardware does double buffering, changing period_size to 512
Apr 29 08:46:09 virtio-aarch64 pipewire[556]: [E][000000167.364205][alsa-pcm.c:572 alsa_recover()] alsa-pcm 0x55747fcdb8: xrun of 558 usec 26 0.000000
Apr 29 08:46:09 virtio-aarch64 pipewire[556]: ALSA lib ../../../alsa-lib-1.2.1.2/src/pcm/pcm.c:8529:(snd_pcm_recover) cannot recovery from underrun, prepare failed: Invalid argument
Apr 29 08:46:09 virtio-aarch64 pipewire[556]: [E][000000167.369599][alsa-pcm.c:588 alsa_recover()] alsa-pcm 0x55747fcdb8: snd_pcm_recover error: Invalid argument
Maybe you have some idea?
I plan to sync my AGL to latest master and retest with it too.
Details
Details
Assignee
Vasyl Vavrychuk
Vasyl VavrychukReporter
Vasyl Vavrychuk
Vasyl VavrychukFix versions
Labels
Priority
Created April 20, 2021 at 7:54 PM
Updated August 17, 2021 at 9:48 PM
Resolved May 5, 2021 at 8:17 PM
virtio-snd is a driver for virtual sound device specified in https://github.com/oasis-tcs/virtio-spec/blob/master/virtio-sound.tex