diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-04-20 08:51:31 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-04 14:06:19 -0400 |
commit | 37481fcacbae3de4972dae265dab7a58f2c9cf8b (patch) | |
tree | 10f3976f0b820fed099308541a41b9fb29cc5b19 /drivers | |
parent | 5d778648ed571f8dfe9e105c540661dd7451b315 (diff) |
[media] ivtv: set max/step to 0 for PTS and FRAME controls
When creating 64 bit integer controls make sure the max and step
values are 0 (as 64 bit controls do not have ranges).
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 679262ed13b..057929e165a 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -1201,9 +1201,9 @@ static int __devinit ivtv_probe(struct pci_dev *pdev, | |||
1201 | struct v4l2_ctrl_handler *hdl = itv->v4l2_dev.ctrl_handler; | 1201 | struct v4l2_ctrl_handler *hdl = itv->v4l2_dev.ctrl_handler; |
1202 | 1202 | ||
1203 | itv->ctrl_pts = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, | 1203 | itv->ctrl_pts = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, |
1204 | V4L2_CID_MPEG_VIDEO_DEC_PTS, 0, 0, 1, 0); | 1204 | V4L2_CID_MPEG_VIDEO_DEC_PTS, 0, 0, 0, 0); |
1205 | itv->ctrl_frame = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, | 1205 | itv->ctrl_frame = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, |
1206 | V4L2_CID_MPEG_VIDEO_DEC_FRAME, 0, 0x7fffffff, 1, 0); | 1206 | V4L2_CID_MPEG_VIDEO_DEC_FRAME, 0, 0, 0, 0); |
1207 | /* Note: V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO is not supported, | 1207 | /* Note: V4L2_MPEG_AUDIO_DEC_PLAYBACK_AUTO is not supported, |
1208 | mask that menu item. */ | 1208 | mask that menu item. */ |
1209 | itv->ctrl_audio_playback = | 1209 | itv->ctrl_audio_playback = |