ALSA: ice1712,ice1724: fix the kcontrol->id initialization

commit b9a4efd61b 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>
This commit is contained in:
Jaroslav Kysela 2023-06-06 09:31:22 +02:00 • committed by Greg Kroah-Hartman
commit 0df0097ea2
3 changed files with 23 additions and 14 deletions