Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271939
b: refs/heads/master
c: d56ae6f
h: refs/heads/master
i:
  271937: f0559ae
  271935: ee30139
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 8, 2011
1 parent 1016e6a commit 1a08513
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d1ed98683abafef595b8e3a237f845b82152606
refs/heads/master: d56ae6fbf33ddeb7ab2ffac896229ca473a7457f
16 changes: 16 additions & 0 deletions trunk/drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,21 @@ static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
return 0;
}

static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *norm)
{
struct em28xx_fh *fh = priv;
struct em28xx *dev = fh->dev;
int rc;

rc = check_dev(dev);
if (rc < 0)
return rc;

v4l2_device_call_all(&dev->v4l2_dev, 0, video, querystd, norm);

return 0;
}

static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *norm)
{
struct em28xx_fh *fh = priv;
Expand Down Expand Up @@ -2354,6 +2369,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_g_std = vidioc_g_std,
.vidioc_querystd = vidioc_querystd,
.vidioc_s_std = vidioc_s_std,
.vidioc_g_parm = vidioc_g_parm,
.vidioc_s_parm = vidioc_s_parm,
Expand Down

0 comments on commit 1a08513

Please sign in to comment.