El día Monday, March 14, 2011 a las 08:46:11AM +0100, Matthias Apitz escribió:

> 
> Hello,
> 
> My kernel is 9-CURRENT r214444 (as of October 2010) and I've updated
> the ports multimedia/webcamd and multimedia/cuse4bsd to the latest versions:
> 
> # pkg_info | fgrep webcamd
> webcamd-0.1.20_1    A port of Linux USB webcam and DVB drivers into userspace 
> 
> # webcamd
> ...
> USB Video Class driver (v0.1.0)
> IR JVC protocol handler initialized
> IR LIRC bridge handler initialized
> IR NEC protocol handler initialized
> IR RC5(x) protocol handler initialized
> IR RC6 protocol handler initialized
> IR Sony protocol handler initialized
> lirc_dev: IR Remote Control driver registered, major 13
> Attached ugen4.2[0] to cuse unit 0
> uvcvideo: Found UVC 1.00 device  (0c45:62c0)
> Creating /dev/video0
> 
> # pwcview
> Failed to set palette to YUV420P: Invalid argument

The message comes out of pwcview.c:

        ...
        if(ioctl(fd,VIDIOCGPICT,&vp) == -1) {
                perror("Failed to get current picture info");
                exit(1);
        }
        vp.palette = VIDEO_PALETTE_YUV420P;
        if(ioctl(fd,VIDIOCSPICT,&vp) == -1) {
                perror("Failed to set palette to YUV420P");
                exit(1);
        }
        ...


# fgrep VIDEO_PALETTE_YUV420P *.h
videodev.h:#define VIDEO_PALETTE_YUV420P        15      /* YUV 4:2:0 Planar */

Does it make sense to just comment out this ioctl(2) in pwcview.c?

        matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <g...@unixarea.de> - w http://www.unixarea.de/
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to