Wykres commitów

7059 Commity (1b1b0b9a78236c97cba33d678db302e7a0a45ca6)

Autor SHA1 Wiadomość Data
Mike Kelly 1b1b0b9a78 Fixed flipping duplexer initialization
For scanners which potentially have flipping duplexers, only enable
duplexing if there is an ADF present.  This leads to the next problem, that
the flipping duplexers (present only on the HP 8200 series AFAIK) don't
always seem to be properly configured when powered up.  To solve this some
magical values are written to magical memory locations, and some more
magical status is read back, causing an apparent firmware reset which
blocks communication for a short period of time.  See adf_reset() for
details.
2011-01-29 11:50:11 +09:00
Mike Kelly 12924236c6 Enable firmware reading for some scanners.
Sometimes scanners like to have their firmware read to cause them to
function properly.
2011-01-29 11:50:10 +09:00
Mike Kelly 1b1df46e41 Add feature type for flipping duplexing ADF units
Added the AV_ADF_FLIPPING_DUPLEX flag to activate the flipping duplex code
only for models known to have such duplexing ADFs.  Prior to this a doubious
huristic was used to guess when the hardware had a flipping duplex unit.
2011-01-29 11:50:09 +09:00
Mike Kelly 1904dad962 Removed additional_probe gatekeeper variable
The additional_probe variable protected add_source_mode() and
add_color_mode() from being entered upon subsequent calls.  These functions
were patched to not insert duplicate records in this case, removing the
need for the gatekeeper variable.
2011-01-29 11:50:08 +09:00
Mike Kelly 4d38523bda Return copied values in sane_get_parameters()
Until now the code has been changing the frontend supplied pointer to point
to our internal data structure.  There are two problems with this.  It
orphans the data previously associated with that pointer, which causes a
memory leak.  It also gives the frontend the ability to munge our internal
data structure.

The only downside to this change is the possibility that a frontend took the
spec too literally and merely supplies a pointer but does not allocate
storage space for the result.  Technically, the spec is a bit vague on this
point, because it does not specifically state who should allocate the
structure, but I feel a reasonable programmer would guess that space
allocation is a frontend obligation.
2011-01-29 11:50:07 +09:00
Mike Kelly 64caf38683 Don't compute parameters twice (in a row)
Removed a redundant call to compute parameters.  This function is called
from within the last function call, no need to call it again.
2011-01-29 11:50:06 +09:00
Mike Kelly b45400222d Added paper-length option to prevent double feeds
There was an old TODO in the code which suggests creating an option for using
the paper_length field to detect double feeds in the ADF.  I've added it as
an option, but set the default to not use it since it might cause older
scanners to get confused.
2011-01-29 11:50:05 +09:00
Mike Kelly 42cdb00aa1 Added a Misc option group to hold misc features
I felt that the ehancements group was doing double duity for image tuning and
other more hardware related options.  This new group takes ownership of those.
I'm not happy with the name, but that can always be changed.
2011-01-29 11:50:04 +09:00
Mike Kelly d48f749cae Fixed debug level for a single message
There is no reason that this message needs to be triggered at 100 when
everything else only goes to 9.
2011-01-29 11:50:03 +09:00
Mike Kelly 1bc4003b6c Whitespace changes. 2011-01-29 11:50:02 +09:00
Mike Kelly a230ee3ae2 Fixed spelling and grammar 2011-01-29 11:50:01 +09:00
Mike Kelly 260e86397f Updated copyright because it's 2011! 2011-01-29 11:50:00 +09:00
m. allan noah c78f416175 canon_dr backend v37:
- don't center window when using flatbed
- improve request sense error messages
- enable flatbed for all known models
- ad usb ids for DR-6030C, CR-135i & CR-190i
- moved DR-2020U to unsupported.desc
2011-01-26 22:05:02 -05:00
m. allan noah e237abad17 hopefully enable flatbed support 2011-01-26 22:05:02 -05:00
Reinhold Kainhofer e7532c03c5 magicolor: Get rid of the byteorder macros, copy the bytes manually to/from little endian
This also fixes some compiler error on 64-bit systems
2011-01-25 21:25:00 +01:00
Reinhold Kainhofer f054a4e8ee magicolor: cast size_t arguments to unsigned long for debug output and use the %lu format 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer 2d9f458992 magicolor: Get rid of compiler warning 2011-01-20 21:23:51 +01:00
Reinhold Kainhofer a3cf04dd9b Apparently, autoreconf on the server somehow missed the HAVE_LIBSNMP variable... 2011-01-20 18:51:26 +01:00
Stéphane Voltz 0e2432be53 HP2400/G2410 support progress 2011-01-20 06:59:17 +01:00
m. allan noah 70da6167cc Disable automatic RIF of binary modes on DR-5060F 2011-01-19 08:42:05 -05:00
m. allan noah 40e40989d9 rebuild autofoo for magicolor and snmp support 2011-01-18 21:31:13 -05:00
m. allan noah 39ae267f06 improved scsi scanner detection 2011-01-18 10:46:33 -05:00
m. allan noah e3a1fa1088 Changelog entry for recent updates 2011-01-18 10:30:03 -05:00
m. allan noah 09662f0792 updated german translation from Matthias Mailander 2011-01-18 10:17:46 -05:00
m. allan noah 8a1a22e6ad updated polish translation from Jakub Bogusz 2011-01-18 10:14:09 -05:00
m. allan noah 5aa48d8b17 update credits 2011-01-18 10:08:38 -05:00
m. allan noah a52a72a260 initial support for DR-7090C 2011-01-18 10:08:38 -05:00
m. allan noah 6130047b10 canon_dr backend v36
- initial support for DR-3080 and DR-5060
- add code to clamp scan width to an arbitrary byte width boundary
- add code to prevent setting of brightness/threshold/contrast
- don't send dropout color command on non-color scanners
2011-01-18 10:08:38 -05:00
Stéphane Voltz d5850b4991 add DSmobile variant 2011-01-17 21:31:03 +01:00
Reinhold Kainhofer 6a7888ef26 New backend: magicolor (for KONICA MINOLTA magicolor devices)
-) LAN and USB communication
-) SNMP LAN auto-detection (using libsnmp, added configure check!)
-) Based on the epson2 backend, with many structural changes
-) B/W, Gray, Color scanning works in 150/300/600dpi (full-page
   color scan only possible with <=300dpi)

