mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 02:24:57 +08:00
V4L/DVB (9077): gspca: Set the right V4L2_DEBUG values in the main driver.
Signed-off-by: Frank Zago <frank@zago.net> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
117a45a85e
commit
9de436cfc4
@ -843,9 +843,11 @@ static int dev_open(struct inode *inode, struct file *file)
|
||||
#ifdef GSPCA_DEBUG
|
||||
/* activate the v4l2 debug */
|
||||
if (gspca_debug & D_V4L2)
|
||||
gspca_dev->vdev.debug |= 3;
|
||||
gspca_dev->vdev.debug |= V4L2_DEBUG_IOCTL
|
||||
| V4L2_DEBUG_IOCTL_ARG;
|
||||
else
|
||||
gspca_dev->vdev.debug &= ~3;
|
||||
gspca_dev->vdev.debug &= ~(V4L2_DEBUG_IOCTL
|
||||
| V4L2_DEBUG_IOCTL_ARG);
|
||||
#endif
|
||||
ret = 0;
|
||||
out:
|
||||
|
Loading…
Reference in New Issue
Block a user