xerox_mfp: blacklist SCX-4500W from jpeg mode

Fix issue #315876 reported by Bernard Cafarelli
https://alioth.debian.org/tracker/?func=detail&atid=410366&aid=315876&group_id=30186
merge-requests/8/head
Alex Belkin 2018-05-18 01:31:46 +03:00
rodzic 4accdae4ed
commit 54a55700f6
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -206,9 +206,12 @@ static int isSupportedDevice(struct device __sane_unused__ *dev)
{
#ifdef HAVE_LIBJPEG
/* Checking device which supports JPEG Lossy compression for color scanning*/
if (dev->compressionTypes & (1 << 6))
if (dev->compressionTypes & (1 << 6)) {
/* blacklist malfunctioning device(s) */
if (!strncmp(dev->sane.model, "SCX-4500W", 9))
return 0;
return 1;
else
} else
return 0;
#else
return 0;