-) The timeouts (SNMP, scan data, other data) are configurable in the
   magicolor.conf file

-) Keeps list of known scanners in sane_get_devices, does not destroy
   existing handles; Also correctly calls sanei_usb_init.
2011-01-15 22:10:34 +01:00
Reinhold Kainhofer d0097b0752 Fix already-defined compiler warnings by adding some #ifndef in m4/byteorder.m4 2011-01-15 21:41:06 +01:00
Reinhold Kainhofer 6dc2a7d03a Add some sanity checks 2011-01-15 21:41:06 +01:00
Reinhold Kainhofer 039f21aaf8 Add function to set USB endpoints to use
Added
 void sanei_usb_set_endpoint (SANE_Int dn, SANE_Int ep_type, SANE_Int ep);

This function allows the user to set the endpoint to use on
the given device for the given endpoint type (e.g. bulk in).
Some scanners have multiple bulk in/out endpoints but use
only one for communication (not the one detected during auto-detection),
so one call to the new function will change the used endpoint.
Some scanners use two different endpoint for different purposes,
so in that case each read/write call needs to be preceeded
by a call to that function to set the proper endpoint.

ep_type is a bitmask and is usually of the form
    (USB_DIR_IN|USB_ENDPOINT_TYPE_BULK)
2011-01-15 21:40:55 +01:00
Stéphane Voltz 819010f44e entry for genesys backend change 2011-01-13 22:31:58 +01:00
Stéphane Voltz 3674a7d4ef description update for LiDE 110/210 2011-01-13 22:29:41 +01:00
Stéphane Voltz ded946b70d exposure calibration cache fix 2011-01-13 22:27:26 +01:00
Stéphane Voltz 53e28b3cd1 working 2400 dpi mode for LiDE 110 2011-01-13 22:08:31 +01:00
Stéphane Voltz 93998d5fe3 entry for genesys fixes 2011-01-12 20:56:35 +01:00
Stéphane Voltz 1e3956b5a5 disable 2400 dpi scanning since it isn't ready 2011-01-12 20:52:57 +01:00
Stéphane Voltz 1f82a765d4 add a wait for head to park function for genesys based scanners 2011-01-12 20:51:32 +01:00
Stéphane Voltz 4da932ad57 2400 dpi for LiDE 110/210 2011-01-11 06:26:41 +01:00
Stéphane Voltz 922a22e308 entry for genesys fixes 2011-01-09 17:24:18 +01:00
Stéphane Voltz 6e77181966 genesys fixes
- wait for head ot park before leaving in sane_close()
- fix lineart bug when yres is hegher than xres and dynamic lineart is
  enabled
2011-01-09 17:18:42 +01:00
Stéphane Voltz 3e5ecd012a genesys fixes
- fix shading calibration for non gl847/gl124 scanners
- enable 16 bit gamma for gl847
- add MUST_WAIT flags to gl847 scanners so solve parking isues
2011-01-07 06:08:15 +01:00
Nicolas Martin e72c0f548e pixma: Added patch proposed by Klaus Stengel for Canon imageRunner 1020/1024/1025 support.
modified:   ChangeLog
	modified:   backend/pixma_mp730.c
2011-01-05 21:30:11 +01:00
Nicolas Martin 68c15af1b2 pixma: several updates for MP830, MP990, memmove bug fix, and 64 bits image size.
modified:   ChangeLog
	modified:   backend/pixma.c
	modified:   backend/pixma.h
	modified:   backend/pixma_common.c
	modified:   backend/pixma_common.h
	modified:   backend/pixma_mp150.c
2011-01-04 22:19:52 +01:00
Nicolas Martin 529673f220 Merge branch 'master' of ssh://git.debian.org/git/sane/sane-backends 2011-01-04 22:12:27 +01:00
Stéphane Voltz 972f686739 entry for gl124 fixes 2011-01-04 21:42:10 +01:00
Stéphane Voltz 6cfbb6d09e Merge branch 'gl124' 2011-01-04 21:40:10 +01:00
Stéphane Voltz 8fb58d5118 fix lineart issue at 1200 dpi and clean up block read for gl124 2011-01-04 21:37:41 +01:00