Skip to content

Commit

Permalink
pipeline: remove duplicated pipeline copy
Browse files Browse the repository at this point in the history
As task scheduler is refined to accept adding new task while previous
task is running. This duplicated copy should be removed.

Signed-off-by: Pan Xiuli <[email protected]>
  • Loading branch information
xiulipan authored and lgirdwood committed Dec 19, 2018
1 parent 699321e commit 4a7eccb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/audio/pipeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1242,19 +1242,6 @@ static int pipeline_xrun_recover(struct pipeline *p)
return ret;
}

/* for playback copy it here, because scheduling won't work
* on this interrupt level
*/
if (p->sched_comp->params.direction == SOF_IPC_STREAM_PLAYBACK) {
ret = pipeline_copy(p->sched_comp);
if (ret < 0) {
trace_pipe_error_with_ids(p, "pipeline_xrun_recover() "
"error: pipeline_copy() "
"failed, ret = %d", ret);
return ret;
}
}

return 0;
}

Expand Down

0 comments on commit 4a7eccb

Please sign in to comment.