Skip to content

Commit

Permalink
ASoC: Intel: Skylake: Fix to parse consecutive string tkns in manifest
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shreyas NC authored and Mark Brown committed May 24, 2017
1 parent 5cd1f5c commit 0a71677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/skylake/skl-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0a71677

Please sign in to comment.