THX a lot for your feedback & tests, I'll add your patch to the pixma backend and update docs.
Nicolas Le mercredi 30 juin 2010 ? 21:15 -0500, Dan McGee a ?crit : > It behaves just like the MX330, so more or less a duplication of those > references worked for this scanner. This has been tested and used > successfully on the actual device. > > Signed-off-by: Dan McGee <dan at archlinux.org> > --- > backend/pixma_mp150.c | 7 +++++++ > doc/descriptions/pixma.desc | 6 ++++++ > doc/sane-pixma.man | 2 +- > 3 files changed, 14 insertions(+), 1 deletions(-) > > diff --git a/backend/pixma_mp150.c b/backend/pixma_mp150.c > index c9db8f3..52e038f 100644 > --- a/backend/pixma_mp150.c > +++ b/backend/pixma_mp150.c > @@ -148,6 +148,9 @@ > #define MX320_PID 0x1736 /* untested */ > #define MX330_PID 0x1737 > > +/* PIXMA 2010 vintage */ > +#define MX340_PID 0x1741 > + > /* Generation 4 */ > #define MP250_PID 0x173a > #define MP270_PID 0x173b > @@ -1214,6 +1217,7 @@ mp150_check_param (pixma_t * s, pixma_scan_param_t * sp) > s->cfg->pid == MX860_PID || > s->cfg->pid == MX320_PID || > s->cfg->pid == MX330_PID || > + s->cfg->pid == MX340_PID || > s->cfg->pid == MX7600_PID ) > && > sp->source == PIXMA_SOURCE_FLATBED) > @@ -1605,6 +1609,9 @@ const pixma_config_t pixma_mp150_devices[] = { > * Not sure if anything's going wrong here, leaving as is > DEVICE ("Canon PIXMA MX860", "MX860", MX860_PID, 2400, 638, 880, > PIXMA_CAP_CIS | PIXMA_CAP_ADFDUP),*/ > > + /* PIXMA 2010 vintage */ > + DEVICE ("Canon PIXMA MX340", "MX340", MX340_PID, 1200, 638, 1050, > PIXMA_CAP_CIS | PIXMA_CAP_ADF), > + > /* Generation 4: CIS */ > DEVICE ("Canon PIXMA MP640", "MP640", MP640_PID, 4800, 638, 877, > PIXMA_CAP_CIS), > DEVICE ("Canon PIXMA MP560", "MP560", MP560_PID, 2400, 638, 877, > PIXMA_CAP_CIS), > diff --git a/doc/descriptions/pixma.desc b/doc/descriptions/pixma.desc > index aafd88d..543d817 100644 > --- a/doc/descriptions/pixma.desc > +++ b/doc/descriptions/pixma.desc > @@ -237,6 +237,12 @@ > :status :complete > :comment "Flatbed and ADF scan. All resolutions supported (up to 1200DPI)" > > +:model "PIXMA MX340" > +:interface "USB" > +:usbid "0x04a9" "0x1741" > +:status :complete > +:comment "Flatbed and ADF scan. All resolutions supported (up to 1200DPI)" > + > :model "PIXMA MX700" > :interface "USB Ethernet" > :usbid "0x04a9" "0x1729" > diff --git a/doc/sane-pixma.man b/doc/sane-pixma.man > index a09ea9c..a026041 100644 > --- a/doc/sane-pixma.man > +++ b/doc/sane-pixma.man > @@ -27,7 +27,7 @@ PIXMA MP600, MP600R, MP610, MP620, MP630, MP640, MP710 > .br > PIXMA MP800, MP800R, MP810, MP830, MP960, MP970, MP980, MP990 > .br > -PIXMA MX300, MX310, MX330, MX700, MX850, MX860, MX7600 > +PIXMA MX300, MX310, MX330, MX340, MX700, MX850, MX860, MX7600 > .br > MultiPASS MP700, MP730, PIXMA MP750 (no grayscale) > .br