commit 4d9d166a3ae830c62bb7341efe886c99e614199a
Author: Nils Philippsen <nils@redhat.com>
Date: Tue Dec 29 11:43:24 2009 +0100
patch: genesys-gl841-registers
Squashed commit of the following:
commit 8bb82ba231bec01377e28a4f7f635dca61c34fbb
Author: Pierre Willenbrock <pierre@pirsoft.dnsalias.org>
Date: Wed Jun 3 00:16:16 2009 +0200
Always send registers before trying to acquire a line
(cherry picked from commit a0ea955e91837156d2112c0ffd12c8afebe86efa)
Signed-off-by: Nils Philippsen <nils@redhat.com>
Resolves: rhbz#527935
diff --git a/backend/genesys_gl841.c b/backend/genesys_gl841.c
index 2810865..c9facc4 100644
--- a/backend/genesys_gl841.c
+++ b/backend/genesys_gl841.c
@@ -4948,9 +4948,6 @@ gl841_offset_calibration (Genesys_Device * dev)
return status;
}
- RIE (gl841_bulk_write_register
- (dev, dev->calib_reg, GENESYS_GL841_MAX_REGS));
-
used_res = dev->current_setup.xres;
num_pixels = dev->current_setup.pixels;
@@ -4999,6 +4996,9 @@ gl841_offset_calibration (Genesys_Device * dev)
do {
+ RIE (gl841_bulk_write_register
+ (dev, dev->calib_reg, GENESYS_GL841_MAX_REGS));
+
for (j=0; j < channels; j++) {
off[j] = (offh[j]+offl[j])/2;
dev->frontend.offset[j] = off[j];