public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] media: i2c: Fix pixel array positions in ov8865
@ 2022-02-03 21:33 Daniel Scally
  2022-02-04  9:04 ` Paul Kocialkowski
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Scally @ 2022-02-03 21:33 UTC (permalink / raw)
  To: linux-media; +Cc: sakari.ailus, paul.kocialkowski, Jean-Michel Hautbois

The ov8865's datasheet gives the pixel array as 3296x2528, and the
active portion as the centre 3264x2448. This makes for a top offset
of 40 and a left offset of 16, not 32 and 80.

Fixes: acd25e220921 ("media: i2c: Add .get_selection() support to ov8865")

Reported-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
---

Apologies; sent to the wrong list initially

 drivers/media/i2c/ov8865.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
index d9d016cfa9ac..53e21ae8e886 100644
--- a/drivers/media/i2c/ov8865.c
+++ b/drivers/media/i2c/ov8865.c
@@ -457,8 +457,8 @@
 
 #define OV8865_NATIVE_WIDTH			3296
 #define OV8865_NATIVE_HEIGHT			2528
-#define OV8865_ACTIVE_START_TOP			32
-#define OV8865_ACTIVE_START_LEFT		80
+#define OV8865_ACTIVE_START_TOP			40
+#define OV8865_ACTIVE_START_LEFT		16
 #define OV8865_ACTIVE_WIDTH			3264
 #define OV8865_ACTIVE_HEIGHT			2448
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] media: i2c: Fix pixel array positions in ov8865
  2022-02-03 21:33 [PATCH RESEND] media: i2c: Fix pixel array positions in ov8865 Daniel Scally
@ 2022-02-04  9:04 ` Paul Kocialkowski
  2022-02-04 23:05   ` Daniel Scally
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Kocialkowski @ 2022-02-04  9:04 UTC (permalink / raw)
  To: Daniel Scally; +Cc: linux-media, sakari.ailus, Jean-Michel Hautbois

[-- Attachment #1: Type: text/plain, Size: 1452 bytes --]

Hi Daniel,

On Thu 03 Feb 22, 21:33, Daniel Scally wrote:
> The ov8865's datasheet gives the pixel array as 3296x2528, and the
> active portion as the centre 3264x2448. This makes for a top offset
> of 40 and a left offset of 16, not 32 and 80.

Yep that makes better sense to me!

Could you also invert the lines so we have left first, matching
width being defined first in other instances?

Thanks!

Paul

> Fixes: acd25e220921 ("media: i2c: Add .get_selection() support to ov8865")
> 
> Reported-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
> Signed-off-by: Daniel Scally <djrscally@gmail.com>
> ---
> 
> Apologies; sent to the wrong list initially
> 
>  drivers/media/i2c/ov8865.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
> index d9d016cfa9ac..53e21ae8e886 100644
> --- a/drivers/media/i2c/ov8865.c
> +++ b/drivers/media/i2c/ov8865.c
> @@ -457,8 +457,8 @@
>  
>  #define OV8865_NATIVE_WIDTH			3296
>  #define OV8865_NATIVE_HEIGHT			2528
> -#define OV8865_ACTIVE_START_TOP			32
> -#define OV8865_ACTIVE_START_LEFT		80
> +#define OV8865_ACTIVE_START_TOP			40
> +#define OV8865_ACTIVE_START_LEFT		16
>  #define OV8865_ACTIVE_WIDTH			3264
>  #define OV8865_ACTIVE_HEIGHT			2448
>  
> -- 
> 2.25.1
> 

-- 
Paul Kocialkowski, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] media: i2c: Fix pixel array positions in ov8865
  2022-02-04  9:04 ` Paul Kocialkowski
@ 2022-02-04 23:05   ` Daniel Scally
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Scally @ 2022-02-04 23:05 UTC (permalink / raw)
  To: Paul Kocialkowski; +Cc: linux-media, sakari.ailus, Jean-Michel Hautbois

Hi Paul

On 04/02/2022 09:04, Paul Kocialkowski wrote:
> Hi Daniel,
>
> On Thu 03 Feb 22, 21:33, Daniel Scally wrote:
>> The ov8865's datasheet gives the pixel array as 3296x2528, and the
>> active portion as the centre 3264x2448. This makes for a top offset
>> of 40 and a left offset of 16, not 32 and 80.
> Yep that makes better sense to me!
>
> Could you also invert the lines so we have left first, matching
> width being defined first in other instances?


Sure thing - I'll post another shortly

>
> Thanks!
>
> Paul
>
>> Fixes: acd25e220921 ("media: i2c: Add .get_selection() support to ov8865")
>>
>> Reported-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
>> Signed-off-by: Daniel Scally <djrscally@gmail.com>
>> ---
>>
>> Apologies; sent to the wrong list initially
>>
>>  drivers/media/i2c/ov8865.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/media/i2c/ov8865.c b/drivers/media/i2c/ov8865.c
>> index d9d016cfa9ac..53e21ae8e886 100644
>> --- a/drivers/media/i2c/ov8865.c
>> +++ b/drivers/media/i2c/ov8865.c
>> @@ -457,8 +457,8 @@
>>  
>>  #define OV8865_NATIVE_WIDTH			3296
>>  #define OV8865_NATIVE_HEIGHT			2528
>> -#define OV8865_ACTIVE_START_TOP			32
>> -#define OV8865_ACTIVE_START_LEFT		80
>> +#define OV8865_ACTIVE_START_TOP			40
>> +#define OV8865_ACTIVE_START_LEFT		16
>>  #define OV8865_ACTIVE_WIDTH			3264
>>  #define OV8865_ACTIVE_HEIGHT			2448
>>  
>> -- 
>> 2.25.1
>>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-04 23:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-03 21:33 [PATCH RESEND] media: i2c: Fix pixel array positions in ov8865 Daniel Scally
2022-02-04  9:04 ` Paul Kocialkowski
2022-02-04 23:05   ` Daniel Scally

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox