Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/ipc/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,18 @@ static int ipc_stream_trigger(uint32_t header)
return 0;
}

/* when START command comes, the pipeline has to be prepared.
* This case has to be taken into account:
* when ALSA has XRUN, it will send stop/start commands to FW
* and try to recover the pipepine. If we did not prepare
* the pipeline before start, the recover process will fail.
*/
if (cmd == COMP_TRIGGER_START) {
ret = pipeline_prepare(pcm_dev->cd->pipeline, pcm_dev->cd);
if (ret < 0)
trace_ipc_error("eR1");
}

/* trigger the component */
ret = pipeline_trigger(pcm_dev->cd->pipeline, pcm_dev->cd, cmd);
if (ret < 0) {
Expand Down