aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Stanislawski <t.stanislaws@samsung.com>2011-03-02 11:16:37 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:00 -0400
commit839cf81346b5145f0959b28652612eabaed48d47 (patch)
tree1f08d7bf3ec15252fe5264a17fde9a717adc8ea4
parent243bf1a24d991f57398aa9d24e408ca83abc6135 (diff)
[media] v4l: add g_tvnorms_output callback to V4L2 subdev
Callback is used to acquire TV norms supported by a subdev. It is used to avoid having standards in top-level driver. Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--include/media/v4l2-subdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index b05579b4adb7..44a5ddbc9e0f 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -229,6 +229,9 @@ struct v4l2_subdev_audio_ops {
229 s_std_output: set v4l2_std_id for video OUTPUT devices. This is ignored by 229 s_std_output: set v4l2_std_id for video OUTPUT devices. This is ignored by
230 video input devices. 230 video input devices.
231 231
232 g_tvnorms_output: get v4l2_std_id with all standards supported by video
233 OUTPUT device. This is ignored by video input devices.
234
232 s_crystal_freq: sets the frequency of the crystal used to generate the 235 s_crystal_freq: sets the frequency of the crystal used to generate the
233 clocks in Hz. An extra flags field allows device specific configuration 236 clocks in Hz. An extra flags field allows device specific configuration
234 regarding clock frequency dividers, etc. If not used, then set flags 237 regarding clock frequency dividers, etc. If not used, then set flags
@@ -265,6 +268,7 @@ struct v4l2_subdev_video_ops {
265 int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); 268 int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags);
266 int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); 269 int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std);
267 int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); 270 int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std);
271 int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std);
268 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); 272 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status);
269 int (*s_stream)(struct v4l2_subdev *sd, int enable); 273 int (*s_stream)(struct v4l2_subdev *sd, int enable);
270 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc); 274 int (*cropcap)(struct v4l2_subdev *sd, struct v4l2_cropcap *cc);