Hi Paulo, On Thursday 26 February 2009 21:53:58 Paulo Assis wrote: > Hi, > In order to proper add dynamic controls to the uvc driver, I need at least > the vid string for the selected device. > I tried libwebcam approach by using /sys/class/video4linux, but this > proved highly distribution dependent and has caused a lot of trouble,
Really ? The /sys tree shouldn't be distribution dependent. What kind of problems have you run into ? > so no I'm parsing the values passed in the device card field of > v4l2_capability struct. UVC sets this to "UVC Camera (vid:pid)" and since I > only need these fields for the uvc driver there shouldn't be a problem, > right? > Or are there any plans to change this field in the future ? There are no plans, but the card field isn't meant to convey that information. The format might change in the future without notice. > The best solution would be if I could get these values directly in v4l2, > but it looks like v4l2 developers "forgot" or at least didn't consider this > information important enought. > If there is some other distro independent solution I would like to know. > I've also tried libusb, but failed to link the /sys/class device name to > the usb bus-devicename provided by this library. Best regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
