Hi, Hans de Goede wrote: > Hi, > > On 02/27/2010 01:20 AM, Németh Márton wrote: >> From: Márton Németh<nm127@xxxxxxxxxxx> >> >> On Labtec Webcam 2200 there is a feedback LED which can be controlled >> independent from the streaming. > > This is true for a lot of cameras, so if we are going to add a way to > support control of the LED separate of the streaming state, we > should do that at the gspca_main level, and let sub drivers which > support this export a set_led callback function. If the code is moved to gspca_main level, what shall be the name of the LED? According to Documentation/leds-class.txt, chapter "LED Device Naming" my proposal for "devicename" would be: * /sys/class/leds/video-0::camera * /sys/class/leds/video-1::camera * /sys/class/leds/video-2::camera * ... or * /sys/class/leds/video0::camera * /sys/class/leds/video1::camera * /sys/class/leds/video2::camera * ... Which is the right one? > I must say I personally don't see much of a use case for this feature, > but I believe JF Moine does, so I'll leave further comments and > review of this to JF. I do believe it is important that if we go this > way we do so add the gspca_main level. > > Regards, > > Hans -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html