Yes- what we should probably do is add a new set of sanei_usb_{read,write,etc}_extended() functions, which take the endpoint as a argument. Then all of the existing functions could become a wrapper around those, which call a helper function to determine the 'automatic' endpoint to use.
Thanks for looking into this- I'm not sure if anyone else has had the time.... allan On Sun, Oct 31, 2010 at 1:24 PM, Reinhold Kainhofer <reinhold at kainhofer.com> wrote: > My KONICA MINOLTA magicolor 1690mf has one bulk-out endpoint and unfortunately > two bulk-in endpoints (#4 and #5, where it only uses #5 for all > communication). SANE on the other hand chooses to only use the first bulk-in > endpoint (i.e. #4 in my case), which will not work. > > There were some discussions a while ago to make that more configurable (i.e. > make it work with such devices), but no code went in and no concrete > proposals/suggestions how it should be done were made. In particular, see: > > http://lists.alioth.debian.org/pipermail/sane-devel/2009-March/024266.html > http://lists.alioth.debian.org/pipermail/sane-devel/2007-July/019608.html > http://lists.alioth.debian.org/pipermail/sane-devel/2006-September/017722.html > http://lists.alioth.debian.org/pipermail/sane-devel/2006-December/018173.html > > > So, since I need this functionality to get the magicolor 1690mf working with > the magicolor backend, I'll have to tackle that problem. > > What would you think is the best approach to letting sanei_usb_open select > which of the endpoints to use? > > Cheers, > Reinhold > > -- > ------------------------------------------------------------------ > Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/ > ?* Financial & Actuarial Math., Vienna Univ. of Technology, Austria > ?* http://www.fam.tuwien.ac.at/, DVR: 0005886 > ?* LilyPond, Music typesetting, http://www.lilypond.org > > -- > sane-devel mailing list: sane-devel at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/sane-devel > Unsubscribe: Send mail with subject "unsubscribe your_password" > ? ? ? ? ? ? to sane-devel-request at lists.alioth.debian.org > -- "The truth is an offense, but not a sin"