Skip to contentSkip to conversation

media: ov5640: correct comments for default VGA to avoid confusion

PATCH In review [email protected] 2 participants 2 messages May 9, 2023 – May 11, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 media: ov5640: correct comments for default VGA to avoid confusion

From: "Guoniu.zhou" <[email protected]>

When OV5640 work at DVP mode, the default initialization settings make it output 30 frames per second. But when it work at CSI-2 mode the default link frequency will make it output 60 frames per second, so correct the comments to make it more clear.

---
v2->v3:
1) modify patch title from "fix incorrect frame frate issue for defulat VGA" to "correct comments for default VGA to avoid confusion" to make it more accurate description about this patch.
2) remove code change about frame_interval parameters
3) remove tag since my misunderstand
4) update commit log

v1->v2:
1) fix typo issue(s/runn/run)
2) keep original OV5640 default link frequency
3) correct comments and frame_interval parameters to match actual frame rate

---
 drivers/media/i2c/ov5640.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/ov5640.c +1 -1
index 1536649b9e90..e9100988a028 100644
@@ -3851,7 +3851,7 @@ static int ov5640_probe(struct i2c_client *client)
 
 	/*
 	 * default init sequence initialize sensor to
-	 * YUV422 UYVY VGA@30fps
+	 * YUV422 UYVY VGA(30FPS in parallel mode, 60 in MIPI CSI-2 mode)
 	 */
 	sensor->frame_interval.numerator = 1;
 	sensor->frame_interval.denominator = ov5640_framerates[OV5640_30_FPS];
Signature · 1 line
2.37.1
Reviewed-by on v3 1/1
#1 lore raw

Hello Guoniu Zhou

Quoted 8 lines · On Tue, May 09, 2023 at 02:56:45PM +0800, [email protected] wrote:

From: "Guoniu.zhou" <[email protected]>

When OV5640 work at DVP mode, the default initialization settings make it output 30 frames per second. But when it work at CSI-2 mode the default link frequency will make it output 60 frames per second, so correct the comments to make it more clear.

Thank you!

Quoted 35 lines

---
v2->v3:
1) modify patch title from "fix incorrect frame frate issue for defulat VGA" to "correct comments for default VGA to avoid confusion" to make it more accurate description about this patch.
2) remove code change about frame_interval parameters
3) remove tag since my misunderstand
4) update commit log

v1->v2:
1) fix typo issue(s/runn/run)
2) keep original OV5640 default link frequency
3) correct comments and frame_interval parameters to match actual frame rate

---
 drivers/media/i2c/ov5640.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/ov5640.c +1 -2
index 1536649b9e90..e9100988a028 100644
@@ -3851,7 +3851,7 @@ static int ov5640_probe(struct i2c_client *client)
 
 	/*
 	 * default init sequence initialize sensor to
-	 * YUV422 UYVY VGA@30fps
+	 * YUV422 UYVY VGA(30FPS in parallel mode, 60 in MIPI CSI-2 mode)
 	 */
 	sensor->frame_interval.numerator = 1;
 	sensor->frame_interval.denominator = ov5640_framerates[OV5640_30_FPS];
--

2.37.1