Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366863
b: refs/heads/master
c: 33b6b89
h: refs/heads/master
i:
  366861: d49b62d
  366859: 722b90d
  366855: 2211661
  366847: bed8d79
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 25, 2013
1 parent 2a02355 commit 85d22cc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 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: 8d86e4e814c72cb1b1145c2e645727b46eee3b45
refs/heads/master: 33b6b89bd32ff54ac17fa07408e9743b20542542
13 changes: 12 additions & 1 deletion trunk/drivers/media/usb/au0828/au0828-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,10 +1339,20 @@ static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id norm)

if (dev->dvb.frontend && dev->dvb.frontend->ops.analog_ops.i2c_gate_ctrl)
dev->dvb.frontend->ops.analog_ops.i2c_gate_ctrl(dev->dvb.frontend, 0);
dev->std = norm;

return 0;
}

static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
{
struct au0828_fh *fh = priv;
struct au0828_dev *dev = fh->dev;

*norm = dev->std;
return 0;
}

static int vidioc_enum_input(struct file *file, void *priv,
struct v4l2_input *input)
{
Expand Down Expand Up @@ -1890,6 +1900,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
.vidioc_qbuf = vidioc_qbuf,
.vidioc_dqbuf = vidioc_dqbuf,
.vidioc_s_std = vidioc_s_std,
.vidioc_g_std = vidioc_g_std,
.vidioc_enum_input = vidioc_enum_input,
.vidioc_g_input = vidioc_g_input,
.vidioc_s_input = vidioc_s_input,
Expand All @@ -1914,7 +1925,6 @@ static const struct video_device au0828_video_template = {
.release = video_device_release,
.ioctl_ops = &video_ioctl_ops,
.tvnorms = V4L2_STD_NTSC_M,
.current_norm = V4L2_STD_NTSC_M,
};

/**************************************************************************/
Expand Down Expand Up @@ -1983,6 +1993,7 @@ int au0828_analog_register(struct au0828_dev *dev,
dev->bytesperline = dev->width << 1;
dev->ctrl_ainput = 0;
dev->ctrl_freq = 960;
dev->std = V4L2_STD_NTSC_M;

/* allocate and fill v4l2 video struct */
dev->vdev = video_device_alloc();
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/media/usb/au0828/au0828.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ struct au0828_dev {
int vbi_width;
int vbi_height;
u32 vbi_read;
v4l2_std_id std;
u32 field_size;
u32 frame_size;
u32 bytesperline;
Expand Down

0 comments on commit 85d22cc

Please sign in to comment.