kopia lustrzana https://gitlab.com/sane-project/backends
*** empty log message ***
rodzic
2e9c025c4d
commit
36a7f44f64
|
@ -113,7 +113,7 @@ static char *scanner_str[] =
|
|||
"LinoHell", "Office2 ",
|
||||
"LinoHell", "SAPHIR2 ",
|
||||
/* "LinoHell", "SAPHIR4 ", */
|
||||
/* "Linotype", "SAPHIR4 ", */
|
||||
"Linotype", "SAPHIR4 ",
|
||||
/* "LinoHell", "OPAL ", */
|
||||
"Nikon ", "AX-210 ",
|
||||
"KYE ", "ColorPage-HR5 ",
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
/* --------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
#define BUILD 26
|
||||
#define BUILD 27
|
||||
|
||||
/* --------------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -264,8 +264,9 @@ static const SANE_Range percentage_range_100 =
|
|||
};
|
||||
|
||||
static int num_devices = 0;
|
||||
static Umax_Device *first_dev = NULL;
|
||||
static Umax_Scanner *first_handle = NULL;
|
||||
static const SANE_Device **devlist = NULL;
|
||||
static Umax_Device *first_dev = NULL;
|
||||
static Umax_Scanner *first_handle = NULL;
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ MATH-HELPERS ------------------------------- */
|
||||
|
@ -2588,6 +2589,20 @@ static void umax_correct_inquiry(Umax_Device *dev, char *vendor, char *product,
|
|||
DBG(DBG_warning,"using standard options for %s\n", product);
|
||||
}
|
||||
}
|
||||
else if (!strncmp(vendor, "Linotype ", 9))
|
||||
{
|
||||
if (!strncmp(product, "SAPHIR4 ", 8)) /* is a Powerlook III */
|
||||
{
|
||||
DBG(DBG_warning,"setting up special options for %s\n", product);
|
||||
|
||||
if (dev->calibration_width_offset == -1) /* no calibration-width-offset defined in umax.conf */
|
||||
{
|
||||
dev->calibration_width_offset = 28;
|
||||
DBG(DBG_warning," - adding calibration width offset of %d pixels\n", dev->calibration_width_offset);
|
||||
}
|
||||
/* calibration_area = image */
|
||||
}
|
||||
}
|
||||
else if (!strncmp(vendor, "ESCORT ", 7))
|
||||
{
|
||||
if (!strncmp(product, "Galleria 600S ", 14)) /* this is an Astra 600S */
|
||||
|
@ -2623,35 +2638,32 @@ static void umax_correct_inquiry(Umax_Device *dev, char *vendor, char *product,
|
|||
|
||||
static int umax_identify_scanner(Umax_Device *dev)
|
||||
{
|
||||
char vendor[9];
|
||||
char product[0x11];
|
||||
char version[5];
|
||||
char vendor[10];
|
||||
char product[0x12];
|
||||
char version[6];
|
||||
char *pp;
|
||||
|
||||
DBG(DBG_proc,"identify_scanner\n");
|
||||
umax_do_inquiry(dev); /* get inquiry */
|
||||
if (get_inquiry_periph_devtype(dev->buffer[0]) != IN_periph_devtype_scanner) { return 1; } /* no scanner */
|
||||
|
||||
get_inquiry_vendor( (char *)dev->buffer[0], vendor); vendor[8] = '\0';
|
||||
get_inquiry_product((char *)dev->buffer[0], product); product[16] = '\0';
|
||||
get_inquiry_version((char *)dev->buffer[0], version); version[4] = '\0';
|
||||
get_inquiry_vendor( (char *)dev->buffer[0], vendor); vendor[8] = ' '; vendor[9] = '\0';
|
||||
get_inquiry_product((char *)dev->buffer[0], product); product[16] = ' '; product[17] = '\0';
|
||||
get_inquiry_version((char *)dev->buffer[0], version); version[4] = ' '; version[5] = '\0';
|
||||
|
||||
pp = &vendor[8];
|
||||
vendor[8] = ' '; /* leave one blank at the end! */
|
||||
while (*(pp-1) == ' ')
|
||||
{
|
||||
*pp-- = '\0';
|
||||
}
|
||||
|
||||
pp = &product[0x10];
|
||||
product[0x10] = ' '; /* leave one blank at the end! */
|
||||
while (*(pp-1) == ' ')
|
||||
{
|
||||
*pp-- = '\0';
|
||||
}
|
||||
|
||||
pp = &version[4];
|
||||
version[4] = ' ';
|
||||
while (*pp == ' ')
|
||||
{
|
||||
*pp-- = '\0';
|
||||
|
@ -5415,7 +5427,6 @@ SANE_Status sane_init(SANE_Int *version_code, SANE_Auth_Callback authorize)
|
|||
|
||||
/* ------------------------------------------------------------ SANE EXIT ---------------------------------- */
|
||||
|
||||
static const SANE_Device **devlist = 0;
|
||||
|
||||
void sane_exit(void)
|
||||
{
|
||||
|
|
|
@ -925,7 +925,8 @@ build-25 -> build-26
|
|||
|
||||
* changed some static unsigned int to static int
|
||||
|
||||
* sane_exit does free vendor/product/version strings in device list
|
||||
* sane_exit does free devlist
|
||||
|
||||
* added some options for Powerlook 3000 - still is not completly supported
|
||||
|
||||
|
||||
|
|
|
@ -1,41 +1,17 @@
|
|||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: compiling sane aborts with error "virtual memory exhausted"
|
||||
on slackware linux with gcc. What goes wrong?
|
||||
Q: What scsi controller shall I use for UMAX scsi scanners?
|
||||
|
||||
A: The optimization set by "-O2" makes problems, try which one of the following
|
||||
calls work:
|
||||
A: The controller cards that come with UMAX scanners are very simple ones
|
||||
and I suggest not to use this cards.
|
||||
|
||||
make CFLAGS="-g -Wall -O1"
|
||||
make CFLAGS="-g -Wall -O"
|
||||
make CFLAGS="-g -Wall"
|
||||
I like the ncr53c8xx (=symbios-loigc53c8xx = lsi53c8xx) controllers because
|
||||
they are not too expensive and I had very good results with these cards.
|
||||
Especially the ncr53c810 is very interesting for scanning because this
|
||||
are fast scsi controllers which allow long scsi cables.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: Will there be a support for the UMAX-parallel-port-scanners?
|
||||
Q: Will there be a support for the UMAX-USB-scanners?
|
||||
|
||||
A: UMAX published their SCSI-protocol for scanners. However they
|
||||
have not so far published parallel port and USB protocols. Without
|
||||
the protocol documentation I will not work on a driver.
|
||||
|
||||
Martin Mevald <martinmv@penguin.cz> has worked on a parallel-port-driver
|
||||
but stopped the development.
|
||||
|
||||
The Astra 2200W does work when connected via SCSI.
|
||||
It could work with SCSI-via-USB-driver and connected via USB, but that
|
||||
is not tested.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: I get a black area at the top of the image. What's wrong?
|
||||
|
||||
A: This is a problem of some scsi-drivers.
|
||||
Update the driver for your scsi-adapter or update the operating system/kernel.
|
||||
|
||||
For advansys-scsi-cards update to a new kernel which includes at least
|
||||
the driver version 3.1E of the advansys-scsi-driver. Take a look at:
|
||||
http://www.advansys.com/linux.htm
|
||||
The Adaptec 2904 controllers seem to make problems with UMAX scanners on
|
||||
linux.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
|
@ -84,6 +60,46 @@ A: There are two differen drivers in the linux Kernel/modules.
|
|||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: I am using an AM53C974 based scsi card with a umax scanner, the system
|
||||
freezes when I start a scan, what can I do?
|
||||
|
||||
A: Try the recent driver for the scsi card, take a look at:
|
||||
http://www.garloff.de/kurt/linux/dc390/index.html
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: Will there be a support for the UMAX-parallel-port-scanners?
|
||||
|
||||
A: Since sane-1.0.5 there is a separate sane-umax-pp backend that does
|
||||
support (some) umax parallel port scanners.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: Will there be a support for the UMAX-USB-scanners?
|
||||
|
||||
A: UMAX published their SCSI-protocol for scanners. However they have not so far
|
||||
published USB protocols. This seems to be because they are using an ASIC that
|
||||
is produced by someone else and they had to subscribe an NDA.
|
||||
Without the protocol documentation it really is hard to write a driver.
|
||||
I will not work on a driver.
|
||||
|
||||
The Astra 2200W does work when connected via SCSI.
|
||||
It could work with SCSI-via-USB-driver and connected via USB, but that
|
||||
is not tested.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: I get a black area at the top of the image. What's wrong?
|
||||
|
||||
A: This is a problem of some scsi-drivers.
|
||||
Update the driver for your scsi-adapter or update the operating system/kernel.
|
||||
|
||||
For advansys-scsi-cards update to a new kernel which includes at least
|
||||
the driver version 3.1E of the advansys-scsi-driver. Take a look at:
|
||||
http://www.advansys.com/linux.htm
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: Does SANE and the umax backend work on LinuxPPC / big endian machine ?
|
||||
|
||||
A: There are people using the sane-umax on a LinuxPPC (big endian) machine.
|
||||
|
@ -96,15 +112,7 @@ A: There are people using the sane-umax on a LinuxPPC (big endian) machine.
|
|||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: I am using an AM53C974 based scsi card with a umax scanner, the system
|
||||
freezes when I start a scan, what can I do?
|
||||
|
||||
A: Try the recent driver for the scsi card, take a look at:
|
||||
http://www.garloff.de/kurt/linux/dc390/index.html
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: Sane hangs or crashes when I start a frontend for sane, what can I do?
|
||||
Q: SANE hangs or crashes when I start a frontend for sane, what can I do?
|
||||
|
||||
A: Sometimes the backends that are not used make problems.
|
||||
Edit /usr/(local)/etc/sane.d/dll.conf
|
||||
|
@ -112,6 +120,18 @@ A: Sometimes the backends that are not used make problems.
|
|||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Q: compiling sane aborts with error "virtual memory exhausted"
|
||||
on slackware linux with gcc. What goes wrong?
|
||||
|
||||
A: The optimization set by "-O2" makes problems, try which one of the following
|
||||
calls work:
|
||||
|
||||
make CFLAGS="-g -Wall -O1"
|
||||
make CFLAGS="-g -Wall -O"
|
||||
make CFLAGS="-g -Wall"
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
You find a lot of tips and informations in the internet. E.g. take a look
|
||||
at http://www.scantips.com
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue