alsa-monitor: add wildcard to disable hardware-mixers

This commit is contained in:
Wim Taymans 2020-12-04 17:29:16 +01:00
parent 7dd69651b8
commit bec950440b

View file

@ -827,8 +827,9 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
spa_list_append(&impl->device_list, &device->link); spa_list_append(&impl->device_list, &device->link);
if ((str = pw_properties_get(impl->session->props, "alsa.soft-mixer")) != NULL && if ((str = pw_properties_get(impl->session->props, "alsa.soft-mixer")) != NULL &&
(name = pw_properties_get(device->props, "device.name")) != NULL && (strcmp(str, "*") == 0 ||
strstr(str, name) != NULL) { ((name = pw_properties_get(device->props, "device.name")) != NULL &&
strstr(str, name) != NULL))) {
pw_properties_set(device->props, "api.alsa.soft-mixer", "true"); pw_properties_set(device->props, "api.alsa.soft-mixer", "true");
} }