mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
alsa-monitor: add wildcard to disable hardware-mixers
This commit is contained in:
parent
7dd69651b8
commit
bec950440b
1 changed files with 3 additions and 2 deletions
|
|
@ -827,8 +827,9 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
|
|||
spa_list_append(&impl->device_list, &device->link);
|
||||
|
||||
if ((str = pw_properties_get(impl->session->props, "alsa.soft-mixer")) != NULL &&
|
||||
(name = pw_properties_get(device->props, "device.name")) != NULL &&
|
||||
strstr(str, name) != NULL) {
|
||||
(strcmp(str, "*") == 0 ||
|
||||
((name = pw_properties_get(device->props, "device.name")) != NULL &&
|
||||
strstr(str, name) != NULL))) {
|
||||
pw_properties_set(device->props, "api.alsa.soft-mixer", "true");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue