This is a note to let you know that I've just added the patch titled ALSA: gus: Fix kctl->id initialization to the 6.1-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-gus-fix-kctl-id-initialization.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From c5ae57b1bb99bd6f50b90428fabde397c2aeba0f Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@xxxxxxx> Date: Tue, 6 Jun 2023 11:38:54 +0200 Subject: ALSA: gus: Fix kctl->id initialization From: Takashi Iwai <tiwai@xxxxxxx> commit c5ae57b1bb99bd6f50b90428fabde397c2aeba0f upstream. GUS driver replaces the kctl->id.index after assigning the kctl via snd_ctl_add(). This doesn't work any longer with the new Xarray lookup change. It has to be set before snd_ctl_add() call instead. Fixes: c27e1efb61c5 ("ALSA: control: Use xarray for faster lookups") Cc: <stable@xxxxxxxxxxxxxxx> Reviewed-by: Jaroslav Kysela <perex@xxxxxxxx> Link: https://lore.kernel.org/r/20230606093855.14685-4-tiwai@xxxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/isa/gus/gus_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/isa/gus/gus_pcm.c +++ b/sound/isa/gus/gus_pcm.c @@ -892,10 +892,10 @@ int snd_gf1_pcm_new(struct snd_gus_card kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control1, gus); else kctl = snd_ctl_new1(&snd_gf1_pcm_volume_control, gus); + kctl->id.index = control_index; err = snd_ctl_add(card, kctl); if (err < 0) return err; - kctl->id.index = control_index; return 0; } Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-6.1/alsa-hda-fix-kctl-id-initialization.patch queue-6.1/alsa-hda-realtek-add-quirk-for-clevo-ns50au.patch queue-6.1/alsa-ice1712-ice1724-fix-the-kcontrol-id-initialization.patch queue-6.1/alsa-hda-realtek-add-a-quirk-for-hp-slim-desktop-s01.patch queue-6.1/alsa-hda-realtek-add-lenovo-p3-tower-platform.patch queue-6.1/alsa-hda-realtek-add-quirks-for-asus-rog-2024-laptops-using-cs35l41.patch queue-6.1/alsa-gus-fix-kctl-id-initialization.patch queue-6.1/alsa-cmipci-fix-kctl-id-initialization.patch queue-6.1/alsa-ymfpci-fix-kctl-id-initialization.patch