host: host-gw: only check first_copy for playback

For capture, we don't need produce empty bytes, here add
check to fix capture can't start issue.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
This commit is contained in:
Keyon Jie 2018-03-06 22:22:04 +08:00 committed by Liam Girdwood
parent c4492e48b7
commit 59c57d05cb
1 changed files with 2 additions and 1 deletions

View File

@ -851,7 +851,8 @@ static int host_copy(struct comp_dev *dev)
return 0;
#if defined CONFIG_DMA_GW
if (hd->first_copy) {
if (dev->params.direction == SOF_IPC_STREAM_PLAYBACK &&
hd->first_copy) {
/*
* host dma will not start copy at this point yet, just produce
* empty period bytes for it.