aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomasz Stanislawski <t.stanislaws@samsung.com>2011-06-29 06:16:15 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:00 -0400
commit5930ab2ba089e05c8de594c36836724f8df7725e (patch)
tree6ab957c024245e0bbcc041b7b66d575c5d6db100 /include
parent8b32dd0d3f9221719507700fa396d280143b4da1 (diff)
[media] v4l: add g_std_output callback to V4L2 subdev
Callback is used to acquire current analog TV standard from a subdev. It is used to avoid keeping current standard in top-level driver. Signed-off-by: Tomasz Stanislawski <t.stanislaws@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-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 3bc7f928c61a..9ff0ab9069d7 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_std_output: get current standard for video OUTPUT devices. This is ignored
233 by video input devices.
234
232 g_tvnorms_output: get v4l2_std_id with all standards supported by video 235 g_tvnorms_output: get v4l2_std_id with all standards supported by video
233 OUTPUT device. This is ignored by video input devices. 236 OUTPUT device. This is ignored by video input devices.
234 237
@@ -269,6 +272,7 @@ struct v4l2_subdev_video_ops {
269 int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config); 272 int (*s_routing)(struct v4l2_subdev *sd, u32 input, u32 output, u32 config);
270 int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); 273 int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags);
271 int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std); 274 int (*s_std_output)(struct v4l2_subdev *sd, v4l2_std_id std);
275 int (*g_std_output)(struct v4l2_subdev *sd, v4l2_std_id *std);
272 int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std); 276 int (*querystd)(struct v4l2_subdev *sd, v4l2_std_id *std);
273 int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std); 277 int (*g_tvnorms_output)(struct v4l2_subdev *sd, v4l2_std_id *std);
274 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status); 278 int (*g_input_status)(struct v4l2_subdev *sd, u32 *status);