MLK-20123-2: camera: add automatic selection mode for parallel ov5640
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 30 Oct 2018 07:10:58 +0000 (15:10 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit567a595f58c3fc5cde4e82966762704d310164a2
tree5b9d068ad60f801d291d1757394688a79cd9f428
parentb4036f020bb7280ea6c09bd550d36b189fd259b6
MLK-20123-2: camera: add automatic selection mode for parallel ov5640

There is two methods to select different mode for camera sensor, one
is setting mode by VIDIOC_S_PARM ioctl and the other is automatic
selection through resolution. If resolution match one of camera sensor
supported, driver will select the corresponding mode. If not, driver
will select the max resolution supported by sensor and use ISI to
resize to the target resolution.

This patch is for parallel interface of ov5640 sensor

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 8eb46dab84dd589ba0e6f997e28fa9ff3bbbcd63)
drivers/media/platform/imx8/ov5640_v3.c