summaryrefslogtreecommitdiffstats
path: root/dma
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2017-08-16 22:39:05 +0200
committerSuren A. Chilingaryan <csa@suren.me>2017-08-16 22:39:05 +0200
commit92da72774b070ddec0562e05d81ceed340c8efad (patch)
tree87e03a7b10153d058d3599d55081cf828964e9a8 /dma
parent991f507418cb21da6ced14984b19567ade27933a (diff)
downloadpcitool-92da72774b070ddec0562e05d81ceed340c8efad.tar.gz
pcitool-92da72774b070ddec0562e05d81ceed340c8efad.tar.bz2
pcitool-92da72774b070ddec0562e05d81ceed340c8efad.tar.xz
pcitool-92da72774b070ddec0562e05d81ceed340c8efad.zip
Read DMA version for HighFlex based ipecamera (may break older cameras)
Diffstat (limited to 'dma')
-rw-r--r--dma/ipe.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dma/ipe.c b/dma/ipe.c
index 614d260..64549a8 100644
--- a/dma/ipe.c
+++ b/dma/ipe.c
@@ -55,7 +55,11 @@ pcilib_dma_context_t *dma_ipe_init(pcilib_t *pcilib, const char *model, const vo
ctx->version = IPEDMA_VERSION(version_value);
if ((model)&&(!strcasecmp(model, "ipecamera"))) {
- ctx->gen = 2;
+ if (IPEDMA_GENERATION(version_value) > 2) {
+ ctx->gen = 3;
+ } else {
+ ctx->gen = 2;
+ }
} else {
if (IPEDMA_GENERATION(version_value) > 2) {
ctx->gen = 3;