|author||Hans Verkuil <firstname.lastname@example.org>||2012-01-11 06:45:05 -0300|
|committer||Mauro Carvalho Chehab <email@example.com>||2012-01-23 16:34:27 -0200|
[media] V4L2: Add per-device-node capabilities
If V4L2_CAP_DEVICE_CAPS is set, then the new device_caps field is filled with the capabilities of the opened device node. The capabilities field traditionally contains the capabilities of the physical device, being a superset of all capabilities available at the several device nodes. E.g., if you open /dev/video0, then if it contains VBI caps then that means that there is a corresponding vbi node as well. And the capabilities field of both the video and vbi nodes should contain identical caps. However, it would be very useful to also have a capabilities field that contains just the caps for the currently open device, hence the new CAP bit and field. Signed-off-by: Hans Verkuil <firstname.lastname@example.org> Signed-off-by: Mauro Carvalho Chehab <email@example.com>
Diffstat (limited to 'drivers/media/video/v4l2-ioctl.c')
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c
index 3f623859a337..d0d7281e01e0 100644
@@ -540,10 +540,12 @@ static long __video_do_ioctl(struct file *file,
dbgarg(cmd, "driver=%s, card=%s, bus=%s, "
+ "capabilities=0x%08x, "
cap->driver, cap->card, cap->bus_info,