diff options
Diffstat (limited to 'ipecamera')
-rw-r--r-- | ipecamera/image.c | 6 | ||||
-rw-r--r-- | ipecamera/model.h | 2 |
2 files changed, 7 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 } diff --git a/ipecamera/model.h b/ipecamera/model.h index a460dde..9e78ab3 100644 --- a/ipecamera/model.h +++ b/ipecamera/model.h @@ -6,6 +6,8 @@ #include "pcilib.h" #include "image.h" +//#define IPECAMERA_DMA_R3 + //#define IPECAMERA_REGISTER_SPACE 0xfeaffc00 #define IPECAMERA_REGISTER_SPACE 0x9000 #define IPECAMERA_REGISTER_WRITE (IPECAMERA_REGISTER_SPACE + 0) |