[media] uvcvideo: Fix bytesperline calculation for planar YUV
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 7 Jan 2016 20:43:48 +0000 (18:43 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 7 Jun 2016 14:33:41 +0000 (11:33 -0300)
commitf222467a2c51a46f51516975f9b096f903c26ce4
tree221e84cc42563198e7f339f0e2eb741ff5c9091f
parent23ce62d293b65b7965a5b5a416f897d52eafcee6
[media] uvcvideo: Fix bytesperline calculation for planar YUV

The formula used to calculate bytesperline only works for packed format.
So far, all planar format we support have their bytesperline equal to
the image width (stride of the Y plane or a line of Y for M420).

Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_v4l2.c