Hi Hans, On Friday 18 July 2008, Hans Lammerts wrote: > Hi, > > Although I have read al lot of posts regarding problems with my > Logitech Orbit cam when using uvcvideo, I still can't pinpoint my > exact problem. > I downloaded the latest SVN, compiled it and loaded the module with > tracing set to 0xffff. > (BTW, trying this on an Kubuntu 8.04 machine). > When using the zmu command from Zoneminder (trying to access the > camera which has been discovered on /dev/video0), an error is returned > from zmu, and the debug info in dmesg looks like this (starting at > modprobe'ing the module, followed by the zmu command) : > > [173818.963187] usbcore: deregistering interface driver uvcvideo > [173833.966421] uvcvideo: Adding mapping Brightness to control > 00000000-0000-0000-0000-000000000101/2. > [173833.967129] uvcvideo: Adding mapping Contrast to control > 00000000-0000-0000-0000-000000000101/3. > [173833.967616] uvcvideo: Adding mapping Hue to control > 00000000-0000-0000-0000-000000000101/6. > [173833.968012] uvcvideo: Adding mapping Saturation to control > 00000000-0000-0000-0000-000000000101/7. > [173833.968443] uvcvideo: Adding mapping Sharpness to control > 00000000-0000-0000-0000-000000000101/8. > [173833.968849] uvcvideo: Adding mapping Gamma to control > 00000000-0000-0000-0000-000000000101/9. > [173833.969245] uvcvideo: Adding mapping Backlight Compensation to > control 00000000-0000-0000-0000-000000000101/1. > [173833.969781] uvcvideo: Adding mapping Gain to control > 00000000-0000-0000-0000-000000000101/4. > [173833.970174] uvcvideo: Adding mapping Power Line Frequency to > control 00000000-0000-0000-0000-000000000101/5. > [173833.970611] uvcvideo: Adding mapping Hue, Auto to control > 00000000-0000-0000-0000-000000000101/16. > [173833.971012] uvcvideo: Adding mapping Exposure, Auto to control > 00000000-0000-0000-0000-000000000001/2. > [173833.971450] uvcvideo: Adding mapping Exposure, Auto Priority to > control 00000000-0000-0000-0000-000000000001/3. > [173833.971974] uvcvideo: Adding mapping Exposure (Absolute) to > control 00000000-0000-0000-0000-000000000001/4. > [173833.972401] uvcvideo: Adding mapping White Balance Temperature, > Auto to control 00000000-0000-0000-0000-000000000101/11. > [173833.972859] uvcvideo: Adding mapping White Balance Temperature to > control 00000000-0000-0000-0000-000000000101/10. > [173833.973320] uvcvideo: Adding mapping White Balance Component, Auto > to control 00000000-0000-0000-0000-000000000101/13. > [173833.973916] uvcvideo: Adding mapping White Balance Blue Component > to control 00000000-0000-0000-0000-000000000101/12. > [173833.973930] uvcvideo: Adding mapping White Balance Red Component > to control 00000000-0000-0000-0000-000000000101/12. > [173833.973940] uvcvideo: Adding mapping Focus (absolute) to control > 00000000-0000-0000-0000-000000000001/6. > [173833.973950] uvcvideo: Adding mapping Focus, Auto to control > 00000000-0000-0000-0000-000000000001/8. > [173833.974050] uvcvideo: Probing generic UVC device 1 > [173833.974084] uvcvideo: Found format MJPEG. > [173833.974091] uvcvideo: - 160x120 (30.0 fps) > [173833.974095] uvcvideo: - 176x144 (30.0 fps) > [173833.974099] uvcvideo: - 320x240 (15.0 fps) > [173833.974102] uvcvideo: - 352x288 (15.0 fps) > [173833.974106] uvcvideo: - 640x480 (15.0 fps) > [173833.974113] uvcvideo: Found format YUV 4:2:2 (YUYV). > [173833.974117] uvcvideo: - 160x120 (15.0 fps) > [173833.974121] uvcvideo: - 176x144 (15.0 fps) > [173833.974148] uvcvideo: Found a Status endpoint (addr 87). > [173833.974154] uvcvideo: Found UVC 1.00 device <unnamed> (046d:08cc) > [173833.974176] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/2 to device 1 entity 2 > [173833.974185] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/3 to device 1 entity 2 > [173833.974193] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/7 to device 1 entity 2 > [173833.974202] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/8 to device 1 entity 2 > [173833.974210] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/1 to device 1 entity 2 > [173833.974218] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/4 to device 1 entity 2 > [173833.974226] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/5 to device 1 entity 2 > [173833.974234] uvcvideo: Added control > 00000000-0000-0000-0000-000000000001/2 to device 1 entity 1 > [173833.974242] uvcvideo: Added control > 00000000-0000-0000-0000-000000000001/3 to device 1 entity 1 > [173833.974250] uvcvideo: Added control > 00000000-0000-0000-0000-000000000001/4 to device 1 entity 1 > [173833.974259] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/11 to device 1 entity 2 > [173833.974267] uvcvideo: Added control > 00000000-0000-0000-0000-000000000101/10 to device 1 entity 2 > [173833.974276] uvcvideo: Scanning UVC chain: OT 5 <- XU 4 (-> XU 12 8 > 10 11 9) <- XU 3 (-> XU 13) <- PU 2 <- IT 1 > [173833.974294] uvcvideo: Found a valid video chain (1 -> 5). > [173833.999844] input: UVC Camera (046d:08cc) as > /devices/pci0000:00/0000:00:07.3/usb2/2-1/2-1:1.0/input/input11 > [173834.018986] uvcvideo: uvc_v4l2_open > [173834.019025] uvcvideo: uvc_v4l2_ioctl > [173834.019035] v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600) > [173834.021566] uvcvideo: uvc_v4l2_ioctl > [173834.021590] v4l1 ioctl VIDIOCGCAP, dir=r- (0x803c7601) > [173834.021601] v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600) > [173834.021610] v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc04c561a) > [173834.021615] v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc04c561a) > [173834.021620] v4l2 ioctl VIDIOC_ENUM_FMT, dir=rw (0xc0405602) > [173834.021627] v4l2 ioctl VIDIOC_TRY_FMT, dir=rw (0xc0cc5640) > [173834.021634] uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000. > [173834.021641] uvcvideo: Using default frame interval 66666.6 us (15.0 > fps). [173834.024389] uvcvideo: UVC device initialized. > [173834.024444] usbcore: registered new interface driver uvcvideo > [173834.024453] USB Video Class driver (SVN r231) > [173834.059086] uvcvideo: uvc_v4l2_release > [173839.040639] uvcvideo: uvc_v4l2_open > [173839.041580] uvcvideo: uvc_v4l2_ioctl > [173839.041596] v4l1 ioctl VIDIOCGCAP, dir=r- (0x803c7601) > [173839.041608] v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600) > [173839.041616] v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc04c561a) > [173839.041622] v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc04c561a) > [173839.041627] v4l2 ioctl VIDIOC_ENUM_FMT, dir=rw (0xc0405602) > [173839.041634] v4l2 ioctl VIDIOC_TRY_FMT, dir=rw (0xc0cc5640) > [173839.044058] uvcvideo: Trying format 0x47504a4d (MJPG): 10000x10000. > [173839.044069] uvcvideo: Using default frame interval 66666.6 us (15.0 > fps). [173839.080447] uvcvideo: uvc_v4l2_ioctl > [173839.080472] v4l1 ioctl VIDIOCGWIN, dir=r- (0x80207609) > [173839.080481] v4l2 ioctl VIDIOC_G_FMT, dir=rw (0xc0cc5604) > [173839.080488] v4l2 ioctl VIDIOC_G_FMT, dir=rw (0xc0cc5604) > [173839.080501] uvcvideo: uvc_v4l2_ioctl > [173839.080505] v4l1 ioctl VIDIOCGPICT, dir=r- (0x800e7606) > [173839.080511] v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) > [173839.094318] v4l2 ioctl VIDIOC_G_CTRL, dir=rw (0xc008561b) > [173839.097323] v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) > [173839.097336] uvcvideo: Control 0x00980903 not found. > [173839.097341] v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) > [173839.116303] v4l2 ioctl VIDIOC_G_CTRL, dir=rw (0xc008561b) > [173839.120396] v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) > [173839.133307] v4l2 ioctl VIDIOC_G_CTRL, dir=rw (0xc008561b) > [173839.137300] v4l2 ioctl VIDIOC_QUERYCTRL, dir=rw (0xc0445624) > [173839.137313] uvcvideo: Control 0x00980910 not found. > [173839.137320] v4l2 ioctl VIDIOC_G_FMT, dir=rw (0xc0cc5604) > [173839.137381] uvcvideo: uvc_v4l2_ioctl > [173839.137388] v4l1 ioctl VIDIOCGCHAN, dir=rw (0xc0307602) > [173839.137395] v4l2 ioctl VIDIOC_ENUMINPUT, dir=rw (0xc04c561a) > [173839.137401] v4l2 ioctl VIDIOC_G_STD, dir=r- (0x80085617) > [173839.137405] uvcvideo: Unsupported ioctl 0x80085617 > [173839.138738] uvcvideo: uvc_v4l2_release > > Questions: > > 1) Is zmu causing this error ?
I'd say yes. The uvcvideo driver doesn't implement the optional VIDIOC_G_STD ioctl, as video standards don't make sense for a webcam. zmu probably chokes on this instead of recovering gracefully. > 2) Is there another tool/utility that I can use to access this cam, if > zmu is causing this behaviour ? I depends what you want to do. I personally use luvcview for testing purpose. ucview has been reported to work great as well. > 3) Is the line before last the actual cause of the problem ? I can't be sure, but as I answered to your first question, I think it is. > If anyone would be so kind to point me in any direction at all > (preferably one that leads to a solution of some sort), it would be > greatly appreciated. Best regards, Laurent Pinchart _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
