mirror of https://github.com/thesofproject/sof.git
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:
parent
c4492e48b7
commit
59c57d05cb
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue