linux-yocto/sound/soc
Takashi Iwai 2204e582b4 ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping
[ Upstream commit 4336efb59ef364e691ef829a73d9dbd4d5ed7c7b ]

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: 64484ccee7 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:56:33 +02:00
..
adi
amd ASoC: amd: yc: Add DMI entries to support HP 15-fb1xxx 2025-08-15 12:04:52 +02:00
apple ASoC: apple: mca: Constrain channels according to TDM mask 2025-06-27 11:07:07 +01:00
atmel ASoC: atmel: mchp-pdmc: Skip ALSA restoration if substream runtime is uninitialized 2024-10-17 15:21:34 +02:00
au1x ASoC: allow module autoloading for table db1200_pids 2024-09-30 16:23:46 +02:00
bcm
cirrus
codecs ASoC: rt5682s: Adjust SAR ADC button mode to fix noise issue 2025-10-15 11:56:23 +02:00
dwc
fsl ASoC: fsl_sai: replace regmap_write with regmap_update_bits 2025-08-28 16:26:03 +02:00
generic ASoC: soc-dai.h: merge DAI call back functions into ops 2025-08-28 16:26:03 +02:00
hisilicon
img
intel ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping 2025-10-15 11:56:33 +02:00
jz4740
kirkwood
mediatek ASoC: mediatek: disable buffer pre-allocation 2025-01-17 13:34:38 +01:00
meson ASoC: meson: meson-card-utils: use of_property_present() for DT parsing 2025-06-27 11:07:26 +01:00
mxs
pxa
qcom ASoC: qcom: audioreach: fix potential null pointer dereference 2025-10-15 11:56:21 +02:00
rockchip ASoC: rockchip: i2s-tdm: fix shift config for SND_SOC_DAIFMT_DSP_[AB] 2025-03-07 16:56:33 +01:00
samsung ASoC: samsung: midas_wm1811: Fix 'Headphone Switch' control creation 2025-02-01 18:30:11 +01:00
sh ASoC: rsnd: adjust convert rate limitation 2025-03-28 21:58:52 +01:00
sof ASoC: SOF: Intel: hda-stream: Fix incorrect variable used in error message 2025-09-25 10:58:53 +02:00
spear
sprd
sti
stm ASoC: stm: Prevent potential division by zero in stm32_sai_get_clk_div() 2024-12-14 19:53:10 +01:00
sunxi ASoC: sun4i-codec: support hp-det-gpios property 2025-06-04 14:40:06 +02:00
tegra ASoC: tegra210_ahub: Add check to of_device_get_match_data() 2025-06-27 11:07:32 +01:00
ti ASoC: ti: j721e-evm: Fix clock configuration for ti,j7200-cpb-audio compatible 2025-04-10 14:33:31 +02:00
uniphier
ux500
xilinx
xtensa
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c
soc-compress.c
soc-core.c ASoC: soc-dai.h: merge DAI call back functions into ops 2025-08-28 16:26:03 +02:00
soc-dai.c ASoC: soc-dai.h: merge DAI call back functions into ops 2025-08-28 16:26:03 +02:00
soc-dapm.c ASoC: soc-dapm: set bias_level if snd_soc_dapm_set_bias_level() was successed 2025-08-28 16:25:52 +02:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: dynamically allocate struct snd_ctl_elem_value 2025-08-15 12:04:53 +02:00
soc-pcm.c ASoC: soc-pcm: Fix hw_params() and DAPM widget sequence 2025-05-09 09:41:39 +02:00
soc-topology-test.c
soc-topology.c ASoC: topology: Properly initialize soc_enum values 2024-09-12 11:10:22 +02:00
soc-utils-test.c
soc-utils.c