]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (4605): Fixes an issue with V4L1 and make headers-install
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Sep 2006 15:01:19 +0000 (12:01 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 10 Sep 2006 16:45:55 +0000 (13:45 -0300)
commitdcd694fa2d970a1ed6282cbc44845fda5da99f41
treebf72a91df67baf47560812ceb756d1a19eb289c7
parent3b21039d168bb55bc251c5874e5b12c60f69987b
V4L/DVB (4605): Fixes an issue with V4L1 and make headers-install

V4L1 support should be disabled when no CONFIG_VIDEO_V4L1_COMPAT is defined,
to allow checking for broken V4L2 ports. This is very important during the
migration phase for V4L2 API.
However, userspace apps should be capable of using both APIs, since they need
to test at runtime, via VIDIOCGCAP ioctl, if V4L1 is supported. So, when
__KERNEL__ is not defined, those ioctls and corresponding structs should be
visible.
This patch also removes the obsolete defines HAVE_V4L1 and HAVE_V4L2, that
where causing some confusion, and were replaced by CONFIG_VIDEO_V4L1_COMPAT
and CONFIG_VIDEO_V4L2.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/Kconfig
drivers/media/video/zoran.h
drivers/media/video/zoran_driver.c
include/linux/videodev.h
include/linux/videodev2.h
include/media/v4l2-dev.h