Question regarding video_register_device()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello Gerd, Michael,

what is a *straight* v4l2 driver supposed to put into the "struct video_device" argument for a call to video_register_device() ?

It's defined like this:
struct video_device
{
	struct module *owner;
     	char name[32];
 	int type;       /* v4l1 */
 	int type2;      /* v4l2 */
[...]

But there are only type defines for v4l1 in videodev.h.

Should a driver put the same defines as for the v4l2 capabilities, ie.
#define V4L2_CAP_VIDEO_CAPTURE	0x00000001  /* Is a video capture device */
#define V4L2_CAP_VIDEO_OUTPUT	0x00000002  /* Is a video output device */
#define V4L2_CAP_VIDEO_OVERLAY	0x00000004  /* Can do video overlay */

Please note that I don't intend to support v4l1 at all, so I won't to drop all backward compatibility stuff completly...

CU
Michael.





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux