summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-25 18:04:58 -0500
committerMike Isely <isely@pobox.com>2006-06-25 18:04:58 -0500
commitb058bb88f46129d0b73190bd9de83a6336fc62e9 (patch)
tree43296b3f16d7d709366a714f8a128db9ffe4ad5d /linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
parent31dfc2e959e330a74c41ff51af3a177175c8cb6f (diff)
downloadmediapointer-dvb-s2-b058bb88f46129d0b73190bd9de83a6336fc62e9.tar.gz
mediapointer-dvb-s2-b058bb88f46129d0b73190bd9de83a6336fc62e9.tar.bz2
Exploit new V4L control features in pvrusb2
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
index 632f76a86..20a1c7af7 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
@@ -235,6 +235,11 @@ unsigned int pvr2_ctrl_get_v4lflags(struct pvr2_ctrl *cptr)
flags = cptr->info->get_v4lflags(cptr);
}
+ if (cptr->info->set_value) {
+ flags &= ~V4L2_CTRL_FLAG_READ_ONLY;
+ } else {
+ flags |= V4L2_CTRL_FLAG_READ_ONLY;
+ }
return flags;
}