diff options
author | Andy Walls <awalls@md.metrocast.net> | 2010-07-18 17:18:06 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-08 22:42:54 -0400 |
commit | e9e5cf472751a16ebe80c9a47b512605e3511880 (patch) | |
tree | dabdcc18d919ba2fca7b2d4ade079636666cb536 /drivers/media/video | |
parent | ebbeb46000676af0772da4b7da22e2aae3889bd0 (diff) |
V4L/DVB: cx23885: Add a VIDIOC_LOG_STATUS ioctl function for analog video devices
Add a simple log_status function for raw analog video capture device nodes,
to provide insight into the state of the CX2388[578] A/V decoder core.
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index 4e44dcda3875..25194553c529 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -1205,6 +1205,21 @@ static int vidioc_s_input(struct file *file, void *priv, unsigned int i) | |||
1205 | return 0; | 1205 | return 0; |
1206 | } | 1206 | } |
1207 | 1207 | ||
1208 | static int vidioc_log_status(struct file *file, void *priv) | ||
1209 | { | ||
1210 | struct cx23885_fh *fh = priv; | ||
1211 | struct cx23885_dev *dev = fh->dev; | ||
1212 | |||
1213 | printk(KERN_INFO | ||
1214 | "%s/0: ============ START LOG STATUS ============\n", | ||
1215 | dev->name); | ||
1216 | call_all(dev, core, log_status); | ||
1217 | printk(KERN_INFO | ||
1218 | "%s/0: ============= END LOG STATUS =============\n", | ||
1219 | dev->name); | ||
1220 | return 0; | ||
1221 | } | ||
1222 | |||
1208 | static int vidioc_queryctrl(struct file *file, void *priv, | 1223 | static int vidioc_queryctrl(struct file *file, void *priv, |
1209 | struct v4l2_queryctrl *qctrl) | 1224 | struct v4l2_queryctrl *qctrl) |
1210 | { | 1225 | { |
@@ -1410,6 +1425,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { | |||
1410 | .vidioc_enum_input = vidioc_enum_input, | 1425 | .vidioc_enum_input = vidioc_enum_input, |
1411 | .vidioc_g_input = vidioc_g_input, | 1426 | .vidioc_g_input = vidioc_g_input, |
1412 | .vidioc_s_input = vidioc_s_input, | 1427 | .vidioc_s_input = vidioc_s_input, |
1428 | .vidioc_log_status = vidioc_log_status, | ||
1413 | .vidioc_queryctrl = vidioc_queryctrl, | 1429 | .vidioc_queryctrl = vidioc_queryctrl, |
1414 | .vidioc_g_ctrl = vidioc_g_ctrl, | 1430 | .vidioc_g_ctrl = vidioc_g_ctrl, |
1415 | .vidioc_s_ctrl = vidioc_s_ctrl, | 1431 | .vidioc_s_ctrl = vidioc_s_ctrl, |