22 Dec
2016
22 Dec
'16
2:05 p.m.
This will be different for each platform so use the platform tiemout.
Signed-off-by: Liam Girdwood liam.r.girdwood@linux.intel.com --- src/audio/host.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/audio/host.c b/src/audio/host.c index 521380a..d544924 100644 --- a/src/audio/host.c +++ b/src/audio/host.c @@ -364,8 +364,8 @@ static int host_preload(struct comp_dev *dev) dma_set_config(hd->dma, hd->chan, &hd->config); dma_start(hd->dma, hd->chan);
- /* wait 1 msecs for DMA to finish */ - hd->complete.timeout = 100; + /* wait for DMA to finish */ + hd->complete.timeout = PLATFORM_DMA_TIMEOUT; ret = wait_for_completion_timeout(&hd->complete); if (ret < 0) { trace_comp_error("eHp");
--
2.9.3