[fprint] libfprint examples are broken for ages?

Paul Sokolovsky pmiscml at gmail.com
Sat May 4 07:12:37 PDT 2013


Hello,

I'd like to to help with testing recently posted AES3500 patch.

Running img_capture example (output filtered):

--------
$ sudo ./examples/img_capture
supports USB device 08ff:5731 Found device claimed by AuthenTec AES3500
Opened device. It's now time to scan your finger.

image capture failed, code -95
sync:debug [fp_dev_close] 
--------

$ git blame core.c 
--------
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 840) API_EXPORTED int fp_dev_img_capture(struct fp_dev *dev, int unconditional,
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 841)    struct fp_img **image)
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 842) {
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 843)    struct fp_img_dev *imgdev = dev_to_img_dev(dev);
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 844)    if (!imgdev) {
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 845)            fp_dbg("image capture on non-imaging device");
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 846)            return -ENOTSUP;
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 847)    }
7e6f2590 (Daniel Drake        2007-11-02 17:04:19 +0000 848) 
3048b371 (Daniel Drake        2008-02-10 18:35:01 +0000 849)    //return fpi_imgdev_capture(imgdev, unconditional, image);
3048b371 (Daniel Drake        2008-02-10 18:35:01 +0000 850)    /* FIXME reimplement async */
3048b371 (Daniel Drake        2008-02-10 18:35:01 +0000 851)    return -ENOTSUP;


I.e. 2008, fp_dev_img_capture() was made unconditionally return
-ENOTSUP. fpi_imgdev_capture() is declared in fp_internal.h but
implementation not available. Thus, basic libfprint tests - capturing
fingerprint images - appear to be broken for 5 years. Am I missing
something?


Thanks,
 Paul                          mailto:pmiscml at gmail.com


More information about the fprint mailing list