[PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver

Sakari Ailus sakari.ailus at iki.fi
Tue Dec 19 01:11:39 PST 2017


Hi Wenyou,

On Tue, Dec 19, 2017 at 02:11:28AM +0000, Wenyou.Yang at microchip.com wrote:
> Hi Sakari,
> 
> > -----Original Message-----
> > From: Sakari Ailus [mailto:sakari.ailus at iki.fi]
> > Sent: 2017年12月14日 4:06
> > To: Wenyou Yang - A41535 <Wenyou.Yang at microchip.com>; Mauro Carvalho
> > Chehab <mchehab at s-opensource.com>; Rob Herring <robh+dt at kernel.org>;
> > Mark Rutland <mark.rutland at arm.com>
> > Cc: linux-kernel at vger.kernel.org; Nicolas Ferre - M43238
> > <Nicolas.Ferre at microchip.com>; devicetree at vger.kernel.org; Jonathan Corbet
> > <corbet at lwn.net>; Hans Verkuil <hverkuil at xs4all.nl>; linux-arm-
> > kernel at lists.infradead.org; Linux Media Mailing List <linux-
> > media at vger.kernel.org>; Songjun Wu <songjun.wu at microchip.com>
> > Subject: Re: [PATCH v9 2/2] media: i2c: Add the ov7740 image sensor driver
> > 
> > Hi Wenyou,
> > 
> > Wenyou Yang wrote:
> > ...
> > > +static int ov7740_start_streaming(struct ov7740 *ov7740) {
> > > +	int ret;
> > > +
> > > +	if (ov7740->fmt) {
> > > +		ret = regmap_multi_reg_write(ov7740->regmap,
> > > +					     ov7740->fmt->regs,
> > > +					     ov7740->fmt->reg_num);
> > > +		if (ret)
> > > +			return ret;
> > > +	}
> > > +
> > > +	if (ov7740->frmsize) {
> > > +		ret = regmap_multi_reg_write(ov7740->regmap,
> > > +					     ov7740->frmsize->regs,
> > > +					     ov7740->frmsize->reg_num);
> > > +		if (ret)
> > > +			return ret;
> > > +	}
> > > +
> > > +	return __v4l2_ctrl_handler_setup(ov7740->subdev.ctrl_handler);
> > 
> > I believe you're still setting the controls after starting streaming.
> 
> Yes, it sees it does so.
> 
> The OV7740 sensor generates the stream pixel data at the constant frame
> rate, no such start or stop control.

That'd be odd but I guess hardware sometimes is. I'll apply the patches.

Thanks!

-- 
Sakari Ailus
e-mail: sakari.ailus at iki.fi



More information about the linux-arm-kernel mailing list