MLK-20123-3: camera: add automatic selection mode for ov10635
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Tue, 30 Oct 2018 07:13:02 +0000 (15:13 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit7c44eb83217522617a26bffde04ae40fc33efaf3
tree22df97bc87fa75a1482b2c566d501913737f5ffa
parent997b4acb464d3329272ec1f265c39bdd80be976d
MLK-20123-3: camera: add automatic selection mode for ov10635

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 ov10635 camera sensor

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