Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306237
b: refs/heads/master
c: 0927ee6
h: refs/heads/master
i:
  306235: 54b11ab
v: v3
  • Loading branch information
Mike Isely authored and Mauro Carvalho Chehab committed May 7, 2012
1 parent 30ba4f0 commit b3fce3f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 7378c184218227c5b936e3d50c6f03c9e127af00
refs/heads/master: 0927ee67dd59f715f2a6c796a86a0eda9ea2e7b2
9 changes: 9 additions & 0 deletions trunk/drivers/media/video/pvrusb2/pvrusb2-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ int pvr2_s_std(struct file *file, void *priv, v4l2_std_id *std)
pvr2_hdw_get_ctrl_by_id(hdw, PVR2_CID_STDCUR), *std);
}

static int pvr2_querystd(struct file *file, void *priv, v4l2_std_id *std)
{
struct pvr2_v4l2_fh *fh = file->private_data;
struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;

return pvr2_hdw_get_detected_std(hdw, std);
}

static int pvr2_enum_input(struct file *file, void *priv, struct v4l2_input *vi)
{
struct pvr2_v4l2_fh *fh = file->private_data;
Expand Down Expand Up @@ -844,6 +852,7 @@ static const struct v4l2_ioctl_ops pvr2_ioctl_ops = {
.vidioc_g_tuner = pvr2_g_tuner,
.vidioc_g_std = pvr2_g_std,
.vidioc_s_std = pvr2_s_std,
.vidioc_querystd = pvr2_querystd,
.vidioc_log_status = pvr2_log_status,
.vidioc_enum_fmt_vid_cap = pvr2_enum_fmt_vid_cap,
.vidioc_g_fmt_vid_cap = pvr2_g_fmt_vid_cap,
Expand Down

0 comments on commit b3fce3f

Please sign in to comment.