kernel_optimize_test/sound/soc/intel
Peter Ujfalusi cd201332cc ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array
[ Upstream commit fc976f5629afb4160ee77798b14a693eac903ffd ]

The struct nhlt_format's fmt_config is a flexible array, it must not be
used as normal array.
When moving to the next nhlt_fmt_cfg we need to take into account the data
behind the ->config.caps (indicated by ->config.size).

The logic of the code also changed: it is no longer saves the _last_
fmt_cfg for all found rates.

Fixes: bc2bd45b1f ("ASoC: Intel: Skylake: Parse nhlt and register clock device")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220630065638.11183-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-07-21 21:20:05 +02:00
..
atom ASoC: intel: atom: Fix breakage for PCM buffer address setup 2021-08-26 08:35:57 -04:00
boards ASoC: Intel: bytcr_rt5640: Add quirk for the HP Pro Tablet 408 2022-06-09 10:20:52 +02:00
catpt ASoC: Intel: catpt: Test dmaengine_submit() result before moving on 2022-01-27 10:54:08 +01:00
common ASoC: Intel: soc-acpi: correct device endpoints for max98373 2022-05-09 09:05:06 +02:00
keembay ASoC: Intel: KMB: Fix S24_LE configuration 2020-11-16 20:02:40 +00:00
skylake ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array 2022-07-21 21:20:05 +02:00
Kconfig ASoC: intel: SND_SOC_INTEL_KEEMBAY should depend on ARCH_KEEMBAY 2020-12-30 11:53:14 +01:00
Makefile ASoC: Intel: Skylake: Compile when any configuration is selected 2021-05-14 09:50:29 +02:00