ov7670: disable QVGA mode
PATCH 2/3 ov7670: disable QVGA mode
Capturing at this resolution results in an ugly green horizontal line at the left side of the image. Disable until fixed.
http://dev.laptop.org/ticket/10231
--- drivers/media/video/ov7670.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/media/video/ov7670.c +4 -1
@@ -672,7 +672,9 @@ static struct ov7670_win_size { .vstop = 494, .regs = NULL, }, -/* QVGA */ +#if 0 +/* QVGA - disabled due to ugly green line. +* http://dev.laptop.org/ticket/10231 */ { .width = QVGA_WIDTH, .height = QVGA_HEIGHT,
@@ -683,6 +685,7 @@ static struct ov7670_win_size { .vstop = 494, .regs = NULL, }, +#endif #if 0 /* QCIF - disabled because it only shows a small portion of sensor FOV */ {
Signature · 1 line
1.7.2.3
Quoted 2 lines · On Fri, 8 Oct 2010 22:04:18 +0100 (BST) Daniel Drake <[email protected]> wrote:
Capturing at this resolution results in an ugly green horizontal line at the left side of the image. Disable until fixed.
A problem like that will be at the controller level, not the sensor level. Given that this is an XO-1 report, I'd assume something requires tweaking in the cafe_ccic driver. I wasn't aware of this; I know it worked once upon a time.
Again, given that ov7670 sensors can appear elsewhere, I'd be inclined not to turn off this functionality because of this problem.
jon
Quoted 4 lines · Jonathan Corbet
A problem like that will be at the controller level, not the sensor level. Given that this is an XO-1 report, I'd assume something requires tweaking in the
cafe_ccicdriver. I wasn't aware of this; I know it worked once upon a time.
I reported it 3 months ago
http://dev.laptop.org/ticket/10231
Are you interested in working on this?
I'd have no idea where to start.
I'm not so convinced that it's a controller problem rather than a sensor one, given that it says the sensor register values were determined empirically rather than from docs.
Thanks,
Daniel
Em 08-10-2010 18:18, Daniel Drake escreveu:
Quoted 11 lines · Jonathan Corbet
Quoted 4 lines
A problem like that will be at the controller level, not the sensor level. Given that this is an XO-1 report, I'd assume something requires tweaking in the
cafe_ccicdriver. I wasn't aware of this; I know it worked once upon a time.I reported it 3 months ago
http://dev.laptop.org/ticket/10231Are you interested in working on this?
I'd have no idea where to start.
It maybe at one or at the other. What happens is that, in general, both the controller and the sensor discards the initial/final parts of a line. The visible area of the image is (generally) configurable on both. If the visible area doesn't match, you'll see a vertical or a horizontal line.
This is configured by hstart and hstop, in the case of ov sensors. If you wanna try to fix, all you need to do is do move the start/stop window, for example, subtracting 2 on both hstart/hstop. If this doesn't fix, try 3, 4, ...
Yet, as Jon mentioned, if this works on XO-1, the better fix would be to adjust the screen visible area at XO-2 visible area setup (sometimes called "crop area" at datasheets).
Quoted 11 lines
I'm not so convinced that it's a controller problem rather than a sensor one, given that it says the sensor register values were determined empirically rather than from docs.
Thanks,
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html