mirror of https://github.com/thesofproject/sof.git
dai: change error to info in dai_params
Check for prepare state in dai_params. It allows for configuring multiple host pipelines connected to one dai pipeline e.g. mixer topology. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
e43fa6e44e
commit
09b612e463
|
@ -394,10 +394,17 @@ static int dai_params(struct comp_dev *dev)
|
||||||
|
|
||||||
trace_dai_with_ids(dev, "dai_params()");
|
trace_dai_with_ids(dev, "dai_params()");
|
||||||
|
|
||||||
|
/* check if already configured */
|
||||||
|
if (dev->state == COMP_STATE_PREPARE) {
|
||||||
|
trace_dai_with_ids(dev, "dai_params() component has been"
|
||||||
|
"already configured.");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* can set params on only init state */
|
/* can set params on only init state */
|
||||||
if (dev->state != COMP_STATE_READY) {
|
if (dev->state != COMP_STATE_READY) {
|
||||||
trace_dai_error_with_ids(dev, "dai_params() error: Component is"
|
trace_dai_error_with_ids(dev, "dai_params() error: Component"
|
||||||
"not in init state.");
|
" is not in init state.");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue