Commit 5b06a985 authored by Hao Yao's avatar Hao Yao Committed by Giuliano Procida
Browse files

UPSTREAM: media: i2c: ov13b10: Fix h_blank calculation



Pixel per line (PPL) is calculated as pixel_rate / (VTS * FPS), which
is not decided by MIPI CSI-2 link frequency. PPL can vary while link
frequency keeps the same. If PPL is wrong, the h_blank = PPL - width
is also wrong then FPS control is inaccurate.

This patch fix h_blank by:
1. Move PPL from link_freq_config to ov13b10_mode
2. Add PPL value for different modes
3. Use PPL from mode to calculate h_blank

Bug: 397546561

(cherry picked from commit 56fa9206)
Change-Id: I0e87c5092490f1b34508500c4d09499d41c19bd5
Signed-off-by: default avatarBingbu Cao <bingbu.cao@intel.com>
Signed-off-by: default avatarHao Yao <hao.yao@intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarBingbu Cao <bingbu.cao@intel.corp-partner.google.com>
parent 45418317
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment