ALSA: hda: Return the codec init error properly at snd_hda_codec_build_controls()
authorTakashi Iwai <tiwai@suse.de>
Wed, 9 Jul 2025 16:04:30 +0000 (18:04 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 11 Jul 2025 07:55:38 +0000 (09:55 +0200)
commit0c8e393941d25ea13a659f184c6dc76194a473b5
tree1ce66f9ab303147721e133dfd1dbb4cfad5c1268
parent0c4eebafea5fefef264f2f8f1c88bbe1e53efedf
ALSA: hda: Return the codec init error properly at snd_hda_codec_build_controls()

The error from snd_hda_codec_init() was ignored in
snd_hda_codec_build_controls(), which should have been taken account
and abort the flow.  Fix it now.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-28-tiwai@suse.de
sound/hda/common/codec.c