linux-stable/sound/soc/intel
Peter Ujfalusi fc976f5629
ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array
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>
2022-07-07 17:16:40 +01:00
..
atom ASoC: Intel: atom: use pm_runtime_resume_and_get() 2022-04-27 14:15:27 +01:00
avs ASoC: Intel: avs: Fix parsing UUIDs in topology 2022-06-24 16:21:40 +01:00
boards ASoC: Intel: sof_rt5682: fix out-of-bounds array access 2022-07-07 17:16:37 +01:00
catpt ASoC: Intel: catpt: Drop redundant enum constant 2022-04-05 10:23:22 +01:00
common ASoC: Intel: common: fix typo for tplg naming 2022-05-26 14:43:26 +01:00
keembay Merge remote-tracking branch 'asoc/for-5.13' into asoc-next 2021-04-23 19:01:02 +01:00
skylake ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array 2022-07-07 17:16:40 +01:00
Kconfig ASoC: Intel: avs: PCI driver implementation 2022-05-17 11:58:04 +01:00
Makefile ASoC: Intel: Introduce AVS driver 2022-03-11 16:23:54 +00:00