]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: bytcht_es8316: Fix invalid quirk input mapping
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Sep 2025 17:18:19 +0000 (19:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Sep 2025 17:39:10 +0000 (18:39 +0100)
commitb20eb0e8de383116f1e1470d74da2a3c83c4e345
tree8a3848dc16699e30fe9f46f3aecdb70dc8e80f51
parent9e5eb8b49ffe3c173bf7b8c338a57dfa09fb4634
ASoC: Intel: bytcht_es8316: Fix invalid quirk input mapping

When an invalid value is passed via quirk option, currently
bytcht_es8316 driver just ignores and leaves as is, which may lead to
unepxected results like OOB access.

This patch adds the sanity check and corrects the input mapping to the
certain default value if an invalid value is passed.

Fixes: 249d2fc9e55c ("ASoC: Intel: bytcht_es8316: Set card long_name based on quirks")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20250902171826.27329-2-tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcht_es8316.c