mirror of https://github.com/thesofproject/sof.git
pipeline: set preload only for playback streams
Sets preload flag only for playback streams. Capture streams scheduled on timer no longer need this, because new xrun handling in dai allows for valid ppl path stop, when data is not yet available on first timer tick. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
95372a0bb0
commit
71f35296cb
|
@ -590,8 +590,7 @@ static int dai_copy(struct comp_dev *dev)
|
|||
return ret;
|
||||
platform_dai_wallclock(dev, &dd->wallclock);
|
||||
|
||||
/* let's not copy further */
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* get data sizes from DMA */
|
||||
|
|
|
@ -388,11 +388,8 @@ int pipeline_prepare(struct pipeline *p, struct comp_dev *dev)
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* pipeline preload needed only for playback streams and capture
|
||||
* streams scheduled with timer
|
||||
*/
|
||||
p->preload = dev->params.direction == SOF_IPC_STREAM_PLAYBACK ||
|
||||
pipeline_is_timer_driven(p);
|
||||
/* pipeline preload needed only for playback streams */
|
||||
p->preload = dev->params.direction == SOF_IPC_STREAM_PLAYBACK;
|
||||
p->status = COMP_STATE_PREPARE;
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue