diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-05-29 12:14:59 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2007-05-29 12:14:59 +0200 |
commit | 6a60b7c1f736f406059a8e5ae1afdedc6a2101db (patch) | |
tree | 9fee6beb1d507533c580fc6ed74da309f7421921 | |
parent | 8d9359376069ed515be1e3ec1afa1f73de1bfa3b (diff) | |
download | mediapointer-dvb-s2-6a60b7c1f736f406059a8e5ae1afdedc6a2101db.tar.gz mediapointer-dvb-s2-6a60b7c1f736f406059a8e5ae1afdedc6a2101db.tar.bz2 |
Merge from master
From: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-video.c | 23 | ||||
-rwxr-xr-x | v4l/scripts/make_kconfig.pl | 14 |
2 files changed, 9 insertions, 28 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c index 6d644bb6d..41b3a0d42 100644 --- a/linux/drivers/media/video/usbvision/usbvision-video.c +++ b/linux/drivers/media/video/usbvision/usbvision-video.c @@ -156,35 +156,12 @@ static int vbi_nr = -1; /* Grab parameters for the device driver */ /* Showing parameters under SYSFS */ -#if defined(module_param) module_param(isocMode, int, 0444); module_param(video_debug, int, 0444); module_param(PowerOnAtOpen, int, 0444); module_param(video_nr, int, 0444); module_param(radio_nr, int, 0444); module_param(vbi_nr, int, 0444); -#else -/* Old Style */ -MODULE_PARAM(isocMode, "i"); -/* Grab the Debug Mode of the device driver */ -MODULE_PARM(video_debug, "i"); -/* Grab the compression to be adaptive */ -MODULE_PARM(adjustCompression, "i"); -/* Grab the device to power on at startup */ -MODULE_PARM(PowerOnAtOpen, "i"); -/* To help people with Black and White output with using s-video input. - Some cables and input device are wired differently. */ -MODULE_PARM(SwitchSVideoInput, "i"); -/* video_nr option allows to specify a certain /dev/videoX device - (like /dev/video0 or /dev/video1 ...) */ -MODULE_PARM(video_nr, "i"); -/* radio_nr option allows to specify a certain /dev/radioX device - (like /dev/radio0 or /dev/radio1 ...) */ -MODULE_PARM(radio_nr, "i"); -/* vbi_nr option allows to specify a certain /dev/vbiX device - (like /dev/vbi0 or /dev/vbi1 ...) */ -MODULE_PARM(vbi_nr, "i"); -#endif MODULE_PARM_DESC(isocMode, " Set the default format for ISOC endpoint. Default: 0x60 (Compression On)"); MODULE_PARM_DESC(video_debug, " Set the default Debug Mode of the device driver. Default: 0 (Off)"); diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl index d558aaeb6..7cb258d86 100755 --- a/v4l/scripts/make_kconfig.pl +++ b/v4l/scripts/make_kconfig.pl @@ -475,6 +475,10 @@ sub cmp_ver($$) return $v1_sublevel <=> $v2_sublevel; } +# Get kernel version +get_version(); +print "Preparing to compile for kernel version $kernver\n"; + # Get Kernel's config settings %kernopts = process_config("$kernel/.config"); @@ -492,14 +496,14 @@ EOF exit -1; } +# Kernel < 2.6.22 is missing the HAS_IOMEM option +if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) { + $kernopts{HAS_IOMEM} = 2; +} + # Get minimum kernel version for our variables parse_versions(); -# Get kernel version -get_version(); - -print "Preparing to compile for kernel version $kernver\n"; - kernelcheck(); open OUT, ">Kconfig" or die "Cannot write Kconfig file"; |