[Sound-open-firmware] [PATCH 3/4] Send IPC message of DMA trace host update in DMA complete callback.

yan.wang at linux.intel.com yan.wang at linux.intel.com
Thu Nov 9 07:17:43 CET 2017


From: Yan Wang <yan.wang at linux.intel.com>

It is called every time DMA completes.

Signed-off-by: Yan Wang <yan.wang at linux.intel.com>
---
 src/ipc/dma-copy.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ipc/dma-copy.c b/src/ipc/dma-copy.c
index 5c9ff97..6ba8f57 100644
--- a/src/ipc/dma-copy.c
+++ b/src/ipc/dma-copy.c
@@ -34,6 +34,7 @@
 #include <reef/reef.h>
 #include <reef/debug.h>
 #include <reef/trace.h>
+#include <reef/ipc.h>
 #include <reef/dma.h>
 #include <reef/wait.h>
 #include <platform/dma.h>
@@ -76,6 +77,8 @@ static void dma_complete(void *data, uint32_t type, struct dma_sg_elem *next)
 	if (type == DMA_IRQ_TYPE_LLIST)
 		wait_completed(comp);
 
+	ipc_dma_trace_send_position();
+
 	next->size = DMA_RELOAD_END;
 }
 
-- 
2.7.4



More information about the Sound-open-firmware mailing list