summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-int-device.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-10-18 17:23:45 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-10-18 17:23:45 +0200
commit8d323d3fcc16d1ae16aa26da0d17bb1044b992a9 (patch)
tree969d071cc4d62bcee66ffffa7331a651b68f2447 /linux/include/media/v4l2-int-device.h
parent8584f88c860ac958d86d9f714ff355768b1665af (diff)
downloadmediapointer-dvb-s2-8d323d3fcc16d1ae16aa26da0d17bb1044b992a9.tar.gz
mediapointer-dvb-s2-8d323d3fcc16d1ae16aa26da0d17bb1044b992a9.tar.bz2
v4l2-int-if: Add command to get slave private data.
From: Sakari Ailus <sakari.ailus@nokia.com> vidioc_int_g_priv is used to get master's slave-related private data structure. The structure can contain for example master's configuration specific to slave. Priority: normal Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-int-device.h')
-rw-r--r--linux/include/media/v4l2-int-device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-int-device.h b/linux/include/media/v4l2-int-device.h
index c8b80e0f0..d9a005365 100644
--- a/linux/include/media/v4l2-int-device.h
+++ b/linux/include/media/v4l2-int-device.h
@@ -184,6 +184,11 @@ enum v4l2_int_ioctl_num {
vidioc_int_dev_exit_num,
/* Set device power state: 0 is off, non-zero is on. */
vidioc_int_s_power_num,
+ /*
+ * Get slave private data, e.g. platform-specific slave
+ * configuration used by the master.
+ */
+ vidioc_int_g_priv_num,
/* Get slave interface parameters. */
vidioc_int_g_ifparm_num,
/* Does the slave need to be reset after VIDIOC_DQBUF? */
@@ -267,6 +272,7 @@ V4L2_INT_WRAPPER_1(s_parm, struct v4l2_streamparm, *);
V4L2_INT_WRAPPER_0(dev_init);
V4L2_INT_WRAPPER_0(dev_exit);
V4L2_INT_WRAPPER_1(s_power, int, );
+V4L2_INT_WRAPPER_1(g_priv, void, *);
V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *);
V4L2_INT_WRAPPER_1(g_needs_reset, void, *);