aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans de Goede <j.w.r.degoede@hhs.nl>2008-07-03 05:48:22 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:16:29 -0400
commitd646e701819f994c5cb1507dc859b739b5478d32 (patch)
treea9739024eb2848c4c162b590f60375d799a93467 /drivers
parent0c61621412ca09bd692cef86d4c9f358d5e81b0c (diff)
V4L/DVB (8191): gspca: Make CONFIG_VIDEO_ADV_DEBUG actually work.
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/gspca.c12
-rw-r--r--drivers/media/video/gspca/gspca.h2
-rw-r--r--drivers/media/video/gspca/zc3xx.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 25e42bd7af87..b36913017d7b 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -50,7 +50,7 @@ static int video_nr = -1;
50 50
51static int comp_fac = 30; /* Buffer size ratio when compressed in % */ 51static int comp_fac = 30; /* Buffer size ratio when compressed in % */
52 52
53#ifdef VIDEO_ADV_DEBUG 53#ifdef CONFIG_VIDEO_ADV_DEBUG
54int gspca_debug = D_ERR | D_PROBE; 54int gspca_debug = D_ERR | D_PROBE;
55EXPORT_SYMBOL(gspca_debug); 55EXPORT_SYMBOL(gspca_debug);
56 56
@@ -817,7 +817,7 @@ static int try_fmt_vid_cap(struct gspca_dev *gspca_dev,
817 /* (luvcview problem) */ 817 /* (luvcview problem) */
818 if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG) 818 if (fmt->fmt.pix.pixelformat == V4L2_PIX_FMT_MJPEG)
819 fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_JPEG; 819 fmt->fmt.pix.pixelformat = V4L2_PIX_FMT_JPEG;
820#ifdef VIDEO_ADV_DEBUG 820#ifdef CONFIG_VIDEO_ADV_DEBUG
821 if (gspca_debug & D_CONF) 821 if (gspca_debug & D_CONF)
822 PDEBUG_MODE("try fmt cap", fmt->fmt.pix.pixelformat, w, h); 822 PDEBUG_MODE("try fmt cap", fmt->fmt.pix.pixelformat, w, h);
823#endif 823#endif
@@ -837,7 +837,7 @@ static int try_fmt_vid_cap(struct gspca_dev *gspca_dev,
837 /* no chance, return this mode */ 837 /* no chance, return this mode */
838 fmt->fmt.pix.pixelformat = 838 fmt->fmt.pix.pixelformat =
839 gspca_dev->cam.cam_mode[mode].pixfmt; 839 gspca_dev->cam.cam_mode[mode].pixfmt;
840#ifdef VIDEO_ADV_DEBUG 840#ifdef CONFIG_VIDEO_ADV_DEBUG
841 if (gspca_debug & D_CONF) { 841 if (gspca_debug & D_CONF) {
842 PDEBUG_MODE("new format", 842 PDEBUG_MODE("new format",
843 fmt->fmt.pix.pixelformat, 843 fmt->fmt.pix.pixelformat,
@@ -952,7 +952,7 @@ static int dev_open(struct inode *inode, struct file *file)
952 } 952 }
953 gspca_dev->users++; 953 gspca_dev->users++;
954 file->private_data = gspca_dev; 954 file->private_data = gspca_dev;
955#ifdef VIDEO_ADV_DEBUG 955#ifdef CONFIG_VIDEO_ADV_DEBUG
956 /* activate the v4l2 debug */ 956 /* activate the v4l2 debug */
957 if (gspca_debug & D_V4L2) 957 if (gspca_debug & D_V4L2)
958 gspca_dev->vdev.debug |= 3; 958 gspca_dev->vdev.debug |= 3;
@@ -1225,7 +1225,7 @@ static int vidioc_streamon(struct file *file, void *priv,
1225 if (ret < 0) 1225 if (ret < 0)
1226 goto out; 1226 goto out;
1227 } 1227 }
1228#ifdef VIDEO_ADV_DEBUG 1228#ifdef CONFIG_VIDEO_ADV_DEBUG
1229 if (gspca_debug & D_STREAM) { 1229 if (gspca_debug & D_STREAM) {
1230 PDEBUG_MODE("stream on OK", 1230 PDEBUG_MODE("stream on OK",
1231 gspca_dev->pixfmt, 1231 gspca_dev->pixfmt,
@@ -1980,7 +1980,7 @@ static void __exit gspca_exit(void)
1980module_init(gspca_init); 1980module_init(gspca_init);
1981module_exit(gspca_exit); 1981module_exit(gspca_exit);
1982 1982
1983#ifdef VIDEO_ADV_DEBUG 1983#ifdef CONFIG_VIDEO_ADV_DEBUG
1984module_param_named(debug, gspca_debug, int, 0644); 1984module_param_named(debug, gspca_debug, int, 0644);
1985MODULE_PARM_DESC(debug, 1985MODULE_PARM_DESC(debug,
1986 "Debug (bit) 0x01:error 0x02:probe 0x04:config" 1986 "Debug (bit) 0x01:error 0x02:probe 0x04:config"
diff --git a/drivers/media/video/gspca/gspca.h b/drivers/media/video/gspca/gspca.h
index 1581fa808b6f..9c894daf356a 100644
--- a/drivers/media/video/gspca/gspca.h
+++ b/drivers/media/video/gspca/gspca.h
@@ -28,7 +28,7 @@
28#define V4L2_CID_SHARPNESS (V4L2_CID_BASE+27) 28#define V4L2_CID_SHARPNESS (V4L2_CID_BASE+27)
29#endif 29#endif
30 30
31#ifdef VIDEO_ADV_DEBUG 31#ifdef CONFIG_VIDEO_ADV_DEBUG
32/* GSPCA our debug messages */ 32/* GSPCA our debug messages */
33extern int gspca_debug; 33extern int gspca_debug;
34#define PDEBUG(level, fmt, args...) \ 34#define PDEBUG(level, fmt, args...) \
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c
index b767f32511bb..ccd24cb92b3f 100644
--- a/drivers/media/video/gspca/zc3xx.c
+++ b/drivers/media/video/gspca/zc3xx.c
@@ -6432,7 +6432,7 @@ static void setcontrast(struct gspca_dev *gspca_dev)
6432 0, Tgradient_1, Tgradient_2, 6432 0, Tgradient_1, Tgradient_2,
6433 Tgradient_3, Tgradient_4, Tgradient_5, Tgradient_6 6433 Tgradient_3, Tgradient_4, Tgradient_5, Tgradient_6
6434 }; 6434 };
6435#ifdef VIDEO_ADV_DEBUG 6435#ifdef CONFIG_VIDEO_ADV_DEBUG
6436 __u8 v[16]; 6436 __u8 v[16];
6437#endif 6437#endif
6438 6438
@@ -6450,7 +6450,7 @@ static void setcontrast(struct gspca_dev *gspca_dev)
6450 else if (g <= 0) 6450 else if (g <= 0)
6451 g = 1; 6451 g = 1;
6452 reg_w(dev, g, 0x0120 + i); /* gamma */ 6452 reg_w(dev, g, 0x0120 + i); /* gamma */
6453#ifdef VIDEO_ADV_DEBUG 6453#ifdef CONFIG_VIDEO_ADV_DEBUG
6454 if (gspca_debug & D_CONF) 6454 if (gspca_debug & D_CONF)
6455 v[i] = g; 6455 v[i] = g;
6456#endif 6456#endif
@@ -6470,7 +6470,7 @@ static void setcontrast(struct gspca_dev *gspca_dev)
6470 g = 1; 6470 g = 1;
6471 } 6471 }
6472 reg_w(dev, g, 0x0130 + i); /* gradient */ 6472 reg_w(dev, g, 0x0130 + i); /* gradient */
6473#ifdef VIDEO_ADV_DEBUG 6473#ifdef CONFIG_VIDEO_ADV_DEBUG
6474 if (gspca_debug & D_CONF) 6474 if (gspca_debug & D_CONF)
6475 v[i] = g; 6475 v[i] = g;
6476#endif 6476#endif