]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (8092): videodev: simplify and fix standard enumeration
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 21 Jun 2008 16:23:27 +0000 (13:23 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 26 Jun 2008 18:58:57 +0000 (15:58 -0300)
commit57e95d92ed9ee9d41c1b67c837b85d28ecfad9ff
tree252e62177f7424c00d004a32388e6385147dab73
parent783c8e8084801c6ee2a407d8b6ce9c85931ecbb2
V4L/DVB (8092): videodev: simplify and fix standard enumeration

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/videodev.c
include/media/v4l2-dev.h