[sane-devel] [SOLVED] phaser 6110MFP, no color mode
Boris Samorodov
bsam at ipt.ru
Sat Apr 2 21:17:56 UTC 2011
Hi List,
On Sat, 02 Apr 2011 11:16:54 +0400 Boris Samorodov wrote:
> I've got a used Xerox Phaser 6110MFP. Color mode is not functionning
> as expected: color mode produces a greyscale image, Gray and Lineart
> mode produces 1bit color image.
Seems to be a bug at backend/xerox_mfp.c. The folowing patch fixes
the problem for me:
-----
--- backend/xerox_mfp.c.orig 2010-04-05 17:18:05.000000000 +0400
+++ backend/xerox_mfp.c 2011-04-03 00:42:29.000000000 +0400
@@ -392,7 +392,7 @@
};
static int scan_mode_to_code[] = {
- 0x00, 0x01, 0x03, 0x05
+ 0x01, 0x03, 0x05, 0x00
};
static SANE_Range threshold = {
-----
Indeed we have:
-----
static SANE_String_Const scan_modes[] = {
SANE_VALUE_SCAN_MODE_LINEART,
SANE_VALUE_SCAN_MODE_GRAY,
SANE_VALUE_SCAN_MODE_COLOR,
NULL
};
-----
But at function fix_window() we convert mode to code:
-----
dev->composition = scan_mode_to_code[string_match_index(scan_modes, dev->val[OPT_MODE].s)];
-----
--
WBR, bsam
More information about the sane-devel
mailing list