uru4000: Fix image capture error on ARM
http://www.mail-archive.com/fprint@lists.freedesktop.org/msg00294.html
This commit is contained in:
parent
ea6d5ba6d6
commit
45ac0eefb0
1 changed files with 2 additions and 2 deletions
|
@ -689,8 +689,8 @@ static void imaging_run_state(struct fpi_ssm *ssm)
|
||||||
fp_dbg("hw header lines %d", img->num_lines);
|
fp_dbg("hw header lines %d", img->num_lines);
|
||||||
|
|
||||||
if (img->num_lines >= IMAGE_HEIGHT ||
|
if (img->num_lines >= IMAGE_HEIGHT ||
|
||||||
urudev->img_transfer->actual_length != img->num_lines * IMAGE_WIDTH + 64) {
|
urudev->img_transfer->actual_length < img->num_lines * IMAGE_WIDTH + 64) {
|
||||||
fp_err("bad captured image (%d lines) or size mismatch %d != %d",
|
fp_err("bad captured image (%d lines) or size mismatch %d < %d",
|
||||||
img->num_lines,
|
img->num_lines,
|
||||||
urudev->img_transfer->actual_length,
|
urudev->img_transfer->actual_length,
|
||||||
img->num_lines * IMAGE_WIDTH + 64);
|
img->num_lines * IMAGE_WIDTH + 64);
|
||||||
|
|
Loading…
Reference in a new issue