[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+V-a8t37+xac0aDLDmnQ3FO1q29RHrtq-bJ1GdpWv0_tnp8KA@mail.gmail.com>
Date: Fri, 27 Sep 2019 21:34:53 +0100
From: "Lad, Prabhakar" <prabhakar.csengg@...il.com>
To: Benoit Parrot <bparrot@...com>
Cc: Hans Verkuil <hverkuil@...all.nl>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
linux-media <linux-media@...r.kernel.org>,
devicetree@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Jyri Sarha <jsarha@...com>
Subject: Re: [Patch v4 1/8] media: i2c: ov2659: Fix for image wrap-around in
lower resolution
On Fri, Sep 27, 2019 at 7:47 PM Benoit Parrot <bparrot@...com> wrote:
>
> Based on recently found sensor configuration examples, it was
> discovered that when scaling and binning are used for the lower
> resolutions (i.e. 640x480, 320x240) the read offset has to be
> increased otherwise the image appears to be wrapped around.
>
> Signed-off-by: Benoit Parrot <bparrot@...com>
> Signed-off-by: Jyri Sarha <jsarha@...com>
> ---
> drivers/media/i2c/ov2659.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Acked-by: Lad, Prabhakar <prabhakar.csengg@...il.com>
Cheers,
--Prabhakar Lad
> diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c
> index f4ded0669ff9..17573257097d 100644
> --- a/drivers/media/i2c/ov2659.c
> +++ b/drivers/media/i2c/ov2659.c
> @@ -661,7 +661,7 @@ static struct sensor_register ov2659_vga[] = {
> { REG_TIMING_HORIZ_FORMAT, 0x01 },
> { 0x370a, 0x52 },
> { REG_VFIFO_READ_START_H, 0x00 },
> - { REG_VFIFO_READ_START_L, 0x80 },
> + { REG_VFIFO_READ_START_L, 0xa0 },
> { REG_ISP_CTRL02, 0x10 },
> { REG_NULL, 0x00 },
> };
> @@ -709,7 +709,7 @@ static struct sensor_register ov2659_qvga[] = {
> { REG_TIMING_HORIZ_FORMAT, 0x01 },
> { 0x370a, 0x52 },
> { REG_VFIFO_READ_START_H, 0x00 },
> - { REG_VFIFO_READ_START_L, 0x80 },
> + { REG_VFIFO_READ_START_L, 0xa0 },
> { REG_ISP_CTRL02, 0x10 },
> { REG_NULL, 0x00 },
> };
> --
> 2.17.1
>
Powered by blists - more mailing lists