Patch "ALSA: ump: Indicate the inactive group in legacy substream names" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    ALSA: ump: Indicate the inactive group in legacy substream names

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     alsa-ump-indicate-the-inactive-group-in-legacy-subst.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 975842b3cc61445f192b393fb47d43772a8ad954
Author: Takashi Iwai <tiwai@xxxxxxx>
Date:   Fri Nov 29 10:45:43 2024 +0100

    ALSA: ump: Indicate the inactive group in legacy substream names
    
    [ Upstream commit e29e504e7890b9ee438ca6370d0180d607c473f9 ]
    
    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@xxxxxxx
    Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/sound/core/ump.c b/sound/core/ump.c
index 5a4a7d0b7cca..bb94f119869a 100644
--- a/sound/core/ump.c
+++ b/sound/core/ump.c
@@ -1245,8 +1245,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]");
 	}
 }
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux