diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 20:04:58 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-27 00:17:31 -0300 |
commit | 1d9f8461f1a870571f9403a312c26deec3305be5 (patch) | |
tree | c677a3577f88655f872ee0f96b741ebfd1807b49 /drivers/media/video/pvrusb2/pvrusb2-ctrl.c | |
parent | b46cfa805ed12c11fea0adc8e4058000c2e67314 (diff) |
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.c | 5 |
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 e4484f95ea9..d5df9fbeba2 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; } |