linux/sound/soc/intel/skylake
Cezary Rojewski e8b374b649
ASoC: Intel: Skylake: Fix module resource and format selection
Module configuration may differ between its instances depending on
resources required and input and output audio format. Available
parameters to select from are stored in module resource and interface
(format) lists. These come from topology, together with description of
each of pipe's modules.

Ignoring index value provided by topology and relying always on 0th
entry leads to unexpected module behavior due to under/overbudged
resources assigned or impropper format selection. Fix by taking entry at
index specified by topology.

Fixes: f6fa56e225 ("ASoC: Intel: Skylake: Parse and update module config structure")
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Tested-by: Lukasz Majczak <lma@semihalf.com>
Link: https://lore.kernel.org/r/20210818075742.1515155-5-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-08-23 16:39:58 +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: Print module type instead of id 2019-08-27 19:26:06 +01:00
skl-nhlt.c ASoC: Intel: Skylake: use DEVICE_ATTR_RO macro 2021-06-02 12:03:33 +01:00
skl-pcm.c ASoC: intel: skylake: Drop superfluous mmap callback 2021-07-30 16:04:40 +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: Fix module resource and format selection 2021-08-23 16:39:58 +01:00
skl-topology.h ASoC: Intel: Skylake: (cosmetic) align function parameters 2020-08-18 11:50:26 +01:00
skl.c ASoC: intel: skl: Simplify with dma_set_mask_and_coherent() 2021-01-19 14:06:10 +00:00
skl.h ASoC: Intel: Fix a typo 2021-03-31 18:03:30 +01:00