Creating virtual sink with FL,FR channels produces device with only FL in it
Version: master Distribution: Pop OS 20.04 Desktop Environment: GNOME
Description of Problem:
Creating a virtual sink with pw-cli create-node ...
with FL,FR channel map produces a device with only FL channel.
For example this command from https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Configuration:
$ pw-cli create-node adapter { factory.name=support.null-audio-sink node.name=my-mic media.class=Audio/Duplex object.linger=1 audio.position=FL,FR }
Produces device with only FL in it:
$ pw-cli dump Node
...
id: 73
permissions: rwxm
type: PipeWire:Interface:Node/3
input ports: 1/64
output ports: 1/0
state: "suspended"
properties:
factory.name = "support.null-audio-sink"
node.name = "my-mic"
media.class = "Audio/Duplex"
object.linger = "1"
audio.position = "FL"
factory.id = "18"
client.id = "72"
node.driver = "true"
factory.mode = "merge"
audio.adapt.follower = ""
library.name = "audioconvert/libspa-audioconvert"
object.id = "73"
params:
3 (Spa:Enum:ParamId:EnumFormat) r-
1 (Spa:Enum:ParamId:PropInfo) r-
2 (Spa:Enum:ParamId:Props) rw
4 (Spa:Enum:ParamId:Format) -w
10 (Spa:Enum:ParamId:EnumPortConfig) r-
11 (Spa:Enum:ParamId:PortConfig) rw
Found the commit that broke it with git bisect:
$ git bisect good
87706c7442aff3a3eb0b75a1b20ea1b39d511b5f is the first bad commit
commit 87706c7442aff3a3eb0b75a1b20ea1b39d511b5f
Author: Wim Taymans <wtaymans@redhat.com>
Date: Fri Apr 9 15:53:33 2021 +0200
pw-cli: use more powerful pw_properties_new_string()
Remove our custom property parsing code and use
pw_properties_new_string() for more powerful syntax.
src/tools/pw-cli.c | 30 +++---------------------------
1 file changed, 3 insertions(+), 27 deletions(-)
How Reproducible: 100%