mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-09-19 17:49:59 +02:00
aconnect: Fix the indication of inactive ports
The inactive port should have been shown in each port line instead of
the client name line.
Fixes: 64b1d486b1
("aconnect: Add UMP support")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
2ee6c170a8
commit
330741d523
1 changed files with 6 additions and 5 deletions
|
@ -215,10 +215,6 @@ static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#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
|
#ifdef HAVE_SEQ_CLIENT_INFO_GET_CARD
|
||||||
card = snd_seq_client_info_get_card(cinfo);
|
card = snd_seq_client_info_get_card(cinfo);
|
||||||
#endif
|
#endif
|
||||||
|
@ -232,9 +228,14 @@ static void print_port(snd_seq_t *seq ATTRIBUTE_UNUSED,
|
||||||
printf(",pid=%d", pid);
|
printf(",pid=%d", pid);
|
||||||
printf("]\n");
|
printf("]\n");
|
||||||
}
|
}
|
||||||
printf(" %3d '%-16s'\n",
|
printf(" %3d '%-16s'",
|
||||||
snd_seq_port_info_get_port(pinfo),
|
snd_seq_port_info_get_port(pinfo),
|
||||||
snd_seq_port_info_get_name(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,
|
static void print_port_and_subs(snd_seq_t *seq, snd_seq_client_info_t *cinfo,
|
||||||
|
|
Loading…
Reference in a new issue