kopia lustrzana https://gitlab.com/sane-project/backends
Minor debug message updates. Fixed a little bug in sane_control_option (gamma
control). Removed the signal blocking again. That only hides the segfault in sanei_scsi. Check if there are documents in ADF for Paragon 2. Otherwise return error. Fix some minor issues in reading the config file.merge-requests/1/head
rodzic
35391a21a3
commit
8d9c13ed82
11
ChangeLog
11
ChangeLog
|
@ -1,4 +1,13 @@
|
||||||
2003-02-11 Peter Fales <peter@fales-lorenz.net>
|
2003-03-07 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||||
|
|
||||||
|
* backend/mustek.c doc/descriptions/mustek.desc
|
||||||
|
doc/mustek/mustek.CHANGES: Minor debug message updates. Fixed a
|
||||||
|
little bug in sane_control_option (gamma control). Removed the
|
||||||
|
signal blocking again. That only hides the segfault in sanei_scsi.
|
||||||
|
Check if there are documents in ADF for Paragon 2. Otherwise return
|
||||||
|
error. Fix some minor issues in reading the config file.
|
||||||
|
|
||||||
|
2003-03-07 Peter Fales <peter@fales-lorenz.net>
|
||||||
|
|
||||||
* doc/descriptions/dc210.desc, doc/descriptions/dc240.desc:
|
* doc/descriptions/dc210.desc, doc/descriptions/dc240.desc:
|
||||||
Fix broken URLs to the Kodak web pages
|
Fix broken URLs to the Kodak web pages
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* sane - Scanner Access Now Easy.
|
/* sane - Scanner Access Now Easy.
|
||||||
Copyright (C) 1996, 1997 David Mosberger-Tang and Andreas Czechanowski,
|
Copyright (C) 1996, 1997 David Mosberger-Tang and Andreas Czechanowski,
|
||||||
1998 Andreas Bolsch for extension to ScanExpress models version 0.6,
|
1998 Andreas Bolsch for extension to ScanExpress models version 0.6,
|
||||||
2000-2002 Henning Meier-Geinitz.
|
2000-2003 Henning Meier-Geinitz.
|
||||||
This file is part of the SANE package.
|
This file is part of the SANE package.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/* Mustek backend version */
|
/* Mustek backend version */
|
||||||
#define BUILD 131
|
#define BUILD 132
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
|
|
||||||
#include "../include/sane/config.h"
|
#include "../include/sane/config.h"
|
||||||
|
@ -786,6 +786,31 @@ inquiry (Mustek_Scanner * s)
|
||||||
return SANE_STATUS_GOOD;
|
return SANE_STATUS_GOOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SANE_Status
|
||||||
|
paragon_2_get_adf_status (Mustek_Scanner * s)
|
||||||
|
{
|
||||||
|
SANE_Status status;
|
||||||
|
size_t len;
|
||||||
|
SANE_Byte sense_buffer[4];
|
||||||
|
|
||||||
|
len = sizeof (sense_buffer);
|
||||||
|
|
||||||
|
status = sanei_scsi_cmd (s->fd, scsi_request_sense,
|
||||||
|
sizeof (scsi_request_sense), sense_buffer, &len);
|
||||||
|
if (status != SANE_STATUS_GOOD)
|
||||||
|
{
|
||||||
|
DBG (1, "paragon_2_get_adf_status: %s\n", sane_strstatus (status));
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
DBG (5, "paragon_2_get_adf_status: sense_buffer: %x %x %x %x\n", sense_buffer[0],
|
||||||
|
sense_buffer[1], sense_buffer[3], sense_buffer[3]);
|
||||||
|
|
||||||
|
if (sense_buffer[0] == 0x00 && sense_buffer[1] == 0x00)
|
||||||
|
return SANE_STATUS_GOOD;
|
||||||
|
|
||||||
|
return SANE_STATUS_NO_DOCS;
|
||||||
|
}
|
||||||
|
|
||||||
static SANE_Bool
|
static SANE_Bool
|
||||||
ta_available_pro (Mustek_Scanner * s)
|
ta_available_pro (Mustek_Scanner * s)
|
||||||
{
|
{
|
||||||
|
@ -4687,8 +4712,9 @@ output_data (Mustek_Scanner * s, FILE * fp,
|
||||||
static RETSIGTYPE
|
static RETSIGTYPE
|
||||||
sigterm_handler (int signal)
|
sigterm_handler (int signal)
|
||||||
{
|
{
|
||||||
|
DBG (5, "sigterm_handler: started, signal is %d, starting sanei_scsi_req_flush_all()\n", signal);
|
||||||
sanei_scsi_req_flush_all (); /* flush SCSI queue */
|
sanei_scsi_req_flush_all (); /* flush SCSI queue */
|
||||||
DBG (5, "sigterm_handler: signal %d\n", signal);
|
DBG (5, "sigterm_handler: sanei_scsi_req_flush_all() finisheshed, _exiting()\n");
|
||||||
_exit (SANE_STATUS_GOOD);
|
_exit (SANE_STATUS_GOOD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4853,9 +4879,7 @@ reader_process (Mustek_Scanner * s, SANE_Int fd)
|
||||||
{
|
{
|
||||||
DBG (4, "reader_process: buffer %d: waiting for request to be "
|
DBG (4, "reader_process: buffer %d: waiting for request to be "
|
||||||
"ready\n", buffernumber + 1);
|
"ready\n", buffernumber + 1);
|
||||||
sigprocmask (SIG_BLOCK, &sigterm_set, 0);
|
|
||||||
status = dev_req_wait (bstat[buffernumber].id);
|
status = dev_req_wait (bstat[buffernumber].id);
|
||||||
sigprocmask (SIG_UNBLOCK, &sigterm_set, 0);
|
|
||||||
if (status == SANE_STATUS_GOOD)
|
if (status == SANE_STATUS_GOOD)
|
||||||
{
|
{
|
||||||
DBG (4, "reader_process: buffer %d is ready, wanted %d, "
|
DBG (4, "reader_process: buffer %d is ready, wanted %d, "
|
||||||
|
@ -5245,7 +5269,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
||||||
|
|
||||||
if (end == word)
|
if (end == word)
|
||||||
{
|
{
|
||||||
DBG (3, "sane-init: config file line %d:: buffersize must "
|
DBG (3, "sane-init: config file line %d: buffersize must "
|
||||||
"have a parameter; using default (%d kb)\n",
|
"have a parameter; using default (%d kb)\n",
|
||||||
linenumber, new_dev[new_dev_len - 1]->max_buffer_size);
|
linenumber, new_dev[new_dev_len - 1]->max_buffer_size);
|
||||||
}
|
}
|
||||||
|
@ -5328,7 +5352,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG (3, "sane_init: config file line %d: ignoring unknown "
|
DBG (3, "sane_init: config file line %d: ignoring unknown "
|
||||||
"option `%s'\n", linenumber, cp);
|
"option `%s'\n", linenumber, word);
|
||||||
if (word)
|
if (word)
|
||||||
free (word);
|
free (word);
|
||||||
word = 0;
|
word = 0;
|
||||||
|
@ -5739,7 +5763,7 @@ sane_control_option (SANE_Handle handle, SANE_Int option,
|
||||||
s->opt[OPT_GAMMA_VECTOR_G].cap &= ~SANE_CAP_INACTIVE;
|
s->opt[OPT_GAMMA_VECTOR_G].cap &= ~SANE_CAP_INACTIVE;
|
||||||
s->opt[OPT_GAMMA_VECTOR_B].cap &= ~SANE_CAP_INACTIVE;
|
s->opt[OPT_GAMMA_VECTOR_B].cap &= ~SANE_CAP_INACTIVE;
|
||||||
}
|
}
|
||||||
else if ((strcmp (val, "Lineart") == 0)
|
else if ((strcmp (mode, "Lineart") == 0)
|
||||||
&& (s->hw->flags & MUSTEK_FLAG_PRO))
|
&& (s->hw->flags & MUSTEK_FLAG_PRO))
|
||||||
{
|
{
|
||||||
s->opt[OPT_GAMMA_VECTOR].cap &= ~SANE_CAP_INACTIVE;
|
s->opt[OPT_GAMMA_VECTOR].cap &= ~SANE_CAP_INACTIVE;
|
||||||
|
@ -6299,6 +6323,14 @@ sane_start (SANE_Handle handle)
|
||||||
&s->params.lines);
|
&s->params.lines);
|
||||||
if (status != SANE_STATUS_GOOD)
|
if (status != SANE_STATUS_GOOD)
|
||||||
goto stop_scanner_and_return;
|
goto stop_scanner_and_return;
|
||||||
|
|
||||||
|
if ((strcmp (s->val[OPT_SOURCE].s, "Automatic Document Feeder") == 0)
|
||||||
|
&& (s->hw->flags & MUSTEK_FLAG_PARAGON_2))
|
||||||
|
{
|
||||||
|
status = paragon_2_get_adf_status (s);
|
||||||
|
if (status != SANE_STATUS_GOOD)
|
||||||
|
goto stop_scanner_and_return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
s->params.pixels_per_line = s->params.bytes_per_line;
|
s->params.pixels_per_line = s->params.bytes_per_line;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
:backend "mustek" ; name of backend
|
:backend "mustek" ; name of backend
|
||||||
:version "1.0-131" ; version of backend
|
:version "1.0-132" ; version of backend
|
||||||
:status :stable ; :alpha, :beta, :stable, :new
|
:status :stable ; :alpha, :beta, :stable, :new
|
||||||
:manpage "sane-mustek" ; name of manpage (if it exists)
|
:manpage "sane-mustek" ; name of manpage (if it exists)
|
||||||
:url "http://www.meier-geinitz.de/sane/mustek-backend/"
|
:url "http://www.meier-geinitz.de/sane/mustek-backend/"
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
CHANGES for the SANE Mustek backend
|
CHANGES for the SANE Mustek backend
|
||||||
|
|
||||||
|
2003-03-07
|
||||||
|
* Released Mustek backend 1.0-132
|
||||||
|
|
||||||
|
2003-03-07
|
||||||
|
* Minor debug message updates.
|
||||||
|
|
||||||
|
2003-02-27
|
||||||
|
* Fixed a little bug in sane_control_option (gamma control).
|
||||||
|
* Removed the signal blocking again. That only hides the segfault in sanei_scsi.
|
||||||
|
* Check if there are documents in ADF for Paragon 2. Otherwise return error.
|
||||||
|
|
||||||
|
2003-02-25
|
||||||
|
* Fix some minor issues in reading the config file.
|
||||||
|
|
||||||
2003-02-22
|
2003-02-22
|
||||||
* Initialize global variables in sane_init.
|
* Initialize global variables in sane_init.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue