Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37483
b: refs/heads/master
c: 1c2d034
h: refs/heads/master
i:
  37481: 2e71182
  37479: 7a2a40d
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 0cc10ef commit cb0adbe
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3d265c96ccb8f72153b4e926053a79e1a52bf264
refs/heads/master: 1c2d034e3c0ce4c1c89f1636a9f4aa7615cc7474
26 changes: 23 additions & 3 deletions trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1283,9 +1283,29 @@ static int __video_do_ioctl(struct inode *inode, struct file *file,
case VIDIOC_G_PARM:
{
struct v4l2_streamparm *p=arg;
if (!vfd->vidioc_g_parm)
break;
ret=vfd->vidioc_g_parm(file, fh, p);
if (vfd->vidioc_g_parm) {
ret=vfd->vidioc_g_parm(file, fh, p);
} else {
struct v4l2_standard s;

if (!vfd->tvnormsize) {
printk (KERN_WARNING "%s: no TV norms defined!\n",
vfd->name);
break;
}

if (p->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;

v4l2_video_std_construct(&s, vfd->tvnorms[vfd->current_norm].id,
vfd->tvnorms[vfd->current_norm].name);

memset(p,0,sizeof(*p));

p->parm.capture.timeperframe = s.frameperiod;
ret=0;
}

dbgarg (cmd, "type=%d\n", p->type);
break;
}
Expand Down

0 comments on commit cb0adbe

Please sign in to comment.