diff options
author | Mike Isely <isely@pobox.com> | 2006-06-25 18:04:40 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-06-25 18:04:40 -0500 |
commit | 235a84bf2bb998390130641e216fcbdd91f08a51 (patch) | |
tree | d8a345359e2e6fb007cf62f91a5a3408439a652e /linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |
parent | 24cb66707a7281272bbb6a73c60ddca94eb5d6a7 (diff) | |
download | mediapointer-dvb-s2-235a84bf2bb998390130641e216fcbdd91f08a51.tar.gz mediapointer-dvb-s2-235a84bf2bb998390130641e216fcbdd91f08a51.tar.bz2 |
Handle boolean controls 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-v4l2.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 3eacc187f..2eab61dd8 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c @@ -550,6 +550,12 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, vc->maximum = pvr2_ctrl_get_cnt(cptr) - 1; vc->step = 1; break; + case pvr2_ctl_bool: + vc->type = V4L2_CTRL_TYPE_INTEGER; + vc->minimum = 0; + vc->maximum = 1; + vc->step = 1; + break; case pvr2_ctl_int: vc->type = V4L2_CTRL_TYPE_INTEGER; vc->minimum = pvr2_ctrl_get_min(cptr); |