switch to virtio-audio
This commit is contained in:
parent
30e7e06f59
commit
de38ce47ee
@ -19,9 +19,11 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def graphics_options(vm: VmConfig) -> list[str]:
|
def graphics_options(vm: VmConfig) -> list[str]:
|
||||||
|
common = ["-audio", "driver=pa,model=virtio"]
|
||||||
if vm.wayland:
|
if vm.wayland:
|
||||||
# fmt: off
|
# fmt: off
|
||||||
return [
|
return [
|
||||||
|
*common,
|
||||||
"-nographic",
|
"-nographic",
|
||||||
"-vga", "none",
|
"-vga", "none",
|
||||||
"-device", "virtio-gpu-rutabaga,gfxstream-vulkan=on,cross-domain=on,hostmem=4G,wsi=headless",
|
"-device", "virtio-gpu-rutabaga,gfxstream-vulkan=on,cross-domain=on,hostmem=4G,wsi=headless",
|
||||||
@ -30,9 +32,7 @@ def graphics_options(vm: VmConfig) -> list[str]:
|
|||||||
else:
|
else:
|
||||||
# fmt: off
|
# fmt: off
|
||||||
return [
|
return [
|
||||||
"-audiodev", "spice,id=audio0",
|
*common,
|
||||||
"-device", "intel-hda",
|
|
||||||
"-device", "hda-duplex,audiodev=audio0",
|
|
||||||
"-vga", "none",
|
"-vga", "none",
|
||||||
"-display", "gtk,gl=on",
|
"-display", "gtk,gl=on",
|
||||||
"-device", "virtio-gpu-gl",
|
"-device", "virtio-gpu-gl",
|
||||||
|
Loading…
Reference in New Issue
Block a user