From e2f0ab5710f02090b8aff5555ae2ded1b3f31607 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 2 Dec 2020 15:39:31 +0100 Subject: [PATCH] pulse-server: handle channel_map null-sink option --- src/modules/module-protocol-pulse/module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/module-protocol-pulse/module.c b/src/modules/module-protocol-pulse/module.c index be19f4d1e..03ef21ca7 100644 --- a/src/modules/module-protocol-pulse/module.c +++ b/src/modules/module-protocol-pulse/module.c @@ -179,6 +179,10 @@ static int load_module(struct client *client, const char *name, const char *argu pw_properties_set(props, "audio.rate", str); pw_properties_set(props, "rate", NULL); } + if ((str = pw_properties_get(props, "channel_map")) != NULL) { + pw_properties_set(props, "audio.position", str); + pw_properties_set(props, "channel_map", NULL); + } if ((str = pw_properties_get(props, "device.description")) != NULL) { pw_properties_set(props, "node.description", str); pw_properties_set(props, "device.description", NULL);