diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2011-10-01 10:13:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-06 10:00:11 -0500 |
commit | bcd158de94238d90adf7275548f0aaf2de724ab1 (patch) | |
tree | a194de0edd2953454d0015e125fa2d3f8e0a1462 /drivers/media/video | |
parent | f664684a56deb7675363e2fa3f1e2a5eedbb3222 (diff) |
[media] v4l: Add VIDIOC_LOG_STATUS support for sub-device nodes
The VIDIOC_LOG_STATUS ioctl allows to dump the current status of a driver
to the kernel log. Currently this ioctl is only available at video device
nodes and the subdevs rely on the host driver to expose their core.log_status
operation to user space.
This patch adds VIDIOC_LOG_STATUS support at the sub-device nodes,
for standalone subdevs that expose their own /dev entry.
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/v4l2-subdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/video/v4l2-subdev.c b/drivers/media/video/v4l2-subdev.c index 65ade5f03c2e..41d118ee2de6 100644 --- a/drivers/media/video/v4l2-subdev.c +++ b/drivers/media/video/v4l2-subdev.c | |||
@@ -193,6 +193,10 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
193 | return v4l2_subdev_call(sd, core, s_register, p); | 193 | return v4l2_subdev_call(sd, core, s_register, p); |
194 | } | 194 | } |
195 | #endif | 195 | #endif |
196 | |||
197 | case VIDIOC_LOG_STATUS: | ||
198 | return v4l2_subdev_call(sd, core, log_status); | ||
199 | |||
196 | #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API) | 200 | #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API) |
197 | case VIDIOC_SUBDEV_G_FMT: { | 201 | case VIDIOC_SUBDEV_G_FMT: { |
198 | struct v4l2_subdev_format *format = arg; | 202 | struct v4l2_subdev_format *format = arg; |