[sane-devel] Restore support WorkCentre 3510 (may be 3520) in sane-backend-1.0.27

ABC abc at telekom.ru
Thu Aug 10 15:50:26 UTC 2017


Youry,

That code was submitted by SAMSUNG developer(s). I will forward your
email to them.

-abc


On Wed, Aug 09, 2017 at 01:42:45AM +0300, Youry Metlitsky wrote:
> 
> On WorkCentre 3515 dev->compressionTypes is 0x51 and (dev->compressionTypes & (1 << 6)) is true.
> On WorkCentre 3510 dev->compressionTypes is 0x41, but this device don't support jpeg - this is error!
> 
> -- 
> With best regards

> diff -Nurp sane-backends-1.0.27-old/backend/xerox_mfp.c sane-backends-1.0.27/backend/xerox_mfp.c
> --- sane-backends-1.0.27-old/backend/xerox_mfp.c	2017-03-19 02:19:04.000000000 +0300
> +++ sane-backends-1.0.27/backend/xerox_mfp.c	2017-08-09 01:31:56.117414319 +0300
> @@ -206,7 +206,7 @@ static int isSupportedDevice(struct devi
>  {
>  #ifdef HAVE_LIBJPEG
>      /* Checking device which supports JPEG Lossy compression for color scanning*/
> -    if (dev->compressionTypes & (1 << 6))
> +    if ((dev->compressionTypes & 0x50) == 0x50)
>          return 1;
>      else
>          return 0;

> -- 
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request at lists.alioth.debian.org




More information about the sane-devel mailing list