Re: [PATCH] LED control

2010-09-12 Thread Laurent Pinchart
Hi Andy, On Sunday 05 September 2010 20:43:27 Andy Walls wrote: > On Sun, 2010-09-05 at 15:54 +0200, Hans de Goede wrote: > > On 09/05/2010 10:56 AM, Jean-Francois Moine wrote: > > > On Sun, 05 Sep 2010 09:56:54 +0200 Hans de Goede wrote: > > >> I think that using one control for both status leds

Re: [PATCH] LED control

2010-09-05 Thread Hans de Goede
Hi, On 09/05/2010 08:43 PM, Andy Walls wrote: On Sun, 2010-09-05 at 15:54 +0200, Hans de Goede wrote: Hi, On 09/05/2010 10:56 AM, Jean-Francois Moine wrote: On Sun, 05 Sep 2010 09:56:54 +0200 Hans de Goede wrote: I think that using one control for both status leds (which is what we are us

Re: [PATCH] LED control

2010-09-05 Thread Andy Walls
On Sun, 2010-09-05 at 15:54 +0200, Hans de Goede wrote: > Hi, > > On 09/05/2010 10:56 AM, Jean-Francois Moine wrote: > > On Sun, 05 Sep 2010 09:56:54 +0200 > > Hans de Goede wrote: > > > >> I think that using one control for both status leds (which is what we > >> are usually talking about) and i

Re: [PATCH] LED control

2010-09-05 Thread Andy Walls
On Sun, 2010-09-05 at 10:04 +0200, Peter Korsgaard wrote: > > "Hans" == Hans de Goede writes: > > Hi, > > >> + V4L2_CID_LEDS > >> + integer > >> + Switch on or off the LED(s) or illuminator(s) of the device. > >> + The control type and values depend on the driver and may be either >

Re: [PATCH] LED control

2010-09-05 Thread Hans de Goede
Hi, On 09/05/2010 10:56 AM, Jean-Francois Moine wrote: On Sun, 05 Sep 2010 09:56:54 +0200 Hans de Goede wrote: I think that using one control for both status leds (which is what we are usually talking about) and illuminator(s) is a bad idea. I'm fine with standardizing these, but can we pleas

Re: [PATCH] LED control

2010-09-05 Thread Jean-Francois Moine
On Sun, 05 Sep 2010 09:56:54 +0200 Hans de Goede wrote: > I think that using one control for both status leds (which is what we > are usually talking about) and illuminator(s) is a bad idea. I'm fine > with standardizing these, but can we please have 2 CID's one for > status lights and one for th

Re: [PATCH] LED control

2010-09-05 Thread Hans de Goede
Hi, On 09/05/2010 10:04 AM, Peter Korsgaard wrote: "Hans" == Hans de Goede writes: Hi, >> + V4L2_CID_LEDS >> + integer >> + Switch on or off the LED(s) or illuminator(s) of the device. >> + The control type and values depend on the driver and may be either >> +

Re: [PATCH] LED control

2010-09-05 Thread Peter Korsgaard
> "Hans" == Hans de Goede writes: Hi, >> + V4L2_CID_LEDS >> + integer >> + Switch on or off the LED(s) or illuminator(s) of the device. >> + The control type and values depend on the driver and may be either >> + a single boolean (0: off, 1:on) or the index in a menu t

Re: [PATCH] LED control

2010-09-05 Thread Hans de Goede
Hi all, On 09/04/2010 01:10 PM, Jean-Francois Moine wrote: Some media devices may have one or many lights (LEDs, illuminators, lamps..). This patch makes them controlable by the applications. Signed-off-by: Jean-Francois Moine -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moine

Re: [PATCH] LED control

2010-09-04 Thread Andy Walls
On Sat, 2010-09-04 at 13:10 +0200, Jean-Francois Moine wrote: > Some media devices may have one or many lights (LEDs, illuminators, > lamps..). This patch makes them controlable by the applications. > > Signed-off-by: Jean-Francois Moine Jean-Francois, Thanks for the proposal. It looks OK to m

[PATCH] LED control

2010-09-04 Thread Jean-Francois Moine
Some media devices may have one or many lights (LEDs, illuminators, lamps..). This patch makes them controlable by the applications. Signed-off-by: Jean-Francois Moine -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ diff --git

Re: qv4l2 (was [PATCH] LED control)

2009-03-22 Thread Jean-Francois Moine
On Tue, 17 Mar 2009 09:45:40 +0100 (CET) "Hans Verkuil" wrote: [snip] > > Actually, there are a few programs that can handle the webcam > > parameters. In fact I know only 'v4l2-ctl': I did not succeeded to > > compile qv4l2 > > What compile errors do you get? > > If you do not have qt3

Re: qv4l2 (was [PATCH] LED control)

2009-03-17 Thread Hans Verkuil
> On Sun, 15 Mar 2009 08:14:56 -0700 (PDT) > Trent Piepho wrote: > >> > - this asks to have a kernel generated with CONFIG_NEW_LEDS, >> >> So? >> >> > - the user must use some new program to >> > access /sys/class/leds/, >> >> echo, cat? >> >> > - he must know how the LEDs of his webcam are named

Re: [PATCH] LED control

2009-03-17 Thread Jean-Francois Moine
On Sun, 15 Mar 2009 08:14:56 -0700 (PDT) Trent Piepho wrote: > > - this asks to have a kernel generated with CONFIG_NEW_LEDS, > > So? > > > - the user must use some new program to > > access /sys/class/leds/, > > echo, cat? > > > - he must know how the LEDs of his webcam are named in the /

Re: [PATCH] LED control

2009-03-15 Thread Trent Piepho
On Sun, 15 Mar 2009, Jean-Francois Moine wrote: > On Sat, 14 Mar 2009 13:16:11 -0700 (PDT) > Trent Piepho wrote: > > > There is already a sysfs led interface, you could just have the driver > > export the leds to the led subsystem and use that. > > Yes, but: > - this asks to have a kernel generate

Re: [PATCH] LED control

2009-03-15 Thread Laurent Pinchart
On Sunday 15 March 2009 10:50:37 Jean-Francois Moine wrote: > On Sat, 14 Mar 2009 13:16:11 -0700 (PDT) > > Trent Piepho wrote: > > There is already a sysfs led interface, you could just have the driver > > export the leds to the led subsystem and use that. > > Yes, but: > - this asks to have a ker

Re: [PATCH] LED control

2009-03-15 Thread Jean-Francois Moine
On Sat, 14 Mar 2009 13:16:11 -0700 (PDT) Trent Piepho wrote: > There is already a sysfs led interface, you could just have the driver > export the leds to the led subsystem and use that. Yes, but: - this asks to have a kernel generated with CONFIG_NEW_LEDS, - the user must use some new program t

Re: [PATCH] LED control

2009-03-14 Thread Trent Piepho
On Sat, 14 Mar 2009, Mauro Carvalho Chehab wrote: > On Sat, 14 Mar 2009 12:59:23 +0100 > Jean-Francois Moine wrote: > > > + V4L2_CID_LEDS > > + integer > > + Switch on or off the LEDs or illuminators of the device. > > +In the control value, each LED may be coded in one bit (0: o

Re: [PATCH] LED control

2009-03-14 Thread Andy Walls
On Sat, 2009-03-14 at 09:17 -0300, Mauro Carvalho Chehab wrote: > On Sat, 14 Mar 2009 12:59:23 +0100 > Jean-Francois Moine wrote: > > > + V4L2_CID_LEDS > > + integer > > + Switch on or off the LEDs or illuminators of the device. > > +In the control value, each LED may be coded i

Re: [PATCH] LED control

2009-03-14 Thread Jean-Francois Moine
On Sat, 14 Mar 2009 09:17:47 -0300 Mauro Carvalho Chehab wrote: > On Sat, 14 Mar 2009 12:59:23 +0100 > Jean-Francois Moine wrote: > > > + V4L2_CID_LEDS > > + integer > > + Switch on or off the LEDs or illuminators of > > the device. +In the control value, each LED may be coded

Re: [PATCH] LED control

2009-03-14 Thread Mauro Carvalho Chehab
On Sat, 14 Mar 2009 12:59:23 +0100 Jean-Francois Moine wrote: > + V4L2_CID_LEDS > + integer > + Switch on or off the LEDs or illuminators of the device. > +In the control value, each LED may be coded in one bit (0: off, 1: on) or in > +many bits (light intensity). > +

[PATCH] LED control

2009-03-14 Thread Jean-Francois Moine
Some webcams have one or many lights (LED). This patch makes them controlable by the applications. Signed-off-by: Jean-Francois Moine -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/ led.pat Description: Binary data