]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aconnect: Fix the indication of inactive ports
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Jul 2024 15:21:13 +0000 (17:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jul 2024 15:21:13 +0000 (17:21 +0200)
The inactive port should have been shown in each port line instead of
the client name line.

Fixes: 64b1d486b1c6 ("aconnect: Add UMP support")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
seq/aconnect/aconnect.c

index 7096febfe1c10a8a376b7996c1621f4de6ffc744..371165d653234bdc3a55c7b6e416f23e3cea9ef4 100644 (file)
@@ -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
@@ -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,