[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-omap / media / 0032-v4l-Add-subdev-sensor-g_skip_frames-operation.patch
1 From 80c35f54b7d24b5f05e1e510f87e2ad1b94efede Mon Sep 17 00:00:00 2001
2 From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
3 Date: Tue, 16 Nov 2010 06:21:06 +0200
4 Subject: [PATCH 32/43] v4l: Add subdev sensor g_skip_frames operation
6 Some buggy sensors generate corrupt frames when the stream is started.
7 This new operation return the number of corrupt frames to skip when
8 starting the stream.
10 Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
11 ---
12 include/media/v4l2-subdev.h | 4 ++++
13 1 files changed, 4 insertions(+), 0 deletions(-)
15 diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
16 index a02663e..181de59 100644
17 --- a/include/media/v4l2-subdev.h
18 +++ b/include/media/v4l2-subdev.h
19 @@ -352,9 +352,13 @@ struct v4l2_subdev_vbi_ops {
20 * This is needed for some sensors, which always corrupt
21 * several top lines of the output image, or which send their
22 * metadata in them.
23 + * @g_skip_frames: number of frames to skip at stream start. This is needed for
24 + * buggy sensors that generate faulty frames when they are
25 + * turned on.
26 */
27 struct v4l2_subdev_sensor_ops {
28 int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines);
29 + int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames);
30 };
32 /*
33 --
34 1.6.6.1