[media] gspca_vc032x: Fix wrong bytesperline
authorLuca Bonissi <lucabon@scarsita.it>
Mon, 26 Jan 2015 10:38:17 +0000 (07:38 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 20:28:46 +0000 (18:28 -0200)
commit91de062f50c969d1613dd9881c275e58f228b3ac
tree081fd3affbfda536b5bc6fd2a74073d8916fe059
parentc7e5a726d5fbf453c49fc8326a6580402643c900
[media] gspca_vc032x: Fix wrong bytesperline

I found a problem on vc032x gspca usb webcam subdriver: "bytesperline"
property is wrong for YUYV and YVYU formats.
With recent v4l-utils library (>=0.9.1), that uses "bytesperline" for
pixel format conversion, the result is a wrong jerky image.

Patch tested on my laptop (USB webcam Logitech Orbicam 046d:0892).

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=91181
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/gspca/vc032x.c