aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-06-25 19:04:40 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-26 23:17:27 -0400
commit332139635a8c0431cc2eb67adf1e983eb96728e3 (patch)
treee7646bc367486fd1b52bd80bc789fe26307ed9fe /drivers/media/video/pvrusb2/pvrusb2-v4l2.c
parent077203a7d464f6ea7c94b4f3ea4b5bd246285fcd (diff)
V4L/DVB (4239): Handle boolean controls 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-v4l2.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-v4l2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index da5d8fd9b09b..72f28a8e1fe3 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -534,6 +534,12 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
534 vc->maximum = pvr2_ctrl_get_cnt(cptr) - 1; 534 vc->maximum = pvr2_ctrl_get_cnt(cptr) - 1;
535 vc->step = 1; 535 vc->step = 1;
536 break; 536 break;
537 case pvr2_ctl_bool:
538 vc->type = V4L2_CTRL_TYPE_INTEGER;
539 vc->minimum = 0;
540 vc->maximum = 1;
541 vc->step = 1;
542 break;
537 case pvr2_ctl_int: 543 case pvr2_ctl_int:
538 vc->type = V4L2_CTRL_TYPE_INTEGER; 544 vc->type = V4L2_CTRL_TYPE_INTEGER;
539 vc->minimum = pvr2_ctrl_get_min(cptr); 545 vc->minimum = pvr2_ctrl_get_min(cptr);