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