[Sound-open-firmware] [PATCH] host: use platform DMA timeout for host DMA timeout.

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Dec 22 14:05:11 CET 2016


This will be different for each platform so use the platform tiemout.

Signed-off-by: Liam Girdwood <liam.r.girdwood at 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



More information about the Sound-open-firmware mailing list