summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-dev.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-06-21 15:23:27 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-06-21 15:23:27 +0200
commite2ecbd5491755142d00345bdf9c7ed4204cf75d4 (patch)
tree791ad5bd61f4d8fdac2426880257715a7f66b18e /linux/include/media/v4l2-dev.h
parent4b82fea3bde0ddce3ab4c911125c79c6eefe9616 (diff)
downloadmediapointer-dvb-s2-e2ecbd5491755142d00345bdf9c7ed4204cf75d4.tar.gz
mediapointer-dvb-s2-e2ecbd5491755142d00345bdf9c7ed4204cf75d4.tar.bz2
videodev: simplify and fix standard enumeration
From: Hans Verkuil <hverkuil@xs4all.nl> VIDIOC_ENUMSTD did not return all the PAL/SECAM/NTSC variants: it just returned one single PAL/SECAM/NTSC standard without separate entries for the trickier standards like NTSC-JP. Changed the code so that it behaves better. Also simplified the if/switch statements into a common standards lookup table. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-dev.h')
-rw-r--r--linux/include/media/v4l2-dev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h
index 484090509..0a03fa2f4 100644
--- a/linux/include/media/v4l2-dev.h
+++ b/linux/include/media/v4l2-dev.h
@@ -46,9 +46,9 @@
#define VFL_TYPE_VTX 3
/* Video standard functions */
-extern char *v4l2_norm_to_name(v4l2_std_id id);
+extern const char *v4l2_norm_to_name(v4l2_std_id id);
extern int v4l2_video_std_construct(struct v4l2_standard *vs,
- int id, char *name);
+ int id, const char *name);
/* Prints the ioctl in a human-readable format */
extern void v4l_printk_ioctl(unsigned int cmd);