diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2017-08-16 22:39:05 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2017-08-16 22:39:05 +0200 |
commit | 92da72774b070ddec0562e05d81ceed340c8efad (patch) | |
tree | 87e03a7b10153d058d3599d55081cf828964e9a8 /dma/ipe.c | |
parent | 991f507418cb21da6ced14984b19567ade27933a (diff) | |
download | pcitool-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/ipe.c')
-rw-r--r-- | dma/ipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |