From 9562cd56a23338b7e82b2c72334df3a71300174c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 1 Apr 2021 19:43:28 +0200 Subject: [PATCH] alsa-seq: tweak port names some more Remove the client id, it can change and is otherwise not generally useful. Move the direction with the port. Fixes #1007 --- spa/plugins/alsa/alsa-seq-bridge.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spa/plugins/alsa/alsa-seq-bridge.c b/spa/plugins/alsa/alsa-seq-bridge.c index fe6fc8daf..86b433fbb 100644 --- a/spa/plugins/alsa/alsa-seq-bridge.c +++ b/spa/plugins/alsa/alsa-seq-bridge.c @@ -254,9 +254,8 @@ static void emit_port_info(struct seq_state *this, struct seq_port *port, bool f snd_seq_get_any_client_info(this->sys.hndl, port->addr.client, client_info); - snprintf(name, sizeof(name), "%s [%d] (%s): [%d] %s", + snprintf(name, sizeof(name), "%s:(%s_%d) %s", snd_seq_client_info_get_name(client_info), - port->addr.client, port->direction == SPA_DIRECTION_OUTPUT ? "capture" : "playback", port->addr.port, snd_seq_port_info_get_name(info));