ALSA: ice1712,ice1724: fix the kcontrol->id initialization
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Jun 2023 07:31:22 +0000 (09:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:15:24 +0000 (11:15 +0200)
commit0df0097ea2d52401c31e550389ac758c90e6a1eb
tree09b41489213299d3196e0c7847e5a30316fca50e
parentcaad8a0a10c348975cf2ab5067ba7ffbd9b737e6
ALSA: ice1712,ice1724: fix the kcontrol->id initialization

commit b9a4efd61b6b9f62f83752959e75a5dae20624fa upstream.

The new xarray lookup code requires to know complete kcontrol->id before
snd_ctl_add() call. Reorder the code to make the initialization properly.

Cc: stable@kernel.org # v5.19+
Reported-by: Martin Zidek <zidek@master.cz>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230606073122.597491-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/ice1712/aureon.c
sound/pci/ice1712/ice1712.c
sound/pci/ice1712/ice1724.c