summaryrefslogtreecommitdiffstats
path: root/ipecamera/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipecamera/image.c')
-rw-r--r--ipecamera/image.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipecamera/image.c b/ipecamera/image.c
index 0fe8da8..62ab695 100644
--- a/ipecamera/image.c
+++ b/ipecamera/image.c
@@ -181,8 +181,12 @@ pcilib_dma_context_t *ipecamera_init_dma(pcilib_context_t *vctx) {
pcilib_error("The DMA engine is not configured in model");
return NULL;
}
-
+
+#ifdef IPECAMERA_DMA_R3
+ return model_info->dma_api->init(ctx->pcilib, PCILIB_NWL_MODIFICATION_IPECAMERA, NULL);
+#else
return model_info->dma_api->init(ctx->pcilib, PCILIB_DMA_MODIFICATION_DEFAULT, NULL);
+#endif
}