kopia lustrzana https://gitlab.com/sane-project/backends
add missing cases for CCD_PLUSTEK3800
rodzic
b4633c8121
commit
2812e1f81a
|
@ -927,6 +927,7 @@ genesys_send_offset_and_shading (Genesys_Device * dev, uint8_t * data,
|
||||||
* tested instead of adding all the others */
|
* tested instead of adding all the others */
|
||||||
/* many scanners send coefficient for lineart/gray like in color mode */
|
/* many scanners send coefficient for lineart/gray like in color mode */
|
||||||
if (dev->settings.scan_mode < 2
|
if (dev->settings.scan_mode < 2
|
||||||
|
&& dev->model->ccd_type != CCD_PLUSTEK3800
|
||||||
&& dev->model->ccd_type != CCD_KVSS080
|
&& dev->model->ccd_type != CCD_KVSS080
|
||||||
&& dev->model->ccd_type != CCD_G4050
|
&& dev->model->ccd_type != CCD_G4050
|
||||||
&& dev->model->ccd_type != CCD_CS4400F
|
&& dev->model->ccd_type != CCD_CS4400F
|
||||||
|
@ -2996,6 +2997,7 @@ genesys_send_shading_coefficient (Genesys_Device * dev)
|
||||||
target_code);
|
target_code);
|
||||||
break;
|
break;
|
||||||
case CCD_KVSS080:
|
case CCD_KVSS080:
|
||||||
|
case CCD_PLUSTEK3800:
|
||||||
case CCD_G4050:
|
case CCD_G4050:
|
||||||
case CCD_CS4400F:
|
case CCD_CS4400F:
|
||||||
case CCD_CS8400F:
|
case CCD_CS8400F:
|
||||||
|
@ -5215,7 +5217,7 @@ calc_parameters (Genesys_Scanner * s)
|
||||||
((br_x - tl_x) * resolution) / MM_PER_INCH;
|
((br_x - tl_x) * resolution) / MM_PER_INCH;
|
||||||
|
|
||||||
/* we need an even pixels number
|
/* we need an even pixels number
|
||||||
* TODO invert test logic or generalize behaviour acroos all ASICs */
|
* TODO invert test logic or generalize behaviour across all ASICs */
|
||||||
if ((s->dev->model->flags & GENESYS_FLAG_SIS_SENSOR)
|
if ((s->dev->model->flags & GENESYS_FLAG_SIS_SENSOR)
|
||||||
|| s->dev->model->asic_type == GENESYS_GL847
|
|| s->dev->model->asic_type == GENESYS_GL847
|
||||||
|| s->dev->model->asic_type == GENESYS_GL124
|
|| s->dev->model->asic_type == GENESYS_GL124
|
||||||
|
@ -6904,6 +6906,8 @@ sane_close (SANE_Handle handle)
|
||||||
/* we need this to avoid ASIC getting stuck
|
/* we need this to avoid ASIC getting stuck
|
||||||
* in bulk writes */
|
* in bulk writes */
|
||||||
if(s->dev->model->asic_type==GENESYS_GL847
|
if(s->dev->model->asic_type==GENESYS_GL847
|
||||||
|
||s->dev->model->asic_type==GENESYS_GL845
|
||||||
|
||s->dev->model->asic_type==GENESYS_GL845
|
||||||
||s->dev->model->asic_type==GENESYS_GL843)
|
||s->dev->model->asic_type==GENESYS_GL843)
|
||||||
sanei_usb_reset (s->dev->dn);
|
sanei_usb_reset (s->dev->dn);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue