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
This commit is contained in:
Wim Taymans 2021-04-01 19:43:28 +02:00
parent e3f344b3fa
commit 9562cd56a2

View file

@ -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));