diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-04-28 14:02:58 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-04-28 14:02:58 +0200 | 
| commit | a4ccebf8f3f31001c96cec3b1e1315495b1920af (patch) | |
| tree | 7d1b010cb60532fec9e8c966a3063f5b6d1953a8 | |
| parent | e3843a9e77c42013364f736b8e0abd44b942643d (diff) | |
 New d/p/0155-genesys_gl847.patch
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | debian/patches/0155-genesys_gl847.patch | 63 | ||||
| -rw-r--r-- | debian/patches/series | 1 | 
3 files changed, 66 insertions, 0 deletions
| diff --git a/debian/changelog b/debian/changelog index 784f47a..259c34f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ sane-backends (1.0.27-4~experimental1) UNRELEASED; urgency=medium      - Thanks to John Paul Adrian Glaubitz for the bug fix.    * New debian/patches/0725-fix_link_60-libsane_rule.patch:      - Fix directory for 20-sane.hwdb (Closes: #916239). +  * New debian/patches/0155-genesys_gl847.patch: +    - Fix discolored bar on GL847 chip based scanners (Closes: #912603).    * Fix missing set device to group scanner (Closes: #918358);      - New debian/99-libsane.rules.      - debian/libsane.install: Install File into /etc/udev/rules.d/ diff --git a/debian/patches/0155-genesys_gl847.patch b/debian/patches/0155-genesys_gl847.patch new file mode 100644 index 0000000..27d6b2b --- /dev/null +++ b/debian/patches/0155-genesys_gl847.patch @@ -0,0 +1,63 @@ +Description: Restore slow_back_home use, disable rewind for gl847 +Origin: upstream, https://gitlab.com/sane-project/backends/commit/4354fc7f6da2ee65cbe940a715f11abecdad3f49 +Bug: https://gitlab.com/sane-project/backends/issues/7 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912603 +Forwarded: not-needed +Last-Update: 2019-04-28 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/backend/genesys.c +=================================================================== +--- trunk.orig/backend/genesys.c ++++ trunk/backend/genesys.c +@@ -2070,11 +2070,17 @@ genesys_white_shading_calibration (Genes +   dev->model->cmd_set->set_lamp_power (dev, dev->calib_reg, SANE_TRUE); +   dev->model->cmd_set->set_motor_power (dev->calib_reg, motor); +  +-  /* if needed, go back before doin next scan, by using rewind, registers and +-   * slopes table are kept intact from previous scan */ +-  if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK && dev->model->cmd_set->rewind) ++  /* if needed, go back before doing next scan */ ++  if (dev->model->flags & GENESYS_FLAG_SHADING_REPARK) ++ +     { +-      status = dev->model->cmd_set->rewind (dev); ++      /* rewind keeps registers and slopes table intact from previous ++         scan but is not available on all supported chipsets (or may ++         cause scan artifacts, see #7) */ ++      status = (dev->model->cmd_set->rewind ++                ? dev->model->cmd_set->rewind (dev) ++                : dev->model->cmd_set->slow_back_home (dev, SANE_TRUE)); ++ +     } +  +   status = +Index: trunk/backend/genesys_gl847.c +=================================================================== +--- trunk.orig/backend/genesys_gl847.c ++++ trunk/backend/genesys_gl847.c +@@ -1934,6 +1934,7 @@ gl847_end_scan (Genesys_Device * dev, Ge +  * @param dev device to rewind +  * @returns SANE_STATUS_GOOD on success +  */ ++#if 0 + GENESYS_STATIC + SANE_Status gl847_rewind(Genesys_Device * dev) + { +@@ -1965,6 +1966,7 @@ SANE_Status gl847_rewind(Genesys_Device +   DBGCOMPLETED; +   return SANE_STATUS_GOOD; + } ++#endif +  + /** Park head +  * Moves the slider to the home (top) position slowly +@@ -3793,7 +3795,7 @@ static Genesys_Command_Set gl847_cmd_set +   gl847_led_calibration, +  +   gl847_slow_back_home, +-  gl847_rewind, ++  NULL, /* disable gl847_rewind, see #7 */ +  +   sanei_genesys_bulk_write_register, +   NULL, diff --git a/debian/patches/series b/debian/patches/series index 9da26a2..7dbb3bb 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -26,3 +26,4 @@  0715-20-sane.hwdb_multi-arch.patch  0720-mustek_usb2-Avoid-stack-smashing.patch  0725-fix_link_60-libsane_rule.patch +0155-genesys_gl847.patch | 
