projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3978d53
)
ALSA: ump: Indicate the inactive group in legacy substream names
author
Takashi Iwai
<tiwai@suse.de>
Fri, 29 Nov 2024 09:45:43 +0000
(10:45 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 29 Nov 2024 10:07:37 +0000
(11:07 +0100)
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/20241129094546.32119-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/ump.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/ump.c
b/sound/core/ump.c
index 9f9ad106107f79f90980d605b29db7c471e65360..7b00a957e5489a2d0e7c2e1199026bdbca54b4b5 100644
(file)
--- a/
sound/core/ump.c
+++ b/
sound/core/ump.c
@@
-1256,8
+1256,9
@@
static void fill_substream_names(struct snd_ump_endpoint *ump,
name = ump->groups[idx].name;
if (!*name)
name = ump->info.name;
- snprintf(s->name, sizeof(s->name), "Group %d (%.16s)",
- idx + 1, name);
+ snprintf(s->name, sizeof(s->name), "Group %d (%.16s)%s",
+ idx + 1, name,
+ ump->groups[idx].active ? "" : " [Inactive]");
}
}