subdev support for querying struct v4l2_input *

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hans,

In the cx23885 driver as part of vidioc_enum_input call, I have a need
to return V4L2_IN_ST_NO_SIGNAL in the status
field as part of struct v4l2_input. Thus, when no signal is detected
by the video decoder it can be signalled to the calling application.

I looks like subdev_core_ops doesn't currently support this, or have I
miss-understood something?

The patch below is a snippet from a larger patch I have which:
1. Adds this support to struct v4l2_subdev_core_ops
2. Adds support to the cx25840 and cx23885 drivers and makes the
feature available.

Do you have any comments or thoughts on the subdev_ops patch below?

Regards,

- Steve

Index: v4l-dvb/include/media/v4l2-subdev.h
===================================================================
--- v4l-dvb.orig/include/media/v4l2-subdev.h    2012-01-03
17:44:24.337826817 -0500
+++ v4l-dvb/include/media/v4l2-subdev.h 2012-01-03 17:44:54.729826263 -0500
@@ -172,6 +172,7 @@
                               struct v4l2_event_subscription *sub);
        int (*unsubscribe_event)(struct v4l2_subdev *sd, struct v4l2_fh *fh,
                                 struct v4l2_event_subscription *sub);
+       int (*enum_input)(struct v4l2_subdev *sd, struct v4l2_input *i);
 };



-- 
Steven Toth - Kernel Labs
http://www.kernellabs.com
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux