]> Gentwo Git Trees - linux/.git/commit
ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Sep 2025 17:18:21 +0000 (19:18 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 8 Sep 2025 17:39:12 +0000 (18:39 +0100)
commit4336efb59ef364e691ef829a73d9dbd4d5ed7c7b
tree364192d6a0188673ac5519bcb69b5f2e55989980
parentfba404e4b4af4f4f747bb0e41e9fff7d03c7bcc0
ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping

When an invalid value is passed via quirk option, currently
bytcr_rt5640 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: 64484ccee7af ("ASoC: Intel: bytcr_rt5651: Set card long_name based on quirks")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Message-ID: <20250902171826.27329-4-tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5651.c