mirror of https://github.com/thesofproject/sof.git
pipeline: fix logs in pipeline_comp_params_neg()
Use current->pipeline instead of ppl_data->p as a pipe_dbg() and pipe_err() arguments. ppl_data->p is not set at that point and can cause unexpected errors. Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
parent
f4344e6f13
commit
5b8b5437d6
|
@ -398,7 +398,7 @@ static int pipeline_comp_params_neg(struct comp_dev *current,
|
|||
uint32_t flags = 0;
|
||||
int err = 0;
|
||||
|
||||
pipe_dbg(ppl_data->p, "pipeline_comp_params_neg(), current->comp.id = %u, dir = %u",
|
||||
pipe_dbg(current->pipeline, "pipeline_comp_params_neg(), current->comp.id = %u, dir = %u",
|
||||
dev_comp_id(current), dir);
|
||||
|
||||
/* check if 'current' is already configured */
|
||||
|
@ -414,7 +414,7 @@ static int pipeline_comp_params_neg(struct comp_dev *current,
|
|||
* the param is conflict with an active pipeline,
|
||||
* drop an error and reject the .params() command.
|
||||
*/
|
||||
pipe_err(ppl_data->p, "pipeline_comp_params_neg(): params conflict with existed active pipeline!");
|
||||
pipe_err(current->pipeline, "pipeline_comp_params_neg(): params conflict with existed active pipeline!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue