aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/stk014.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/gspca/stk014.c')
-rw-r--r--drivers/media/video/gspca/stk014.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c
index ba31eb318652..d1d54edd80bd 100644
--- a/drivers/media/video/gspca/stk014.c
+++ b/drivers/media/video/gspca/stk014.c
@@ -21,6 +21,8 @@
21#define MODULE_NAME "stk014" 21#define MODULE_NAME "stk014"
22 22
23#include "gspca.h" 23#include "gspca.h"
24#define QUANT_VAL 7 /* quantization table */
25 /* <= 4 KO - 7: good (enough!) */
24#include "jpeg.h" 26#include "jpeg.h"
25 27
26MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>"); 28MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>");
@@ -37,9 +39,6 @@ struct sd {
37 unsigned char lightfreq; 39 unsigned char lightfreq;
38}; 40};
39 41
40/* global parameters */
41static int sd_quant = 7; /* <= 4 KO - 7: good (enough!) */
42
43/* V4L2 controls supported by the driver */ 42/* V4L2 controls supported by the driver */
44static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); 43static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val);
45static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); 44static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val);
@@ -418,7 +417,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
418 ffd9, 2); 417 ffd9, 2);
419 418
420 /* put the JPEG 411 header */ 419 /* put the JPEG 411 header */
421 jpeg_put_header(gspca_dev, frame, sd_quant, 0x22); 420 jpeg_put_header(gspca_dev, frame, 0x22);
422 421
423 /* beginning of the frame */ 422 /* beginning of the frame */
424#define STKHDRSZ 12 423#define STKHDRSZ 12
@@ -575,6 +574,3 @@ static void __exit sd_mod_exit(void)
575 574
576module_init(sd_mod_init); 575module_init(sd_mod_init);
577module_exit(sd_mod_exit); 576module_exit(sd_mod_exit);
578
579module_param_named(quant, sd_quant, int, 0644);
580MODULE_PARM_DESC(quant, "Quantization index (0..8)");