Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164076
b: refs/heads/master
c: 19bf003
h: refs/heads/master
v: v3
  • Loading branch information
Devin Heitmueller authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent e221c04 commit 88bf7e6
Show file tree
Hide file tree
Showing 2 changed files with 19 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: 0414614aab32d84da2bb092eb83b5e456946022d
refs/heads/master: 19bf00384a6d5bbe5d7b8afbcc25772e3675d423
21 changes: 18 additions & 3 deletions trunk/drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,22 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
return rc;
}

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

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

*norm = dev->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 +2370,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
.vidioc_querybuf = vidioc_querybuf,
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_g_std = vidioc_g_std,
.vidioc_s_std = vidioc_s_std,
.vidioc_g_parm = vidioc_g_parm,
.vidioc_s_parm = vidioc_s_parm,
Expand Down Expand Up @@ -2387,9 +2404,7 @@ static const struct video_device em28xx_video_template = {
.minor = -1,

.tvnorms = V4L2_STD_ALL,
/* FIXME: we need this to be NTSC for VBI to work - it should
be moved to a per-board definition */
.current_norm = V4L2_STD_NTSC,
.current_norm = V4L2_STD_PAL,
};

static const struct v4l2_file_operations radio_fops = {
Expand Down

0 comments on commit 88bf7e6

Please sign in to comment.