aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/spca500.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-07 14:49:57 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:30 -0400
commit36e819db435a61819d50c57c424a5ab2b9634e59 (patch)
tree298bc85147b5fb60eaf5e6ecb745382a9a3580fa /drivers/media/video/gspca/spca500.c
parent96ff65144c3e302698d6c53b8d05098844c6b064 (diff)
V4L/DVB (10345): gspca - jpeg subdrivers: One quantization table per subdriver.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/spca500.c')
-rw-r--r--drivers/media/video/gspca/spca500.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c
index 5450c3c4274b..e00f3b53bdff 100644
--- a/drivers/media/video/gspca/spca500.c
+++ b/drivers/media/video/gspca/spca500.c
@@ -22,6 +22,7 @@
22#define MODULE_NAME "spca500" 22#define MODULE_NAME "spca500"
23 23
24#include "gspca.h" 24#include "gspca.h"
25#define QUANT_VAL 5 /* quantization table */
25#include "jpeg.h" 26#include "jpeg.h"
26 27
27MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); 28MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>");
@@ -39,7 +40,6 @@ struct sd {
39 unsigned char contrast; 40 unsigned char contrast;
40 unsigned char colors; 41 unsigned char colors;
41 42
42 char qindex;
43 char subtype; 43 char subtype;
44#define AgfaCl20 0 44#define AgfaCl20 0
45#define AiptekPocketDV 1 45#define AiptekPocketDV 1
@@ -637,7 +637,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
637 cam->cam_mode = sif_mode; 637 cam->cam_mode = sif_mode;
638 cam->nmodes = ARRAY_SIZE(sif_mode); 638 cam->nmodes = ARRAY_SIZE(sif_mode);
639 } 639 }
640 sd->qindex = 5;
641 sd->brightness = BRIGHTNESS_DEF; 640 sd->brightness = BRIGHTNESS_DEF;
642 sd->contrast = CONTRAST_DEF; 641 sd->contrast = CONTRAST_DEF;
643 sd->colors = COLOR_DEF; 642 sd->colors = COLOR_DEF;
@@ -900,7 +899,7 @@ static void sd_pkt_scan(struct gspca_dev *gspca_dev,
900 ffd9, 2); 899 ffd9, 2);
901 900
902 /* put the JPEG header in the new frame */ 901 /* put the JPEG header in the new frame */
903 jpeg_put_header(gspca_dev, frame, sd->qindex, 0x22); 902 jpeg_put_header(gspca_dev, frame, 0x22);
904 903
905 data += SPCA500_OFFSET_DATA; 904 data += SPCA500_OFFSET_DATA;
906 len -= SPCA500_OFFSET_DATA; 905 len -= SPCA500_OFFSET_DATA;