diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-04-27 06:51:24 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-04-27 06:51:24 +0200 | 
| commit | f3843702a12cf46f9cd4d1be772055ec6893a1bb (patch) | |
| tree | 3f3d8fe1f2b756dc2cd9fcff7b2e8e53539278ba /backend/pixma_mp810.c | |
| parent | b2802d98d4486d6afc585062f4ca02fddf829dc5 (diff) | |
Release 1.0.25+git20150425-1
Diffstat (limited to 'backend/pixma_mp810.c')
| -rw-r--r-- | backend/pixma_mp810.c | 25 | 
1 files changed, 21 insertions, 4 deletions
| diff --git a/backend/pixma_mp810.c b/backend/pixma_mp810.c index 59e96eb..e8bf75f 100644 --- a/backend/pixma_mp810.c +++ b/backend/pixma_mp810.c @@ -1,6 +1,6 @@  /* SANE - Scanner Access Now Easy. - Copyright (C) 2011-2014 Rolf Bensch <rolf at bensch hyphen online dot de> + Copyright (C) 2011-2015 Rolf Bensch <rolf at bensch hyphen online dot de>   Copyright (C) 2007-2009 Nicolas Martin, <nicols-guest at alioth dot debian dot org>   Copyright (C) 2006-2007 Wittawat Yamwong <wittawat@web.de> @@ -657,6 +657,23 @@ static unsigned calc_shifting (pixma_t * s)        }        break; +    case MP990_PID: +      if (s->param->xdpi == 4800) +      { +        if (is_scanning_from_tpu (s)) +        { +          mp->stripe_shift = 6; +          mp->stripe_shift2 = 6; +        } +        else +        { +          mp->stripe_shift = 3; +          mp->stripe_shift2 = 3; +        } +        mp->jumplines = 34; /* better than 32 or 34 : applies to flatbed & TPU */ +      } +      break; +      default: /* Default, and all CIS devices */        break;    } @@ -850,7 +867,7 @@ static int send_scan_param (pixma_t * s)       * 0x24 |   1   |   all   | 0x01       * -----+-------+---------+---------------------------       * 0x25 |   1   | default | 0x00; cs8800f: 0x01 -     *      |       |   tpu   | 0x00; cs9000f, mg8200: 0x01 +     *      |       |   tpu   | 0x00; cs9000f, mg8200, mp990: 0x01       *      |       |  tpuir  | cs9000f: 0x00       * -----+-------+---------+---------------------------       *  ... |   1   |   all   | 0x00 @@ -908,8 +925,8 @@ static int send_scan_param (pixma_t * s)      data[0x23] = 0x02;      data[0x24] = 0x01; -    /* MG8200 addition */ -    if (s->cfg->pid == MG8200_PID) +    /* MG8200 & MP990 addition */ +    if (s->cfg->pid == MG8200_PID || s->cfg->pid == MP990_PID)      {        if (is_scanning_from_tpu (s))        { | 
