Skip to content

Commit

Permalink
aconnect: Fix the indication of inactive ports
Browse files Browse the repository at this point in the history
The inactive port should have been shown in each port line instead of
the client name line.

Fixes: 64b1d48 ("aconnect: Add UMP support")
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jul 8, 2024
1 parent 2ee6c17 commit 330741d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions seq/aconnect/aconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
break;
}
#endif
#ifdef HANDLE_SHOW_ALL
if (snd_seq_port_info_get_capability(pinfo) & SND_SEQ_PORT_CAP_INACTIVE)
printf(",INACTIVE");
#endif
#ifdef HAVE_SEQ_CLIENT_INFO_GET_CARD
card = snd_seq_client_info_get_card(cinfo);
#endif
Expand All @@ -232,9 +228,14 @@ static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
printf(",pid=%d", pid);
printf("]\n");
}
printf(" %3d '%-16s'\n",
printf(" %3d '%-16s'",
snd_seq_port_info_get_port(pinfo),
snd_seq_port_info_get_name(pinfo));
#ifdef HANDLE_SHOW_ALL
if (snd_seq_port_info_get_capability(pinfo) & SND_SEQ_PORT_CAP_INACTIVE)
printf(" [INACTIVE]");
#endif
printf("\n");
}

static void print_port_and_subs(snd_seq_t *seq, snd_seq_client_info_t *cinfo,
Expand Down

0 comments on commit 330741d

Please sign in to comment.