Send IPC message of DMA trace host update in DMA complete callback.

It is called every time DMA completes.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Yan Wang 2017-11-09 14:17:43 +08:00 committed by Liam Girdwood
parent a3c73af857
commit eb2af44172
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include <reef/reef.h> #include <reef/reef.h>
#include <reef/debug.h> #include <reef/debug.h>
#include <reef/trace.h> #include <reef/trace.h>
#include <reef/ipc.h>
#include <reef/dma.h> #include <reef/dma.h>
#include <reef/wait.h> #include <reef/wait.h>
#include <platform/dma.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) if (type == DMA_IRQ_TYPE_LLIST)
wait_completed(comp); wait_completed(comp);
ipc_dma_trace_send_position();
next->size = DMA_RELOAD_END; next->size = DMA_RELOAD_END;
} }