drivers: media: add alternating exposure support

- update ar0234 driver to support ar0234 sensor
  hardware provided support for capturing frames
  using alternating exposure time and analog gain
  settings through automatic context switching
- added new v4l2 control having control id
  TEGRA_CAMERA_CID_ALTERNATING_EXPOSURE for
  configuring alternating exposure settings
- other changes to support aforementioned changes

Bug 4064517
Jira L4T-4501

Change-Id: Id1d3d745345836436b16da1fd00cc97f2e3b5553
Signed-off-by: Shashank Kumar <shaskumar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2881141
(cherry picked from commit e973475525c9a7a99552282316e06126b8fff625)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2987067
Reviewed-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Anubhav Rai <arai@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Shashank Kumar
2023-04-02 16:07:56 +00:00
committed by mobile promotions
parent 2bd1339e63
commit c56189df5d
6 changed files with 386 additions and 51 deletions

View File

@@ -62,7 +62,11 @@ static int v4l2sd_stream(struct v4l2_subdev *sd, int enable)
goto error;
}
}
err = tegracam_ctrl_synchronize_ctrls(s_data->tegracam_ctrl_hdl);
if (err) {
dev_err(&client->dev, "Error synchronizing controls during stream start\n");
goto error;
}
err = sensor_ops->start_streaming(tc_dev);
if (err) {
dev_err(&client->dev, "Error turning on streaming\n");