summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-26 01:04:58 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-27 05:17:31 +0200
commit1d9f8461f1a870571f9403a312c26deec3305be5 (patch)
treec677a3577f88655f872ee0f96b741ebfd1807b49 /drivers/media/video/pvrusb2/pvrusb2-ctrl.c
parentV4L/DVB (4242): Don't suspend encoder when changing its attributes (in pvrusb2) (diff)
downloadlinux-1d9f8461f1a870571f9403a312c26deec3305be5.tar.xz
linux-1d9f8461f1a870571f9403a312c26deec3305be5.zip
V4L/DVB (4243): Exploit new V4L control features in pvrusb2
Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-ctrl.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-ctrl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-ctrl.c b/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
index e4484f95ea9e..d5df9fbeba2f 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
@@ -230,6 +230,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;
}