Bug 56715

Summary: AES2501 driver improvements
Product: libfprint Reporter: Vasily Khoruzhick <anarsoul>
Component: libfprintAssignee: libfprint-bugs
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: 0001-AES2501-wait-for-3-empty-frames-to-stop-scan.patch
0002-AES2501-improve-image-contrast.patch
0003-AES2501-Update-copyright-line.patch

Description Vasily Khoruzhick 2012-11-03 13:20:18 UTC
AES2501 driver needs some image improvements:

* image contrast is not as good as on AES2550
* driver stops scan immediately after empty frame was received, but sometimes we get empty frames in the middle of scan
Comment 1 Vasily Khoruzhick 2012-11-03 13:21:05 UTC
Created attachment 69484 [details] [review]
0001-AES2501-wait-for-3-empty-frames-to-stop-scan.patch
Comment 2 Vasily Khoruzhick 2012-11-03 13:21:26 UTC
Created attachment 69485 [details] [review]
0002-AES2501-improve-image-contrast.patch
Comment 3 Vasily Khoruzhick 2012-11-03 13:33:48 UTC
Created attachment 69487 [details] [review]
0003-AES2501-Update-copyright-line.patch

Not an improvement, but AES2501-related
Comment 4 Bastien Nocera 2012-11-05 18:40:04 UTC
Comment on attachment 69484 [details] [review]
0001-AES2501-wait-for-3-empty-frames-to-stop-scan.patch

Review of attachment 69484 [details] [review]:
-----------------------------------------------------------------

Looks good.
Comment 5 Bastien Nocera 2012-11-05 18:41:18 UTC
Comment on attachment 69485 [details] [review]
0002-AES2501-improve-image-contrast.patch

Review of attachment 69485 [details] [review]:
-----------------------------------------------------------------

Looks good.
Comment 6 Bastien Nocera 2012-11-05 18:43:18 UTC
Comment on attachment 69487 [details] [review]
0003-AES2501-Update-copyright-line.patch

Review of attachment 69487 [details] [review]:
-----------------------------------------------------------------

Looks good otherwise.

::: libfprint/drivers/aes2501.c
@@ +2,4 @@
>   * AuthenTec AES2501 driver for libfprint
>   * Copyright (C) 2007-2008 Daniel Drake <dsd@gentoo.org>
>   * Copyright (C) 2007 Cyrille Bagard
> + * Copyright (C) 2007-2012 Vasily Khoruzhick <anarsoul@gmail.com>

You didn't touch the driver between 2007 and 2012, so it should be:
Copyright (C) 2007, 2012 Vasily Khoruzhick <anarsoul@gmail.com>
instead.
Comment 7 Vasily Khoruzhick 2012-11-05 18:51:32 UTC
(In reply to comment #6)

> You didn't touch the driver between 2007 and 2012, so it should be:
> Copyright (C) 2007, 2012 Vasily Khoruzhick <anarsoul@gmail.com>
> instead.

There was one patch in 2008, see 40e7ac195a4be0e6951b7a8b0388bdbc88cfc8d7
So I think 2007-2008, 2012 would be fair
Comment 8 Bastien Nocera 2012-11-05 18:53:28 UTC
commit fecf6d6fe5d17f4d0cb5cc8e19d0f51c58fcc712
Author: Vasily Khoruzhick <anarsoul@gmail.com>
Date:   Sat Nov 3 16:29:51 2012 +0300

    aes2501: Update copyright line
    
    https://bugs.freedesktop.org/show_bug.cgi?id=56715

commit e32fa8cc3825a6ce5db558094e81134d433293e3
Author: Vasily Khoruzhick <anarsoul@gmail.com>
Date:   Sat Nov 3 16:13:05 2012 +0300

    aes2501: Improve image contrast
    
    When scanning, check the histogram sum, and increase the
    ADREFHI register value if the sum is too low, or decrease
    it if it's too high.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=56715

commit d8aae30a672485de747e5a58ff7520128b718515
Author: Vasily Khoruzhick <anarsoul@gmail.com>
Date:   Sat Nov 3 16:08:04 2012 +0300

    aes2501: Harden against low finger pressure
    
    Wait for 3 empty frames before stopping the scan
    
    The driver used to stop the scan immediately after an empty frame
    (by checking for hist sum == 0), but it is possible to get empty
    frames in the middle of the scan due to low finger pressure.
    Waiting for 3 empty frames stop the driver wrongly aborting the scan
    too early.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=56715
Comment 9 Bastien Nocera 2012-11-05 18:53:53 UTC
commit 9e10edd422e5130e210e17d90c5db9135029f165
Author: Bastien Nocera <hadess@hadess.net>
Date:   Mon Nov 5 19:52:46 2012 +0100

    aes2501: Add year 2008 to the copyright.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=56715#c7

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.