uru4000: Fix image capture error on ARM

http://www.mail-archive.com/fprint@lists.freedesktop.org/msg00294.html
This commit is contained in:
Timo Teräs 2012-11-16 18:38:52 +01:00 committed by Bastien Nocera
parent ea6d5ba6d6
commit 45ac0eefb0

View file

@ -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);