]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00229962 Capture: ov5642/ov5640: update sensor params even if s_parm failed
authorSheng Nan <b38800@freescale.com>
Wed, 17 Oct 2012 06:55:10 +0000 (14:55 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:14 +0000 (14:13 +0200)
commit77dd83a86674b80ba6af1f12dd7cf98628ce2d60
treea93e0e812f494f8a7ca06122314b1b0c1c6831d0
parent886c4226cb2320d9a563272cdbfa9547d599c464
ENGR00229962 Capture: ov5642/ov5640: update sensor params even if s_parm failed

ioctl_s_parm for ov5642 and ov5640, it didn't check if sensor changed mode
successfully.
So it updates the sensor parameters with new framerate and new mode even
if the sensor failed to change mode.

The original framerate and mode is useful for the exposure calculation.
It should keep consistent with sensor actual work mode.

- This patch checks the return value of function which changes sensor mode
  If it succeed, update sensor parameters.

Signed-off-by: Sheng Nan <b38800@freescale.com>
drivers/media/video/mxc/capture/ov5640_mipi.c
drivers/media/video/mxc/capture/ov5642.c