public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] v4l: Add VIDIOC_LOG_STATUS support for sub-device nodes
@ 2011-11-02 16:15 Sylwester Nawrocki
  2011-11-04 10:43 ` Laurent Pinchart
  0 siblings, 1 reply; 3+ messages in thread
From: Sylwester Nawrocki @ 2011-11-02 16:15 UTC (permalink / raw)
  To: linux-media; +Cc: riverful.kim, s.nawrocki, Kyungmin Park

The VIDIOC_LOG_STATUS ioctl allows to dump 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.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/video/v4l2-subdev.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/v4l2-subdev.c b/drivers/media/video/v4l2-subdev.c
index 179e20e..4fe1e7a 100644
--- a/drivers/media/video/v4l2-subdev.c
+++ b/drivers/media/video/v4l2-subdev.c
@@ -192,6 +192,9 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
 		return v4l2_subdev_call(sd, core, s_register, p);
 	}
 #endif
+	case VIDIOC_LOG_STATUS:
+		return v4l2_subdev_call(sd, core, log_status);
+
 #if defined(CONFIG_VIDEO_V4L2_SUBDEV_API)
 	case VIDIOC_SUBDEV_G_FMT: {
 		struct v4l2_subdev_format *format = arg;
-- 
1.7.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-04 16:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 16:15 [PATCH] v4l: Add VIDIOC_LOG_STATUS support for sub-device nodes Sylwester Nawrocki
2011-11-04 10:43 ` Laurent Pinchart
2011-11-04 16:08   ` Sylwester Nawrocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox