mirror of https://github.com/thesofproject/sof.git
Testbench: Force core to zero to be able run the pipeline
This patch sets in topology parsing core to zero for file reader, file writer, and buffer since it was left uninitialized and caused the core check in pipeline run to fail. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
1f09719260
commit
71d9dbe62b
|
@ -196,6 +196,7 @@ static int tplg_load_fileread(int comp_id, int pipeline_id, int size,
|
|||
fileread->comp.id = comp_id;
|
||||
|
||||
/* use fileread comp as scheduling comp */
|
||||
fileread->comp.core = 0;
|
||||
fileread->comp.hdr.size = sizeof(struct sof_ipc_comp_file);
|
||||
fileread->comp.type = SOF_COMP_FILEREAD;
|
||||
fileread->comp.pipeline_id = pipeline_id;
|
||||
|
@ -283,6 +284,7 @@ static int tplg_load_filewrite(int comp_id, int pipeline_id, int size,
|
|||
}
|
||||
|
||||
/* configure filewrite */
|
||||
filewrite->comp.core = 0;
|
||||
filewrite->comp.id = comp_id;
|
||||
filewrite->mode = FILE_WRITE;
|
||||
filewrite->comp.hdr.size = sizeof(struct sof_ipc_comp_file);
|
||||
|
|
|
@ -79,6 +79,7 @@ int tplg_load_buffer(int comp_id, int pipeline_id, int size,
|
|||
int ret = 0;
|
||||
|
||||
/* configure buffer */
|
||||
buffer->comp.core = 0;
|
||||
buffer->comp.id = comp_id;
|
||||
buffer->comp.pipeline_id = pipeline_id;
|
||||
buffer->comp.hdr.cmd = SOF_IPC_GLB_TPLG_MSG | SOF_IPC_TPLG_BUFFER_NEW;
|
||||
|
|
Loading…
Reference in New Issue