]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Generate cmd line for pipewire audio backend
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 10 May 2023 10:58:44 +0000 (12:58 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 24 Nov 2023 16:49:20 +0000 (17:49 +0100)
commit10594bb31164766ee9ac8e553ac8030f4e376d9b
tree68b7a2eb50dfc6143a7f27cb1dfc48d307cf1c79
parentc472ce024b31402fc5db2ab83afef820954d1d3f
qemu: Generate cmd line for pipewire audio backend

This is mostly straightforward, except for a teensy-weensy
detail: usually, there's no system wide daemon running, no system
wide available socket that anybody could connect to. PipeWire
uses a per user daemon approach instead. But this in turn means,
that the socket location floats between various locations and is
derived from various environment variables (just like the actual
socket name) and thus we must pass the variables to QEMU.

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/560
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/audio-many-backends.x86_64-latest.args
tests/qemuxml2argvdata/audio-many-backends.xml
tests/qemuxml2argvdata/audio-pipewire-best.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/audio-pipewire-full.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvdata/audio-pipewire-minimal.x86_64-latest.args [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/audio-many-backends.x86_64-latest.xml