Linux Media Controller development
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: hverkuil@xs4all.nl, linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] v4l: Bring back array_size parameter to v4l2_find_nearest_size
Date: Fri, 23 Mar 2018 12:56:31 -0300	[thread overview]
Message-ID: <20180323125631.641c15c2@vento.lan> (raw)
In-Reply-To: <20180323153152.377whg5qyolvsuxq@kekkonen.localdomain>

Em Fri, 23 Mar 2018 17:31:53 +0200
Sakari Ailus <sakari.ailus@linux.intel.com> escreveu:

> On Fri, Mar 23, 2018 at 11:08:55AM -0300, Mauro Carvalho Chehab wrote:
> > Em Fri, 23 Mar 2018 11:07:42 -0300
> > Mauro Carvalho Chehab <mchehab@s-opensource.com> escreveu:
> >   
> > > Em Fri, 23 Mar 2018 15:48:41 +0200
> > > Sakari Ailus <sakari.ailus@linux.intel.com> escreveu:
> > >   
> > > > An older version of the driver patches were merged accidentally which
> > > > resulted in missing the array_size parameter that tells the length of the
> > > > array that contains the different supported sizes.
> > > > 
> > > > Bring it back to v4l2_find_nearest size and make the corresponding change
> > > > for the drivers using it as well.
> > > > 
> > > > Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> > > > ---
> > > > Hi Mauro,
> > > > 
> > > > Here's the patch I mentioned. It restores the intended state of the
> > > > v4l2_find_nearest_size() API as it was reviewed and acked (by Hans).
> > > > 
> > > > This time the exact patch is tested for vivid.
> > > > 
> > > >  drivers/media/i2c/ov13858.c                  | 5 +++--
> > > >  drivers/media/i2c/ov5670.c                   | 5 +++--
> > > >  drivers/media/platform/vivid/vivid-vid-cap.c | 5 +++--
> > > >  include/media/v4l2-common.h                  | 5 +++--
> > > >  4 files changed, 12 insertions(+), 8 deletions(-)
> > > > 
> > > > diff --git a/drivers/media/i2c/ov13858.c b/drivers/media/i2c/ov13858.c
> > > > index 30ee9f71bf0d..420af1e32d4e 100644
> > > > --- a/drivers/media/i2c/ov13858.c
> > > > +++ b/drivers/media/i2c/ov13858.c
> > > > @@ -1375,8 +1375,9 @@ ov13858_set_pad_format(struct v4l2_subdev *sd,
> > > >  	if (fmt->format.code != MEDIA_BUS_FMT_SGRBG10_1X10)
> > > >  		fmt->format.code = MEDIA_BUS_FMT_SGRBG10_1X10;
> > > >  
> > > > -	mode = v4l2_find_nearest_size(supported_modes, width, height,
> > > > -				      fmt->format.width, fmt->format.height);
> > > > +	mode = v4l2_find_nearest_size(
> > > > +		supported_modes, ARRAY_SIZE(supported_modes), width, height,
> > > > +		fmt->format.width, fmt->format.height);    
> > > 
> > > 
> > > Nitpick... I find ugly and arder to mentally parse things like the above,  
> 
> Ok, I'll send v2.

Thanks!
> 
> > 
> > 	"arder" -> "harder"
> > 
> > My keyboard sometimes is losing keystrokes. It seems it is approaching
> > the time to replace it again.  
> 
> Perhaps an IBM model M? I once tried one but my fingers started to ache.

I used one for a while... Works fine, but yeah, keys are havier.

> :-9 So I'm still using my Keytronic keyboard from 1994. :-D

Good for you!

I'm using a Logitech K520 wireless keyboard here. That's my second one.
It works great when it is new, but after too much usage, keys start to
glue on its back :-(

Yet, I loved the idea of having a wireless one, and use the same
mini-stick for both mouse and kbd. Makes easy when I need to plug on
some other device.

Anyway, I can't buy keyboards in BR, as it will come with a "weird"
layout.

Thanks,
Mauro

      reply	other threads:[~2018-03-23 15:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-23 13:48 [PATCH 1/1] v4l: Bring back array_size parameter to v4l2_find_nearest_size Sakari Ailus
2018-03-23 14:07 ` Mauro Carvalho Chehab
2018-03-23 14:08   ` Mauro Carvalho Chehab
2018-03-23 15:31     ` Sakari Ailus
2018-03-23 15:56       ` Mauro Carvalho Chehab [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180323125631.641c15c2@vento.lan \
    --to=mchehab@s-opensource.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox