From 9be284983d815f96e96a37a6a3e3ec9a86d7a245 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 19 Nov 2015 02:20:47 +0100 Subject: Correct empty_detected location for gen3 IPEDMA --- dma/ipe.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dma/ipe.c b/dma/ipe.c index 460d2a0..0541df3 100644 --- a/dma/ipe.c +++ b/dma/ipe.c @@ -505,7 +505,7 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin volatile void *desc_va; volatile void *last_written_addr_ptr; - uint32_t empty_detected_dummy = 0; +// uint32_t empty_detected_dummy = 0; volatile uint32_t *empty_detected_ptr; pcilib_dma_flags_t packet_flags = PCILIB_DMA_FLAG_EOP; @@ -528,7 +528,8 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin empty_detected_ptr = last_written_addr_ptr - 2; } else { last_written_addr_ptr = desc_va + 2 * sizeof(uint32_t); - empty_detected_ptr = &empty_detected_dummy; + empty_detected_ptr = desc_va + sizeof(uint32_t); +// empty_detected_ptr = &empty_detected_dummy; } -- cgit v1.2.3