aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-11-15 23:21:06 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 03:53:34 -0400
commitf80a3ab083474670527df3ca849546a7059da766 (patch)
treee616d3254964e8b0a4d3d65e87a489e685d7ab9e /include/media
parentf6a5cb1be894468cdc69ec557d47f40c28f64642 (diff)
[media] v4l: Add subdev sensor g_skip_frames operation
Some buggy sensors generate corrupt frames when the stream is started. This new operation return the number of corrupt frames to skip when starting the stream. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-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 edeaf398d480..1562c4ff3a65 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -341,9 +341,13 @@ struct v4l2_subdev_vbi_ops {
341 * This is needed for some sensors, which always corrupt 341 * This is needed for some sensors, which always corrupt
342 * several top lines of the output image, or which send their 342 * several top lines of the output image, or which send their
343 * metadata in them. 343 * metadata in them.
344 * @g_skip_frames: number of frames to skip at stream start. This is needed for
345 * buggy sensors that generate faulty frames when they are
346 * turned on.
344 */ 347 */
345struct v4l2_subdev_sensor_ops { 348struct v4l2_subdev_sensor_ops {
346 int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines); 349 int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines);
350 int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames);
347}; 351};
348 352
349/* 353/*