diff options
author | Jacopo Mondi | 2023-05-05 09:16:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-11-20 11:52:13 +0100 |
commit | 9b1c0aca7fbf68274f7073c4bbf6a36c49d0fcaa (patch) | |
tree | 278c3c28055a937b1c8c7104cd11ed5f58ce31e1 /drivers/media/test-drivers | |
parent | 6380621de3646a3d10eab4f5c2dc781ae7e3252c (diff) |
media: ov5640: Drop dead code using frame_interval
[ Upstream commit eeaa47d182fedfe68b8fd40ef3798761c8904791 ]
The ov5640_update_pixel_rate() function handles the parallel and MIPI
CSI-2 cases separately.
When running on a parallel setup the V4L2_CID_PIXEL_RATE value is
calculated at the beginning of the function using the values configured
with the frame_interval operations, and then the function immediately
returns.
The remaining of the function handles the MIPI CSI-2 configuration and
should not use the 'current_fr' and 'def_fps' fields as those are only
relevant for parallel mode.
Drop a small section of dead code that updates vblank using
frame_interval on a MIPI CSI-2 setup.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Stable-dep-of: 8fc29e3c9f68 ("media: ov5640: fix vblank unchange issue when work at dvp mode")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers')
0 files changed, 0 insertions, 0 deletions