mirror of https://github.com/thesofproject/sof.git
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:
parent
1ad7503299
commit
46e49cc3b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue