linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org, sakari.ailus@iki.fi
Subject: Re: [PATCH] mt9v032: Provide link frequency control
Date: Thu, 26 Jul 2012 15:28:46 +0200	[thread overview]
Message-ID: <2673019.TNX5Epv3lK@avalon> (raw)
In-Reply-To: <201207261516.04868.hverkuil@xs4all.nl>

Hi Hans,

Thanks for the review.

On Thursday 26 July 2012 15:16:04 Hans Verkuil wrote:
> On Thu 26 July 2012 14:56:56 Laurent Pinchart wrote:
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> > 
> >  drivers/media/video/mt9v032.c |   48 ++++++++++++++++++++++++++++++++----
> >  include/media/mt9v032.h       |    3 ++
> >  2 files changed, 46 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/media/video/mt9v032.c b/drivers/media/video/mt9v032.c
> > index 2203a6f..39217b8 100644
> > --- a/drivers/media/video/mt9v032.c
> > +++ b/drivers/media/video/mt9v032.c

[snip]

> > @@ -505,6 +514,16 @@ static int mt9v032_s_ctrl(struct v4l2_ctrl *ctrl)
> >  		return mt9v032_write(client, MT9V032_TOTAL_SHUTTER_WIDTH,
> >  				     ctrl->val);
> > 
> > +	case V4L2_CID_PIXEL_RATE:
> > +	case V4L2_CID_LINK_FREQ:
> > +		if (mt9v032->link_freq == NULL)
> > +			break;
> > +
> > +		freq = mt9v032->pdata->link_freqs[mt9v032->link_freq->val];
> > +		mt9v032->pixel_rate->cur.val = freq;
> 
> That should be 'mt9v032->pixel_rate->val = freq;'.
> 
> It used to be cur.val some time ago, but that was changed. You never set
> cur.val anymore inside a s_ctrl handler.

Thanks. I'll fix that.

-- 
Regards,

Laurent Pinchart


      reply	other threads:[~2012-07-26 13:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-26 12:56 [PATCH] mt9v032: Provide link frequency control Laurent Pinchart
2012-07-26 13:16 ` Hans Verkuil
2012-07-26 13:28   ` Laurent Pinchart [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=2673019.TNX5Epv3lK@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=sakari.ailus@iki.fi \
    /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;
as well as URLs for NNTP newsgroup(s).