aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Stanislawski <t.stanislaws@samsung.com>2011-06-29 06:01:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:00 -0400
commit8b32dd0d3f9221719507700fa396d280143b4da1 (patch)
tree9becaea742baaf0ed450661165f7ae9b035f6aac
parent839cf81346b5145f0959b28652612eabaed48d47 (diff)
[media] v4l: add g_dv_preset callback to V4L2 subdev
Callback is used to acquire current digital video preset from a subdev. It is used to avoid keeping dv preset 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>
-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 44a5ddbc9e0f..3bc7f928c61a 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -246,6 +246,8 @@ struct v4l2_subdev_audio_ops {
246 s_dv_preset: set dv (Digital Video) preset in the sub device. Similar to 246 s_dv_preset: set dv (Digital Video) preset in the sub device. Similar to
247 s_std() 247 s_std()
248 248
249 g_dv_preset: get current dv (Digital Video) preset in the sub device.
250
249 query_dv_preset: query dv preset in the sub device. This is similar to 251 query_dv_preset: query dv preset in the sub device. This is similar to
250 querystd() 252 querystd()
251 253
@@ -286,6 +288,8 @@ struct v4l2_subdev_video_ops {
286 struct v4l2_dv_enum_preset *preset); 288 struct v4l2_dv_enum_preset *preset);
287 int (*s_dv_preset)(struct v4l2_subdev *sd, 289 int (*s_dv_preset)(struct v4l2_subdev *sd,
288 struct v4l2_dv_preset *preset); 290 struct v4l2_dv_preset *preset);
291 int (*g_dv_preset)(struct v4l2_subdev *sd,
292 struct v4l2_dv_preset *preset);
289 int (*query_dv_preset)(struct v4l2_subdev *sd, 293 int (*query_dv_preset)(struct v4l2_subdev *sd,
290 struct v4l2_dv_preset *preset); 294 struct v4l2_dv_preset *preset);
291 int (*s_dv_timings)(struct v4l2_subdev *sd, 295 int (*s_dv_timings)(struct v4l2_subdev *sd,