[PATCH] uvcvideo: Apply flags from device to actual properties

2018-01-03 Thread Laurent Pinchart
From: Edgar Thier Use flags the device exposes for UVC controls. This allows the device to define which property flags are set. Since some cameras offer auto-adjustments for properties (e.g. auto-gain), the values of other properties (e.g. gain) can change in the camera. Examining the flags ensu

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2018-01-03 Thread Laurent Pinchart
Hi Edgar, On Wednesday, 3 January 2018 08:07:44 EET Edgar Thier wrote: > Hi Emmanuel, If we pick names randomly I'll call you David :-) > >>> + int flags = 0; > >>> + > >>> + data = kmalloc(2, GFP_KERNEL); > > > > Isn't 1 byte enough ? > > To quote from Kieran further up this thread: > > >> k

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2018-01-02 Thread Edgar Thier
Hi Emmanuel, >>> + int flags = 0; >>> + >>> + data = kmalloc(2, GFP_KERNEL); > > Isn't 1 byte enough ? > To quote from Kieran further up this thread: >> kmalloc seems a bit of an overhead for 2 bytes (only one of which is used). >> Can this use local stack storage? >> >> (Laurent, looks lik

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2018-01-02 Thread Laurent Pinchart
Hi Edgar, A few more comments. On Tuesday, 2 January 2018 22:07:24 EET Laurent Pinchart wrote: > On Thursday, 12 October 2017 10:54:17 EET Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > > This allows the device to define which property flags are set. > > > > Since some c

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2018-01-02 Thread Laurent Pinchart
Hi Edgar, Thank you for the patch. On Thursday, 12 October 2017 10:54:17 EET Edgar Thier wrote: > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some cameras offer auto-adjustments for properties (e.g. auto-gain), > the v

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-12-14 Thread Edgar Thier
Hi, Another month, another mail. Are there still issues keeping this from being merged? Regards, Edgar On 11/15/2017 12:54 PM, Kieran Bingham wrote: > Hi Edgar, > > Thanks for addressing my concerns in this updated patch. > > On 12/10/17 08:54, Edgar Thier wrote: >> >> Use flags the device e

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-11-15 Thread Edgar Thier
Hi Kieran, > I think it's easier to see updated patches if they are posted as a new thread, > with an increased version number. [PATCH v2], [PATCH v3] etc... > > Not a problem now - but might help your updated patches get seen next time. I will keep that in mind for next time. :) > Looks like my

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-11-15 Thread Kieran Bingham
Hi Edgar, Thanks for addressing my concerns in this updated patch. On 12/10/17 08:54, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some cameras offer auto-adjustments for properties (e.g. auto-ga

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-11-15 Thread Kieran Bingham
Hi Edgar, On 15/11/17 08:11, Edgar Thier wrote: > Hi, > > I was wondering if there are any problems with my latest patch or if it > simply slipped through. Slipped though in high mail volumes :) I think it's easier to see updated patches if they are posted as a new thread, with an increased ve

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-11-15 Thread Edgar Thier
Hi, I was wondering if there are any problems with my latest patch or if it simply slipped through. Regards, Edgar On 10/12/2017 09:54 AM, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some cam

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-12 Thread Edgar Thier
Use flags the device exposes for UVC controls. This allows the device to define which property flags are set. Since some cameras offer auto-adjustments for properties (e.g. auto-gain), the values of other properties (e.g. gain) can change in the camera. Examining the flags ensures that the driver

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-11 Thread Kieran Bingham
Hi Edgar, Sorry for not replying to you yesterday on IRC, but by the time I got to reply to the message you weren't online.. On 11/10/17 12:56, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some c

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-11 Thread Edgar Thier
Use flags the device exposes for UVC controls. This allows the device to define which property flags are set. Since some cameras offer auto-adjustments for properties (e.g. auto-gain), the values of other properties (e.g. gain) can change in the camera. Examining the flags ensures that the driver

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-09 Thread Kieran Bingham
Hi Edgar, Thank you for the patch respin. I'm still a bit concerned about that -ENOMEM though: On 06/10/17 11:34, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some cameras offer auto-adjustments

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-06 Thread Edgar Thier
Hi Kieran, > Rather than forward declaring the function ... Could you put the function > higher > in the module please? Will do. Patch will come as a reply shortly. >>> + if (data == NULL) >>> + return -ENOMEM; >> >> This will set the callers 'flags' to -ENOMEM ? Is that desired? >

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-06 Thread Edgar Thier
Use flags the device exposes for UVC controls. This allows the device to define which property flags are set. Since some cameras offer auto-adjustments for properties (e.g. auto-gain), the values of other properties (e.g. gain) can change in the camera. Examining the flags ensures that the driver

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-05 Thread Kieran Bingham
Hi Edgar, On 05/10/17 10:43, Kieran Bingham wrote: > Hi Edgar, > > On 18/08/17 11:12, Edgar Thier wrote: >> >> Use flags the device exposes for UVC controls. >> This allows the device to define which property flags are set. >> >> Since some cameras offer auto-adjustments for properties (e.g. auto

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-05 Thread Kieran Bingham
Hi Edgar, On 18/08/17 11:12, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property flags are set. > > Since some cameras offer auto-adjustments for properties (e.g. auto-gain), > the values of other properties (e.g. gain) can chan

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-10-05 Thread Edgar Thier
Hi all, I was wondering if there are any problems with my latest patch or if it simply slipped through. Feedback would be welcome. Regards, Edgar On 08/18/2017 12:12 PM, Edgar Thier wrote: > > Use flags the device exposes for UVC controls. > This allows the device to define which property fla

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-08-18 Thread Edgar Thier
Use flags the device exposes for UVC controls. This allows the device to define which property flags are set. Since some cameras offer auto-adjustments for properties (e.g. auto-gain), the values of other properties (e.g. gain) can change in the camera. Examining the flags ensures that the driver

Re: [PATCH] uvcvideo: Apply flags from device to actual properties

2017-08-16 Thread Laurent Pinchart
Hi Edgar, Thank you for the patch. On Tuesday 15 Aug 2017 12:59:47 Edgar Thier wrote: > Use flags the device exposes for UVC controls. In addition to explaining what the patch does, the commit message should explain why the change is needed. What is the problem you're trying to address here ?

[PATCH] uvcvideo: Apply flags from device to actual properties

2017-08-15 Thread Edgar Thier
Use flags the device exposes for UVC controls. Signed-off-by: Edgar Thier --- drivers/media/usb/uvc/uvc_ctrl.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c index c2ee6e3..bc69e92