vfs*: Fix a number of typos
This commit is contained in:
parent
76db6a5a16
commit
0400bcc85e
5 changed files with 10 additions and 10 deletions
|
@ -577,7 +577,7 @@ static void activate_ssm(fpi_ssm *ssm, struct fp_dev *_dev, void *user_data)
|
||||||
vdev->need_report = 0;
|
vdev->need_report = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Asyncronously enquire an interrupt */
|
/* Asynchronously enquire an interrupt */
|
||||||
vdev->transfer = fpi_usb_alloc();
|
vdev->transfer = fpi_usb_alloc();
|
||||||
vdev->transfer->flags |= LIBUSB_TRANSFER_FREE_TRANSFER;
|
vdev->transfer->flags |= LIBUSB_TRANSFER_FREE_TRANSFER;
|
||||||
libusb_fill_interrupt_transfer(vdev->transfer, usb_dev, 0x83,
|
libusb_fill_interrupt_transfer(vdev->transfer, usb_dev, 0x83,
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
/* Minimum image height */
|
/* Minimum image height */
|
||||||
#define VFS_IMG_MIN_HEIGHT 200
|
#define VFS_IMG_MIN_HEIGHT 200
|
||||||
|
|
||||||
/* Scan level thresold */
|
/* Scan level threshold */
|
||||||
#define VFS_IMG_SLT_BEGIN 768
|
#define VFS_IMG_SLT_BEGIN 768
|
||||||
#define VFS_IMG_SLT_END 64
|
#define VFS_IMG_SLT_END 64
|
||||||
#define VFS_IMG_SLT_LINES 4
|
#define VFS_IMG_SLT_LINES 4
|
||||||
|
@ -641,7 +641,7 @@ static int action_completed(struct fp_img_dev *dev)
|
||||||
|
|
||||||
#define offset(x, y) ((x) + ((y) * VFS_FRAME_SIZE))
|
#define offset(x, y) ((x) + ((y) * VFS_FRAME_SIZE))
|
||||||
|
|
||||||
/* Screen image to remove noise and find bottom line and height od image */
|
/* Screen image to remove noise and find bottom line and height of image */
|
||||||
static void img_screen(struct vfs101_dev *vdev)
|
static void img_screen(struct vfs101_dev *vdev)
|
||||||
{
|
{
|
||||||
int y, x, count, top;
|
int y, x, count, top;
|
||||||
|
@ -654,7 +654,7 @@ static void img_screen(struct vfs101_dev *vdev)
|
||||||
|
|
||||||
/* Image returned from sensor can contain many empty lines,
|
/* Image returned from sensor can contain many empty lines,
|
||||||
* for remove these lines compare byte 282-283 (scan level information)
|
* for remove these lines compare byte 282-283 (scan level information)
|
||||||
* with two differents threshold, one for the begin of finger image and
|
* with two different thresholds, one for the begin of finger image and
|
||||||
* one for the end. To increase stability of the code use a counter
|
* one for the end. To increase stability of the code use a counter
|
||||||
* of lines that satisfy the threshold.
|
* of lines that satisfy the threshold.
|
||||||
*/
|
*/
|
||||||
|
@ -700,7 +700,7 @@ static void img_screen(struct vfs101_dev *vdev)
|
||||||
|
|
||||||
vdev->height = top - vdev->bottom + 1;
|
vdev->height = top - vdev->bottom + 1;
|
||||||
|
|
||||||
/* Checkk max height */
|
/* Check max height */
|
||||||
if (vdev->height > VFS_IMG_MAX_HEIGHT)
|
if (vdev->height > VFS_IMG_MAX_HEIGHT)
|
||||||
vdev->height = VFS_IMG_MAX_HEIGHT;
|
vdev->height = VFS_IMG_MAX_HEIGHT;
|
||||||
|
|
||||||
|
@ -1178,7 +1178,7 @@ static void m_init_state(fpi_ssm *ssm, struct fp_dev *_dev, void *user_data)
|
||||||
switch (fpi_ssm_get_cur_state(ssm))
|
switch (fpi_ssm_get_cur_state(ssm))
|
||||||
{
|
{
|
||||||
case M_INIT_0_RECV_DIRTY:
|
case M_INIT_0_RECV_DIRTY:
|
||||||
/* Recv eventualy dirty data */
|
/* Recv eventually dirty data */
|
||||||
vdev->ignore_error = TRUE;
|
vdev->ignore_error = TRUE;
|
||||||
async_recv(ssm, dev);
|
async_recv(ssm, dev);
|
||||||
break;
|
break;
|
||||||
|
@ -1463,7 +1463,7 @@ static void dev_deactivate(struct fp_img_dev *dev)
|
||||||
/* Reset active state */
|
/* Reset active state */
|
||||||
vdev->active = FALSE;
|
vdev->active = FALSE;
|
||||||
|
|
||||||
/* Handle eventualy existing events */
|
/* Handle eventually existing events */
|
||||||
while (vdev->transfer)
|
while (vdev->transfer)
|
||||||
fp_handle_events();
|
fp_handle_events();
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ typedef struct {
|
||||||
|
|
||||||
unsigned char scan[VFS301_FP_WIDTH];
|
unsigned char scan[VFS301_FP_WIDTH];
|
||||||
|
|
||||||
/* A offseted, stretched, inverted copy of scan... probably could
|
/* A offsetted, stretched, inverted copy of scan... probably could
|
||||||
* serve finger motion speed detection?
|
* serve finger motion speed detection?
|
||||||
* Seems to be subdivided to some 10B + 53B + 1B blocks */
|
* Seems to be subdivided to some 10B + 53B + 1B blocks */
|
||||||
unsigned char mirror[64];
|
unsigned char mirror[64];
|
||||||
|
|
|
@ -1147,7 +1147,7 @@ static const unsigned char vfs301_24[] = { /* 119 B */
|
||||||
*
|
*
|
||||||
* The contents of PACKET() inside this blob seems to be some kind
|
* The contents of PACKET() inside this blob seems to be some kind
|
||||||
* of a micro-program, which specifies which columns contain what. LE seems
|
* of a micro-program, which specifies which columns contain what. LE seems
|
||||||
* to be used also here. Not neccessarily is 1 output column described
|
* to be used also here. Not necessarily is 1 output column described
|
||||||
* by 1 operation. For example the vfs301_line_t::sum section seems
|
* by 1 operation. For example the vfs301_line_t::sum section seems
|
||||||
* to perform 2 operations for each column - probably some kind of diff between
|
* to perform 2 operations for each column - probably some kind of diff between
|
||||||
* input lines?
|
* input lines?
|
||||||
|
|
|
@ -405,7 +405,7 @@ submit_image(fpi_ssm *ssm,
|
||||||
g_slist_free_full(data->rows, g_free);
|
g_slist_free_full(data->rows, g_free);
|
||||||
data->rows = NULL;
|
data->rows = NULL;
|
||||||
|
|
||||||
fp_dbg("Image captured, commiting");
|
fp_dbg("Image captured, committing");
|
||||||
|
|
||||||
fpi_imgdev_image_captured(dev, img);
|
fpi_imgdev_image_captured(dev, img);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue