[glsdk/meta-ti-glsdk.git] / recipes-bsp / linux / linux-omap / media / 0026-v4l-v4l2_subdev-pad-level-operations.patch
1 From 7a089b741d5c2ca3881d61e81971a1a0e464aa27 Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Wed, 9 Dec 2009 12:39:52 +0100
4 Subject: [PATCH 26/43] v4l: v4l2_subdev pad-level operations
6 Add a v4l2_subdev_pad_ops structure for the operations that need to be
7 performed at the pad level such as format-related operations.
9 Pad format-related operations use v4l2_mbus_framefmt instead of
10 v4l2_format.
12 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
13 ---
14 include/media/v4l2-subdev.h | 5 +++++
15 1 files changed, 5 insertions(+), 0 deletions(-)
17 diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
18 index af704df..4f6ddba 100644
19 --- a/include/media/v4l2-subdev.h
20 +++ b/include/media/v4l2-subdev.h
21 @@ -42,6 +42,7 @@ struct v4l2_ctrl_handler;
22 struct v4l2_event_subscription;
23 struct v4l2_fh;
24 struct v4l2_subdev;
25 +struct v4l2_subdev_fh;
26 struct tuner_setup;
28 /* decode_vbi_line */
29 @@ -423,6 +424,9 @@ struct v4l2_subdev_ir_ops {
30 struct v4l2_subdev_ir_parameters *params);
31 };
33 +struct v4l2_subdev_pad_ops {
34 +};
35 +
36 struct v4l2_subdev_ops {
37 const struct v4l2_subdev_core_ops *core;
38 const struct v4l2_subdev_file_ops *file;
39 @@ -432,6 +436,7 @@ struct v4l2_subdev_ops {
40 const struct v4l2_subdev_vbi_ops *vbi;
41 const struct v4l2_subdev_ir_ops *ir;
42 const struct v4l2_subdev_sensor_ops *sensor;
43 + const struct v4l2_subdev_pad_ops *pad;
44 };
46 #define V4L2_SUBDEV_NAME_SIZE 32
47 --
48 1.6.6.1