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:
Tomasz Lauda 2019-06-07 10:22:48 +02:00 committed by Liam Girdwood
parent 95372a0bb0
commit 71f35296cb
2 changed files with 3 additions and 7 deletions

View File

@ -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 */

View File

@ -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: