1758886 - CanoScan LiDE scanners supported by genesys backend are not detected

This commit is contained in:
Zdenek Dohnal 2019-10-17 11:31:27 +02:00
parent 5185ac94ab
commit 7d3dd91734
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -up sane-backends-1.0.28/backend/genesys_gl841.cc.genesys-regression sane-backends-1.0.28/backend/genesys_gl841.cc
--- sane-backends-1.0.28/backend/genesys_gl841.cc.genesys-regression 2019-10-14 13:11:10.772763713 +0200
+++ sane-backends-1.0.28/backend/genesys_gl841.cc 2019-10-14 13:11:57.602389188 +0200
@@ -5042,6 +5042,9 @@ gl841_init (Genesys_Device * dev)
/* Set analog frontend */
RIE (gl841_set_fe(dev, sensor, AFE_INIT));
+ // FIXME: slow_back_home modifies dev->calib_reg and requires it to be filled
+ dev->calib_reg = dev->reg;
+
/* Move home */
RIE (gl841_slow_back_home (dev, SANE_TRUE));

View File

@ -55,6 +55,8 @@ Patch1: sane-backends-1.0.23-soname.patch
Patch2: sane-backends-1.0.23-sane-config-multilib.patch
# saned manpage incomplete and exists when saned is not installed (#1515762)
Patch3: sane-backends-saned-manpage.patch
# several canoscan models did not work due genesys backend rewritten, taken from upstream
Patch4: 0001-genesys-Make-sure-calib_reg-are-available-before-wri.patch
URL: http://www.sane-project.org
@ -190,6 +192,7 @@ access image acquisition devices available on the local host.
%patch1 -p1 -b .soname
%patch2 -p1 -b .sane-config-multilib
%patch3 -p1 -b .saned-manpage
%patch4 -p1 -b .genesys-regression
%build
CFLAGS="%optflags -fno-strict-aliasing"
@ -448,8 +451,9 @@ exit 0
%{_unitdir}/saned@.service
%changelog
* Mon Oct 14 2019 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.28-2
* Thu Oct 17 2019 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.28-2
- 1761145, 1761001, 1761051, 1761234 - genesys backend now needs gcc-c++, it is not built otherwise
- 1758886 - CanoScan LiDE scanners supported by genesys backend are not detected
* Mon Sep 30 2019 Zdenek Dohnal <zdohnal@redhat.com> - 1.0.28-1
- 1.0.28