spa: add property to force VM

Also add PIPEWIRE_VM to force a VM type.
This commit is contained in:
Wim Taymans 2021-04-16 16:41:20 +02:00
parent ce828af9e1
commit f27ad659f8
3 changed files with 5 additions and 0 deletions

View file

@ -538,6 +538,8 @@ void pw_init(int *argc, char **argv[])
n_items = 0;
if ((str = getenv("PIPEWIRE_CPU")))
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_CPU_FORCE, str);
if ((str = getenv("PIPEWIRE_VM")))
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_CPU_VM_TYPE, str);
info = SPA_DICT_INIT(items, n_items);
add_interface(support, SPA_NAME_SUPPORT_CPU, SPA_TYPE_INTERFACE_CPU, &info);