Tools: Testbench: Fix mistake in topology component load by UUID

The if test needs to be done for comp_type. The index does not refer
to comp types but items in lib_table that is not correct. As result
testbench loads crossover for all UUID based components. The load of
beamformer works correctly with this change.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-09-09 11:46:48 +03:00 committed by Liam Girdwood
parent 1ad7503299
commit 46e49cc3b4
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ void register_comp(int comp_type, struct sof_ipc_comp_ext *comp_ext)
/* get index of comp in shared library table */
index = get_index_by_type(comp_type, lib_table);
if (index == SOF_COMP_NONE && comp_ext) {
if (comp_type == SOF_COMP_NONE && comp_ext) {
index = get_index_by_uuid(comp_ext, lib_table);
if (index < 0)
return;