aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2009-08-06 05:05:40 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-05 15:40:34 -0500
commitf4eabafeb3ea41801260fba624cbf2da971d19f8 (patch)
treea5925d9212e3f190591c4063f785fc36359da8bb /drivers/media/video/uvc
parentebbb5c3e0eb73db4da5bee57cd0344a74cf73319 (diff)
V4L/DVB (13148): uvcvideo: Handle V4L2_CTRL_TYPE_BUTTON control type in VIDIOC_QUERYCTRL
Return minimum, maximum and step set to 0 without querying the hardware. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
-rw-r--r--drivers/media/video/uvc/uvc_ctrl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvc_ctrl.c b/drivers/media/video/uvc/uvc_ctrl.c
index 1b89735e62fd..6f1487fc3d7c 100644
--- a/drivers/media/video/uvc/uvc_ctrl.c
+++ b/drivers/media/video/uvc/uvc_ctrl.c
@@ -826,6 +826,13 @@ int uvc_query_v4l2_ctrl(struct uvc_video_chain *chain,
826 ret = 0; 826 ret = 0;
827 goto out; 827 goto out;
828 828
829 case V4L2_CTRL_TYPE_BUTTON:
830 v4l2_ctrl->minimum = 0;
831 v4l2_ctrl->maximum = 0;
832 v4l2_ctrl->step = 0;
833 ret = 0;
834 goto out;
835
829 default: 836 default:
830 break; 837 break;
831 } 838 }