]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:35 +0000 (08:35 +0200)
commit36849cf7f676c0c59aa5d732b4c3c08835661a0f
treea93e0e812f494f8a7ca06122314b1b0c1c6831d0
parente5e17bc958c147d18a1487ece62c7272e09ac308
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