From d7a2b569e4461eeba1624cc07698a0cea5c19d85 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Dec 2020 13:12:12 +0100 Subject: [PATCH] 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. --- src/examples/media-session/alsa-monitor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/examples/media-session/alsa-monitor.c b/src/examples/media-session/alsa-monitor.c index 67de02438..9769580cb 100644 --- a/src/examples/media-session/alsa-monitor.c +++ b/src/examples/media-session/alsa-monitor.c @@ -833,15 +833,15 @@ static struct device *alsa_create_device(struct impl *impl, uint32_t id, (name != NULL && strstr(str, name) != NULL))) { 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 || (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 || (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 &&