diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-17 14:29:42 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-07-17 14:29:42 -0700 |
commit | 1c33921b7105f6b68adf3ac7977b242250b968ca (patch) | |
tree | 7231ebb19c145ea18a5f7ad18db5a18297e240f6 /linux/drivers/media/video/zoran_driver.c | |
parent | 450ead099a065f8a7e00b476aee04508940856ce (diff) | |
download | mediapointer-dvb-s2-1c33921b7105f6b68adf3ac7977b242250b968ca.tar.gz mediapointer-dvb-s2-1c33921b7105f6b68adf3ac7977b242250b968ca.tar.bz2 |
zr36067: Fix problems with module parameters
From: Trent Piepho <xyzzy@speakeasy.org>
Add permissions to all the module parameters so they can be queried and set
(when possible) via sysfs.
Add description for the vidmem parameter.
Change the video_nr parameter to an array, so that the video number can be
specified when a user has more than one card. The driver would try to give
all cards the same number otherwise, which will fail for all cards after the
first.
The default_input option would only allow values of 0 or 1, contrary to the
description. Allow values up to the number of inputs defined for the card.
Add description of lock_norm's different behavior for 1 and >1.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Acked-by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
Diffstat (limited to 'linux/drivers/media/video/zoran_driver.c')
-rw-r--r-- | linux/drivers/media/video/zoran_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c index 2fbb02a52..9fede04f4 100644 --- a/linux/drivers/media/video/zoran_driver.c +++ b/linux/drivers/media/video/zoran_driver.c @@ -202,8 +202,8 @@ extern int jpg_bufsize; extern int pass_through; static int lock_norm = 0; /* 1=Don't change TV standard (norm) */ -module_param(lock_norm, int, 0); -MODULE_PARM_DESC(lock_norm, "Users can't change norm"); +module_param(lock_norm, int, 0644); +MODULE_PARM_DESC(lock_norm, "Prevent norm changes (1 = ignore, >1 = fail)"); #ifdef CONFIG_VIDEO_V4L2 /* small helper function for calculating buffersizes for v4l2 |