ASoC: Intel: avs: Fix dynamic port assignment when TDM is set
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 7 Feb 2024 11:26:24 +0000 (12:26 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 7 Feb 2024 15:23:49 +0000 (15:23 +0000)
commit44d3b8a19b91cd2af11f918b2fd05628383172de
tree8146bfa088e1da5aa9b8aa880e3b9516a7af1f1c
parent64353af49fecbdec1de9aadf2369d54fc00f1899
ASoC: Intel: avs: Fix dynamic port assignment when TDM is set

In case TDM is set in topology on SSP0, parser will overwrite vindex
value, because it only checks if port is set. Fix this by checking whole
field value.

Fixes: e6d50e474e45 ("ASoC: Intel: avs: Improve topology parsing of dynamic strings")
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20240207112624.2132821-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/topology.c