[media] V4L: mx3_camera: correct 'sizeimage' value reporting
authorAnatolij Gustschin <agust@denx.de>
Mon, 31 Jan 2011 12:58:01 +0000 (09:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:14 +0000 (20:32 -0300)
commit44facdc8c43a8b5172d6cbe995845c9889561aa0
tree8b6aa011446d892cc9f693f9f13e300af9415eb4
parent5bccd60852fc0a5ccc1980c10266896df99b8bda
[media] V4L: mx3_camera: correct 'sizeimage' value reporting

The 'pix->width' field may be updated in mx3_camera_set_fmt() to
fulfill the IPU stride line alignment requirements. If this update
takes place, the 'fmt.pix.sizeimage' field in the struct v4l2_format
stucture returned by VIDIOC_S_FMT is wrong. We need to update the
'pix->sizeimage' field in the mx3_camera_set_fmt() function to fix
this issue.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mx3_camera.c