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