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.