[media] soc-camera: Fix bytes per line computation for planar formats
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Mar 2012 11:03:24 +0000 (08:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 19:10:03 +0000 (16:10 -0300)
commit4e0e620ce713893b2883522a16a71b5589e8e3db
tree4832070df5b89a6a231bff603e9c9700b3c280f5
parentad3b81faa1db60b2052f5f5a6ddae712f51b2dff
[media] soc-camera: Fix bytes per line computation for planar formats

The V4L2 specification defines bytesperline for planar formats as the
number of bytes per line for the largest plane. Modify
soc_mbus_bytes_per_line() accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_mediabus.c