Re: [Patch v3 1/3] media: ov5640: add PIXEL_RATE control

2019-10-07 Thread Sakari Ailus
On Mon, Oct 07, 2019 at 10:17:03AM -0500, Benoit Parrot wrote: > Sakari Ailus wrote on Mon [2019-Oct-07 > 11:03:20 +0300]: > > On Fri, Oct 04, 2019 at 12:24:16PM -0500, Benoit Parrot wrote: > > > @@ -2657,6 +2669,12 @@ static int ov5640_init_controls(struct ov5640_dev > > > *sensor) > > > /* w

Re: [Patch v3 1/3] media: ov5640: add PIXEL_RATE control

2019-10-07 Thread Benoit Parrot
Sakari Ailus wrote on Mon [2019-Oct-07 11:03:20 +0300]: > On Fri, Oct 04, 2019 at 12:24:16PM -0500, Benoit Parrot wrote: > > @@ -2657,6 +2669,12 @@ static int ov5640_init_controls(struct ov5640_dev > > *sensor) > > /* we can use our own mutex for the ctrl lock */ > > hdl->lock = &sensor-

Re: [Patch v3 1/3] media: ov5640: add PIXEL_RATE control

2019-10-07 Thread Sakari Ailus
On Fri, Oct 04, 2019 at 12:24:16PM -0500, Benoit Parrot wrote: > @@ -2657,6 +2669,12 @@ static int ov5640_init_controls(struct ov5640_dev > *sensor) > /* we can use our own mutex for the ctrl lock */ > hdl->lock = &sensor->lock; > > + /* Clock related controls */ > + ctrls->p

[Patch v3 1/3] media: ov5640: add PIXEL_RATE control

2019-10-04 Thread Benoit Parrot
Add v4l2 controls to report the pixel rates of each mode. This is needed by some CSI2 receiver in order to perform proper DPHY configuration. Signed-off-by: Benoit Parrot --- drivers/media/i2c/ov5640.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a