[Port from R2] atomisp: The screen flashed green when changing state of back camera.
authors <xiaolu.liu@intel.com>
Thu, 26 Apr 2012 23:25:09 +0000 (19:25 -0400)
committerbuildbot <buildbot@intel.com>
Sat, 28 Apr 2012 21:50:17 +0000 (14:50 -0700)
commitc5bf128268c732ee5fa7adf9e9960028e898e20d
tree3c0a16d706ccb269b5327c2de5fc4ec336a05282
parent202f5d82a68000264195235946556fcad65ac746
[Port from R2] atomisp: The screen flashed green when changing state of back camera.

BZ: 31998

We need to re-calculate ITG value when changing state also resolution.
When changing state or resolution, sensor settings are changed.
Itg value is depend on the sensor settings; frame_length_lines, line_length_pck and read_mode.
If use previous itg value without re-calculation, itg may be invalid.
Invalid settings of sensor generates some kinds of bad frame.(i.g. green flashed frame)
For the same reason, we should remove the restore exposure block in mt9e013_s_mbus_fmt.
The previous itg may be not correct value.

Solution :
- atomisp
  improve 1'st frame image
- libmfldadvci
  improve 2'nd frame image
- libcamera

Change-Id: I9bd3893ddc79040c9567eebb7bb6b98b4deaabe7
Signed-off-by: s <xiaolu.liu@intel.com>
Reviewed-on: http://android.intel.com:8080/46433
Reviewed-by: Wada, Yoshio <yoshio.wada@intel.com>
Reviewed-by: Kantola, Lasse <lasse.kantola@intel.com>
Reviewed-by: Xia, Yu Y <yu.y.xia@intel.com>
Reviewed-by: Bhat, Sheethal <sheethal.bhat@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Tested-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/mt9e013.c