summaryrefslogtreecommitdiff
path: root/linux/include/media
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
commit524c72c90e185f6d07719ce31db5507dcf6bf85c (patch)
tree711623a0ae299f33ee09f2b4ee60bc6e6bfdc13c /linux/include/media
parentf848a016635d7ec5b7624ef9235b5a39ca0afee7 (diff)
downloadmediapointer-dvb-s2-524c72c90e185f6d07719ce31db5507dcf6bf85c.tar.gz
mediapointer-dvb-s2-524c72c90e185f6d07719ce31db5507dcf6bf85c.tar.bz2
v4l2: New function v4l2_video_std_frame_period
From: Trent Piepho <xyzzy@speakeasy.org> Some code was calling v4l2_video_std_construct() when all it cared about was the frame period. So make a function that just returns that and have v4l2_video_std_construct() use it. At this point there are no users of v4l2_video_std_construct() left outside of v4l2-ioctl, so it could be un-exported and made static. Change v4l2_video_std_construct() so that it doesn't zero out the struct v4l2_standard passed in. It's already been zeroed out in the common ioctl code. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/include/media')
-rw-r--r--linux/include/media/v4l2-ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-ioctl.h b/linux/include/media/v4l2-ioctl.h
index b01c04486..a8b4c0b67 100644
--- a/linux/include/media/v4l2-ioctl.h
+++ b/linux/include/media/v4l2-ioctl.h
@@ -267,6 +267,7 @@ struct v4l2_ioctl_ops {
/* Video standard functions */
extern const char *v4l2_norm_to_name(v4l2_std_id id);
+extern void v4l2_video_std_frame_period(int id, struct v4l2_fract *frameperiod);
extern int v4l2_video_std_construct(struct v4l2_standard *vs,
int id, const char *name);
/* Prints the ioctl in a human-readable format */