]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00211376 Capture: ov5640_mipi: the QVGA is brighter
authorSheng Nan <b38800@freescale.com>
Sat, 13 Oct 2012 06:33:13 +0000 (14:33 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:33 +0000 (08:35 +0200)
commit1c0210672cc957aa07d68b9eda9da3ddb88677d2
tree6f9005c0332e39e0a02b52168e5dba4e0a2067f4
parent20d026df1a7b0b3223366d67212bd0ea0baf51e5
ENGR00211376 Capture: ov5640_mipi: the QVGA is brighter

change ov5640_init_mode sequence according to ov's suggestion

ov5640 support two method of size switching, scaling and subsampling
exposure calculation when change size between scaling and subsampling
- scaling: image size bigger than 1280*960
- subsampling: image size smaller than 1280*960

This patch changes the sequence of ov5640_init_mode()
1. setting mipi csi2 (no change).
2. check mode
- if it is in INIT_MODE, go throught initial procedure
- if sensor changes between scaling and subsampling,
  go through exposure calcualtion
- otherwise, configure mode directly.
3. other procedures keep the same.

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