mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
alsa-monitor: make no-auto-port/profile instead
auto-port and auto-profile are enabled by default so make a no-auto version to disable.
This commit is contained in:
parent
a8937413e6
commit
d7a2b569e4
1 changed files with 4 additions and 4 deletions
|
|
@ -833,15 +833,15 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id,
|
||||||
(name != NULL && strstr(str, name) != NULL))) {
|
(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");
|
||||||
}
|
}
|
||||||
if ((str = pw_properties_get(impl->session->props, "alsa.auto-port")) != NULL &&
|
if ((str = pw_properties_get(impl->session->props, "alsa.no-auto-port")) != NULL &&
|
||||||
(strcmp(str, "*") == 0 ||
|
(strcmp(str, "*") == 0 ||
|
||||||
(name != NULL && strstr(str, name) != NULL))) {
|
(name != NULL && strstr(str, name) != NULL))) {
|
||||||
pw_properties_set(device->props, "api.acp.auto-port", "true");
|
pw_properties_set(device->props, "api.acp.auto-port", "false");
|
||||||
}
|
}
|
||||||
if ((str = pw_properties_get(impl->session->props, "alsa.auto-profile")) != NULL &&
|
if ((str = pw_properties_get(impl->session->props, "alsa.no-auto-profile")) != NULL &&
|
||||||
(strcmp(str, "*") == 0 ||
|
(strcmp(str, "*") == 0 ||
|
||||||
(name != NULL && strstr(str, name) != NULL))) {
|
(name != NULL && strstr(str, name) != NULL))) {
|
||||||
pw_properties_set(device->props, "api.acp.auto-profile", "true");
|
pw_properties_set(device->props, "api.acp.auto-profile", "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (impl->conn &&
|
if (impl->conn &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue