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:
Bartosz Kokoszko 2020-09-24 14:29:42 +02:00 committed by Liam Girdwood
parent f4344e6f13
commit 5b8b5437d6
1 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ static int pipeline_comp_params_neg(struct comp_dev *current,
uint32_t flags = 0; uint32_t flags = 0;
int err = 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); dev_comp_id(current), dir);
/* check if 'current' is already configured */ /* 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, * the param is conflict with an active pipeline,
* drop an error and reject the .params() command. * 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; return -EINVAL;
} }