linux/sound/soc/intel/skylake
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
..
bxt-sst.c ASoC: Intel: Skylake: Unassign ram_read and read_write ops 2020-10-06 15:12:24 +01:00
cnl-sst-dsp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 490 2019-06-19 17:09:52 +02:00
cnl-sst-dsp.h ASoC: Intel: Skylake: (cosmetic) align function parameters 2020-08-18 11:50:26 +01:00
cnl-sst.c ASoC: Intel: fix error code cnl_set_dsp_D0() 2020-12-14 17:29:59 +00:00
Makefile ASoC: Intel: Skylake: Compile when any configuration is selected 2021-03-10 13:07:21 +00:00
skl-debug.c ASoC: intel: skl: Fix possible buffer overflow in debug outputs 2020-02-19 13:36:15 +00:00
skl-i2s.h ASoC: Intel: Skylake: Replace zero-length array with flexible-array 2020-05-12 17:14:33 +01:00
skl-messages.c ASoC: Intel: Skylake: Properly configure modules with generic extension 2021-08-23 16:40:04 +01:00
skl-nhlt.c ASoC: Intel: Skylake: Correct the handling of fmt_config flexible array 2022-07-07 17:16:40 +01:00
skl-pcm.c ASoC: Updates for v5.17 2022-01-05 15:39:24 +01:00
skl-ssp-clk.c ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
skl-ssp-clk.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
skl-sst-cldma.c ASoC: Intel: Skylake: cldma: remove redundant initialization 2020-08-18 11:50:22 +01:00
skl-sst-cldma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 490 2019-06-19 17:09:52 +02:00
skl-sst-dsp.c ASoC: Intel: Remove sst_pdata structure 2020-10-06 15:12:28 +01:00
skl-sst-dsp.h ASoC: Intel: Skylake: Await purge request ack on CNL 2020-03-10 17:44:29 +00:00
skl-sst-ipc.c ASoC: Intel: Remove sst_dsp_get_thread_context 2020-10-06 15:12:29 +01:00
skl-sst-ipc.h ASoC: Intel: Skylake: (cosmetic) align function parameters 2020-08-18 11:50:26 +01:00
skl-sst-utils.c ASoC: Intel: Skylake: sst-utils: remove redundant assignment 2020-08-18 11:50:23 +01:00
skl-sst.c ASoC: Intel: Skylake: Unassign ram_read and read_write ops 2020-10-06 15:12:24 +01:00
skl-topology.c ASoC: Intel: Skylake: Use NHLT API to search for blob 2021-11-30 16:49:34 +01:00
skl-topology.h treewide: Replace zero-length arrays with flexible-array members 2022-02-17 07:00:39 -06:00
skl.c ASoC: intel: skylake: Set max DMA segment size 2022-02-17 09:39:44 +01:00
skl.h ASoC: Intel: Skylake: Use NHLT API to search for blob 2021-11-30 16:49:34 +01:00