mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-20 14:16:02 +00:00
ASoC: Intel: Skylake: Fix to parse consecutive string tkns in manifest
Element size in the manifest should be updated for each token, so that the loop can parse all the string elements in the manifest. This was not happening when more than two string elements appear consecutively, as it is not updated with correct string element size. Fixed with this patch. Signed-off-by: Shreyas NC <shreyas.nc@intel.com> Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
5cd1f5c321
commit
0a71677691
1 changed files with 1 additions and 1 deletions
|
@ -2502,7 +2502,7 @@ static int skl_tplg_get_manifest_tkn(struct device *dev,
|
|||
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
tkn_count += ret;
|
||||
tkn_count = ret;
|
||||
|
||||
tuple_size += tkn_count *
|
||||
sizeof(struct snd_soc_tplg_vendor_string_elem);
|
||||
|
|
Loading…
Reference in a new issue