diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-08-21 19:11:16 +0200 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-08-21 19:11:16 +0200 |
commit | ff9634945387dde6b9a361d902bbe73d0c1a236e (patch) | |
tree | cd3f3eb356f6de5fd6b525998a8c9fb1016157e6 /linux/drivers/media/video/gspca/gspca.c | |
parent | b9ae7f8e368d1e376130025e9d903db00e39a414 (diff) | |
download | mediapointer-dvb-s2-ff9634945387dde6b9a361d902bbe73d0c1a236e.tar.gz mediapointer-dvb-s2-ff9634945387dde6b9a361d902bbe73d0c1a236e.tar.bz2 |
gspca: Have VIDIOC_QUERYCTRL more compliant to the spec.
From: Jean-Francois Moine <moinejf@free.fr>
- return -EINVAL when control not supported.
- start the private controls at V4L2_CID_PRIVATE_BASE.
Priority: normal
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux/drivers/media/video/gspca/gspca.c')
-rw-r--r-- | linux/drivers/media/video/gspca/gspca.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c index fd008b956..731957af3 100644 --- a/linux/drivers/media/video/gspca/gspca.c +++ b/linux/drivers/media/video/gspca/gspca.c @@ -891,11 +891,6 @@ static int vidioc_queryctrl(struct file *file, void *priv, return 0; } } - if (id >= V4L2_CID_BASE - && id <= V4L2_CID_LASTP1) { - q_ctrl->flags |= V4L2_CTRL_FLAG_DISABLED; - return 0; - } return -EINVAL; } |