Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331217
b: refs/heads/master
c: dff274f
h: refs/heads/master
i:
  331215: 3775387
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent a9b4141 commit d434f7d
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 7eaf49667e23a11a1f6ec88dad51ad0e93b1445d
refs/heads/master: dff274fd86e401880d2d10c1dd7fa1fcb6d2bdbc
1 change: 1 addition & 0 deletions trunk/drivers/media/pci/ivtv/ivtv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@ int ivtv_init_on_first_open(struct ivtv *itv)
int video_input;

fh.itv = itv;
fh.type = IVTV_ENC_STREAM_TYPE_MPG;

if (test_bit(IVTV_F_I_FAILED, &itv->i_flags))
return -ENXIO;
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/media/pci/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,10 @@ static int ivtv_s_output(struct file *file, void *fh, unsigned int outp)
static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *vf)
{
struct ivtv *itv = fh2id(fh)->itv;
struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];

if (s->vdev->vfl_dir)
return -ENOTTY;
if (vf->tuner != 0)
return -EINVAL;

Expand All @@ -1075,7 +1078,10 @@ static int ivtv_g_frequency(struct file *file, void *fh, struct v4l2_frequency *
int ivtv_s_frequency(struct file *file, void *fh, struct v4l2_frequency *vf)
{
struct ivtv *itv = fh2id(fh)->itv;
struct ivtv_stream *s = &itv->streams[fh2id(fh)->type];

if (s->vdev->vfl_dir)
return -ENOTTY;
if (vf->tuner != 0)
return -EINVAL;

Expand Down

0 comments on commit d434f7d

Please sign in to comment.