]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: hda: Avoid WARN_ON() for HDMI chmap slot checks
authorTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2026 06:17:56 +0000 (08:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Apr 2026 05:49:09 +0000 (07:49 +0200)
commit077c593dacf7ee33511468e4f29417d795cf07a4
treed2871d6a61ff214c59f4d95afde9661aa8257ebd
parent2d80392a97cf205a766d75539b4c814a4f5e7490
ALSA: hda: Avoid WARN_ON() for HDMI chmap slot checks

At parsing the channel mapping for HDMI, the current code may spew
WARN_ON() unnecessarily for the case where only invalid (zero) channel
maps are given from the hardware.  Drop WARN_ON() and reorganize the
code a bit for avoiding the hdmi_slot over the array size.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=221390
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260428061800.80527-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/core/hdmi_chmap.c