summaryrefslogtreecommitdiff
path: root/sys/dev/video.c
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2008-06-10 23:39:02 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2008-06-10 23:39:02 +0000
commita90783f16f4976bbddb50a7f3b02a76c012f0cca (patch)
treec63056f5caa54029258c72f1f3d329f1400ace66 /sys/dev/video.c
parent1630be5a5f17109c29fac59198f098bec891af3b (diff)
add VIDIOC_QUERYCTRL to the supported ioctls
Diffstat (limited to 'sys/dev/video.c')
-rw-r--r--sys/dev/video.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/video.c b/sys/dev/video.c
index 5eaf008d9c4..a6ec1a54b91 100644
--- a/sys/dev/video.c
+++ b/sys/dev/video.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: video.c,v 1.10 2008/06/09 20:51:31 mglocker Exp $ */
+/* $OpenBSD: video.c,v 1.11 2008/06/10 23:39:01 robert Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
*
@@ -233,6 +233,11 @@ videoioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
error = (sc->hw_if->try_fmt)(sc->hw_hdl,
(struct v4l2_format *)data);
break;
+ case VIDIOC_QUERYCTRL:
+ if (sc->hw_if->queryctrl)
+ error = (sc->hw_if->queryctrl)(sc->hw_hdl,
+ (struct v4l2_queryctrl *)data);
+ break;
default:
error = (ENOTTY);
}