[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)
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>

No differences found