Skip to content

Commit e29e504

Browse files
committed
ALSA: ump: Indicate the inactive group in legacy substream names
Since the legacy rawmidi has no proper way to know the inactive group, indicate it in the rawmidi substream names with "[Inactive]" suffix when the corresponding UMP group is inactive. Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3978d53 commit e29e504

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sound/core/ump.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,9 @@ static void fill_substream_names(struct snd_ump_endpoint *ump,
12561256
name = ump->groups[idx].name;
12571257
if (!*name)
12581258
name = ump->info.name;
1259-
snprintf(s->name, sizeof(s->name), "Group %d (%.16s)",
1260-
idx + 1, name);
1259+
snprintf(s->name, sizeof(s->name), "Group %d (%.16s)%s",
1260+
idx + 1, name,
1261+
ump->groups[idx].active ? "" : " [Inactive]");
12611262
}
12621263
}
12631264

0 commit comments

Comments
 (0)