[media] V4L: soc-camera: regression fix: calculate .sizeimage in soc_camera.c
authorSergio Aguirre <saaguirre@ti.com>
Mon, 11 Apr 2011 16:14:33 +0000 (13:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 May 2011 19:47:56 +0000 (16:47 -0300)
commitdca6b6d18fa4428c4539e45f7a43040e388ab99e
tree60023ee7652741d1706c1cec7cc336ac9bc19eb1
parent0b84834a5a9f5fe8f3760560ef8c5b1536d22bd1
[media] V4L: soc-camera: regression fix: calculate .sizeimage in soc_camera.c

A recent patch has given individual soc-camera host drivers a possibility
to calculate .sizeimage and .bytesperline pixel format fields internally,
however, some drivers relied on the core calculating these values for
them, following a default algorithm. This patch restores the default
calculation for such drivers.

Based on initial patch by Guennadi Liakhovetski, found here:

http://www.spinics.net/lists/linux-media/msg31282.html

Except that this covers try_fmt aswell.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/soc_camera.c