linux/sound/soc/intel
Amadeusz Sławiński aec3eecce1 ASoC: Intel: avs: Fix return status of avs_pcm_hw_constraints_init()
commit a0aae96be5 upstream.

Check for return code from avs_pcm_hw_constraints_init() in
avs_dai_fe_startup() only checks if value is different from 0. Currently
function can return positive value, change it to return 0 on success.

Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
I've observed KASAN on our setups and while patch itself is correct
regardless. Problem seems to be caused by recent changes to rates, as
this started happening after recent patchsets and doesn't reproduce with
those reverted
https://lore.kernel.org/linux-sound/20240905-alsa-12-24-128-v1-0-8371948d3921@baylibre.com/
https://lore.kernel.org/linux-sound/20240911135756.24434-1-tiwai@suse.de/
I've tested using Mark tree, where they are both applied and for some
reason snd_pcm_hw_constraint_minmax() started returning positive value,
while previously it returned 0. I'm bit worried if it signals some
potential deeper problem regarding constraints with above changes.

Link: https://patch.msgid.link/20241010112008.545526-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-12-14 20:00:22 +01:00
..
atom ASoC: Intel: sst: Fix used of uninitialized ctx to log an error 2024-12-09 10:32:42 +01:00
avs ASoC: Intel: avs: Fix return status of avs_pcm_hw_constraints_init() 2024-12-14 20:00:22 +01:00
boards ASoC: Intel: bytcr_rt5640: Add DMI quirk for Vexia Edu Atla 10 tablet 2024-12-09 10:31:36 +01:00
catpt ASoC: intel: merge DAI call back functions into ops 2023-08-14 13:10:19 +01:00
common ASoC: Intel: soc-acpi-cht: Make Lenovo Yoga Tab 3 X90F DMI match less strict 2024-09-30 16:25:10 +02:00
keembay ASoC: intel: fix module autoloading 2024-09-30 16:25:10 +02:00
skylake ASoC: Intel: Skylake: mem leak in skl register function 2024-01-20 11:51:39 +01:00
Kconfig ASoC: Intel: avs: Probe compress operations 2022-12-05 14:05:27 +00:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00