Check for possible null pointer to avoid crash.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index c8bbc1f..45bb872 100644
--- a/drivers/media
Replace GPL v2 license notice with SPDX license identifier.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index bf7d06f..c7183a4
Replace GPL v2 license notice with SPDX license identifier.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov5670.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/media/i2c/ov5670.c b/drivers/media/i2c/ov5670.c
index 9f91965..b1b0409 100644
Previously, the sensor, with default settings, was outputting SOF without
data. This results in frame sync error on the receiver side.
Now, configure the sensor to output SOF with MIPI data for all frames. This
avoids possible null first frame on the bus.
Signed-off-by: Chiranjeevi Rapolu
~30fps.
Signed-off-by: Chiranjeevi Rapolu
---
Changes in v2:
- Include Tomasz clarifications in the commit message.
drivers/media/i2c/ov13858.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index a
Calculate pixel-rate at run time instead of compile time.
Instead of using hardcoded pixels-per-line, extract it from current sensor
mode.
Signed-off-by: Chiranjeevi Rapolu
---
Changes in v3:
- Use LINK_FREQ_TO_PIXEL_RATE macro.
- Fix incorrect indentation.
drivers/media/i2c
Previously, the sensor was outputting blank every other frame at 4224x3136
video when vblank was in the range [79, 86]. This resulted in video
flickering.
Omni Vision recommends us to use their settings for crop start/end for
4224x3136.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c
Calculate pixel-rate at run time instead of compile time.
Instead of using hardcoded pixels-per-line, extract it from current sensor
mode.
Signed-off-by: Chiranjeevi Rapolu
---
Changes in v2:
- Removed pixel-rate from struct definition.
- Used pixel-rate formula wherever needed
Previously, the sensor was not streaming after resume from suspend,
i.e. on S0->S3->S0 transition. Due to this, camera app preview appeared
as stuck.
Now, handle streaming state correctly in case of suspend-resume.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov5670.c | 5 +-
dynamically, add these to
existing mode register settings.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov5670.c | 30 --
1 file changed, 24 insertions(+), 6 deletions(-)
diff --git a/drivers/media/i2c/ov5670.c b/drivers/media/i2c/ov5670.c
index 6f7a1d6
ounds.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 35 +++
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index 45c0e96..af7af0d 100644
--- a/drivers/media/i2c/ov13
ounds.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov5670.c | 40 ++--
1 file changed, 26 insertions(+), 14 deletions(-)
diff --git a/drivers/media/i2c/ov5670.c b/drivers/media/i2c/ov5670.c
index 8d8e16c..ddb7009 100644
--- a/drivers/media/i2c/ov5
to
pixels domain. Set HBLANK read-only because fixed PPL is used for all
resolutions. And, use more accurate link-frequency 422.4MHz instead of
rounding down to 420MHz.
Signed-off-by: Chiranjeevi Rapolu
---
Changes in v2:
- Change subject to reflect frame timing info.
- Cha
ANK calculation.
Now, change pixels-per-line domain from internal sensor clock to
pixels domain. Set HBLANK read-only because fixed PPL is used for all
resolutions. And, use more accurate link-frequency 422.4MHz instead of
rounding down to 420MHz.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/
Previously both link-frequency and pixel-rate reported by
the sensor was incorrect, resulting in incorrect FPS.
Report link-frequency in Hz rather than link data rate in bps.
Calculate pixel-rate from link-frequency.
Signed-off-by: Chiranjeevi Rapolu
---
Changes in v2:
- Fix typo, from
Previously, possible digital gains were just 1x, 2x and 4x. These
coarse gains were not sufficient in fine-tuning the image capture.
Now, digital gain range is [0, 16x] with each step 1/1024, default 1x.
This is achieved through OV13858 MWB R/G/B gain controls.
Signed-off-by: Chiranjeevi Rapolu
Previously both link-frequency and pixel-rate reported by
the sensor was incorrect, resulting in incorrect FPS.
Report link-frequency in Hz rather than link data rate in bps.
Calculate pixel-rate from link-frequency.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 28
Previously, initial exposure max was set incorrectly to (0x7fff - 8).
Now, limit exposure max to current resolution (VTS - 8).
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/media/i2c/ov13858.c b
: Chiranjeevi Rapolu
---
drivers/media/i2c/ov13858.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
index 86550d8..8e6c8f0 100644
--- a/drivers/media/i2c/ov13858.c
+++ b/drivers/media/i2c/ov13858.c
@@ -1377,6 +1377,7
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/Kconfig | 12 +
drivers/media/i2c/Makefile |1 +
drivers/media/i2c/ov5670.c | 2587
3 files changed, 2600 insertions(+)
create mode 100644 drivers/media/i2c/ov5670.c
diff --git a/drivers
From: Chiranjeevi Rapolu
Provides single source pad with up to 2592x1944 pixels at 10-bit raw
bayer format over MIPI CSI2 two lanes at 840Mbps/lane.
The driver supports following features:
- up to 30fps at 5M pixels
- manual exposure
- digital/analog gain
- V-blank/H-blank
- test pattern
From: Chiranjeevi Rapolu
Provides single source pad with up to 2592x1944 pixels at 10-bit raw
bayer format over MIPI CSI2 two lanes at 640Mbps/lane.
The driver supports following features:
- up to 30fps at 5M pixels
- manual exposure
- digital/analog gain
- V-blank/H-blank
- test pattern
From: Chiranjeevi Rapolu
Provides single source pad with up to 2592x1944 pixels at 10-bit raw
bayer format over MIPI CSI2 two lanes at 640Mbps/lane.
The driver supports following features:
- up to 30fps at 5M pixels
- manual exposure/analog gain
- media controller support
- runtime pm support
Provides single source pad with up to 2576x1936 pixels at 10-bit raw
bayer format over MIPI CSI2 two lanes at 640Mbps/lane.
Supports up to 30fps at 5M pixels, up to 60fps at 1080p.
Signed-off-by: Chiranjeevi Rapolu
---
drivers/media/i2c/Kconfig | 11 +
drivers/media/i2c/Makefile |1
24 matches
Mail list logo