[RFCv1 PATCH 0/3] Per-device-node capabilities

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

 



During the recent V4L-DVB workshop we discussed the meaning of the capabilities
field as returned by QUERYCAP. Historically these capabilities refer to the
capabilities of the video device as a whole, and not to the capabilities of the
filehandle through which QUERYCAP was called.

So QUERYCAP would give the same capabilities for video device nodes as it would
for vbi or radio device nodes.

For more complex devices it is very desirable to give the caps for just the
current device node.

This patch series adds this functionality to V4L2 by adding a new global
capability bit and a new device_caps field:

#define V4L2_CAP_DEVICE_CAPS            0x80000000  /* sets device capabilities field */

struct v4l2_capability {
	...
	__u32   device_caps;    /* Device node capabilities */
	...
}

It implements it for vivi and ivtv as well.

I haven't updated the documentation yet as I want to get a round of
feedback first. Especially with regards to the naming: I decided to call it
'device_caps' since for applications the term 'device' is fairly unambiguous
IMHO.

Comments?

	Hans

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux