ALSA: ice1712,ice1724: fix the kcontrol->id initialization
authorJaroslav Kysela <perex@perex.cz>
Tue, 6 Jun 2023 07:31:22 +0000 (09:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Jun 2023 07:43:55 +0000 (09:43 +0200)
commitb9a4efd61b6b9f62f83752959e75a5dae20624fa
tree81155785dd0481343f26b06a406a553068c21049
parentda209f7a80dd633a32cbcbafe9e9f778933119c1
ALSA: ice1712,ice1724: fix the kcontrol->id initialization

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>
sound/pci/ice1712/aureon.c
sound/pci/ice1712/ice1712.c
sound/pci/ice1712/ice1724.c