projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a875431
)
pwc: Add support for control events
author
Hans de Goede
<hdegoede@redhat.com>
Tue, 27 Mar 2012 16:57:55 +0000
(18:57 +0200)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 9 Apr 2012 11:28:33 +0000
(08:28 -0300)
Since the pwc driver already uses v4l2-device, v4l2-fh, and the control
framework, all that is needed is hooking up event subscription.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pwc/pwc-v4l.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/pwc/pwc-v4l.c
b/drivers/media/video/pwc/pwc-v4l.c
index
2834e3e
..
c1ba1a0
100644
(file)
--- a/
drivers/media/video/pwc/pwc-v4l.c
+++ b/
drivers/media/video/pwc/pwc-v4l.c
@@
-1166,4
+1166,6
@@
const struct v4l2_ioctl_ops pwc_ioctl_ops = {
.vidioc_enum_frameintervals = pwc_enum_frameintervals,
.vidioc_g_parm = pwc_g_parm,
.vidioc_s_parm = pwc_s_parm,
+ .vidioc_subscribe_event = v4l2_ctrl_subscribe_event,
+ .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
};