]> git.karo-electronics.de Git - linux-beck.git/commit
[media] mx2_camera: Fix sizeimage computation in try_fmt()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 21 Mar 2012 11:03:20 +0000 (08:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 19:07:12 +0000 (16:07 -0300)
commit584943aa0692fea9ec3356c7d4677dd7a225cdef
tree2bcf2cee154013bb59f2ce6a2256d834df2660e1
parent9ce3ce4d4a8dc80b2a2265650be54a86e854561e
[media] mx2_camera: Fix sizeimage computation in try_fmt()

The try_fmt() handler restricts the image width based on the hardware
limits and updates the bytesperline value, but doesn't update sizeimage.
Fix it.

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/mx2_camera.c