diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-12-12 05:45:35 +0100 |
commit | 2e4e8a00b27182a155cb10f0a00e44977bfcd5cf (patch) | |
tree | 86afd1b7ceb834dbb3cedf8d55c3ac0734947333 /dma/nwl_engine.c | |
parent | 7a4cfb9e546c496792d3fe0c61c822c66ad0128f (diff) | |
download | pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.gz pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.bz2 pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.tar.xz pcitool-2e4e8a00b27182a155cb10f0a00e44977bfcd5cf.zip |
multithread preprocessing of ipecamera frames and code reorganization
Diffstat (limited to 'dma/nwl_engine.c')
-rw-r--r-- | dma/nwl_engine.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dma/nwl_engine.c b/dma/nwl_engine.c index ac87f08..fc07ccd 100644 --- a/dma/nwl_engine.c +++ b/dma/nwl_engine.c @@ -267,14 +267,13 @@ int dma_nwl_write_fragment(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, int dma_nwl_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, pcilib_timeout_t timeout, pcilib_dma_callback_t cb, void *cbattr) { int err, ret = PCILIB_STREAMING_REQ_PACKET; + pcilib_timeout_t wait = 0; size_t res = 0; size_t bufnum; size_t bufsize; - pcilib_timeout_t wait; nwl_dma_t *ctx = (nwl_dma_t*)vctx; - size_t buf_size; int eop; pcilib_nwl_engine_description_t *info = ctx->engines + dma; @@ -286,7 +285,7 @@ int dma_nwl_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin switch (ret&PCILIB_STREAMING_TIMEOUT_MASK) { case PCILIB_STREAMING_CONTINUE: wait = PCILIB_DMA_TIMEOUT; break; case PCILIB_STREAMING_WAIT: wait = timeout; break; - case PCILIB_STREAMING_CHECK: wait = 0; break; +// case PCILIB_STREAMING_CHECK: wait = 0; break; } bufnum = dma_nwl_wait_buffer(ctx, info, &bufsize, &eop, wait); |