From a9a95a4205bea66eee1a33219430b9b4fded94e6 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 Feb 2018 10:01:10 +0100 Subject: [PATCH] audio-dsp: start counting from 1, to match jack ports --- src/modules/module-audio-dsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-audio-dsp.c b/src/modules/module-audio-dsp.c index 184f47c5f..04e1e991c 100644 --- a/src/modules/module-audio-dsp.c +++ b/src/modules/module-audio-dsp.c @@ -767,6 +767,7 @@ static struct pw_node *make_node(struct impl *impl, const struct pw_properties * for (i = 0; i < n->channels; i++) { char port_name[128], alias_name[128]; + n->port_count[direction]++; snprintf(port_name, sizeof(port_name), "%s_%d", direction == PW_DIRECTION_INPUT ? "playback" : "capture", n->port_count[direction]); @@ -774,7 +775,6 @@ static struct pw_node *make_node(struct impl *impl, const struct pw_properties * alias, direction == PW_DIRECTION_INPUT ? "in" : "out", n->port_count[direction]); - n->port_count[direction]++; p = make_port(n, direction, i, PORT_FLAG_DSP | PORT_FLAG_RAW_F32,