summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-03-26 15:46:35 -0600
committerMike Isely <isely@pobox.com>2006-03-26 15:46:35 -0600
commitda1de2e42e2a5c0290c15edbbd4017176ff0b1c2 (patch)
tree65e600041207159f857085641ba2566fb3566dfc /linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
parentf44c0bc49cbb5ee3bd7d89c602873840d40c8b25 (diff)
downloadmediapointer-dvb-s2-da1de2e42e2a5c0290c15edbbd4017176ff0b1c2.tar.gz
mediapointer-dvb-s2-da1de2e42e2a5c0290c15edbbd4017176ff0b1c2.tar.bz2
Propagate default control values out to V4L apps from within pvrusb2
From: Mike Isely <isely@pobox.com> When a V4L app queries a pvrusb2 control, make sure we also tell it what the control's default value is. 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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
index dd207fae4..4cdd08708 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
@@ -788,6 +788,8 @@ static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file,
sizeof(vc->name));
vc->minimum = pvr2_hdw_get_ctl_min_value(hdw,pvr2_id);
vc->maximum = pvr2_hdw_get_ctl_max_value(hdw,pvr2_id);
+ vc->default_value =
+ pvr2_hdw_get_ctl_default_value(hdw,pvr2_id);
vc->step = 1;
ret = 0;
break;