ipc4: update pipeline status to ready

Pipeline is ready when it is complete and update
pipeline status in this case.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2022-04-15 09:51:31 +08:00 committed by Liam Girdwood
parent 177551d9df
commit b9190ed361
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,7 @@ static int set_pipeline_state(uint32_t id, uint32_t cmd, bool *delayed, uint32_t
}
status = pcm_dev->pipeline->status;
*ppl_status = status;
/* source & sink components are set when pipeline is set to COMP_STATE_INIT */
if (status != COMP_STATE_INIT) {
int host_id;
@ -261,6 +262,7 @@ static int set_pipeline_state(uint32_t id, uint32_t cmd, bool *delayed, uint32_t
if (ret < 0)
ret = IPC4_INVALID_REQUEST;
*ppl_status = COMP_STATE_READY;
return ret;
}
@ -291,6 +293,7 @@ static int set_pipeline_state(uint32_t id, uint32_t cmd, bool *delayed, uint32_t
if (ret < 0)
ret = IPC4_INVALID_REQUEST;
*ppl_status = COMP_STATE_READY;
return ret;
}