/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to dma/ipe.c

  • Committer: Suren A. Chilingaryan
  • Date: 2017-08-16 20:39:05 UTC
  • Revision ID: csa@suren.me-20170816203905-n1y8p44qmpqg95c5
Tags: ufo6
Read DMA version for HighFlex based ipecamera (may break older cameras)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
        ctx->version = IPEDMA_VERSION(version_value);
56
56
        
57
57
        if ((model)&&(!strcasecmp(model, "ipecamera"))) {
58
 
            ctx->gen = 2;
 
58
            if (IPEDMA_GENERATION(version_value) > 2) {
 
59
                ctx->gen = 3;
 
60
            } else {
 
61
                ctx->gen = 2;
 
62
            }
59
63
        } else {
60
64
            if (IPEDMA_GENERATION(version_value) > 2) {
61
65
                ctx->gen = 3;