Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331109
b: refs/heads/master
c: ba9425b
h: refs/heads/master
i:
  331107: a8aca28
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Sep 26, 2012
1 parent 6bf62f4 commit 23cf189
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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: 0e8025b9f6011a6bd69d01080d584bc95a89d02e
refs/heads/master: ba9425bce9e162eee0741d9a94e0d6f68e0242ab
6 changes: 4 additions & 2 deletions trunk/drivers/media/pci/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,11 +813,13 @@ static int ivtv_g_audout(struct file *file, void *fh, struct v4l2_audioout *vin)
return ivtv_get_audio_output(itv, vin->index, vin);
}

static int ivtv_s_audout(struct file *file, void *fh, struct v4l2_audioout *vout)
static int ivtv_s_audout(struct file *file, void *fh, const struct v4l2_audioout *vout)
{
struct ivtv *itv = fh2id(fh)->itv;

return ivtv_get_audio_output(itv, vout->index, vout);
if (itv->card->video_outputs == NULL || vout->index != 0)
return -EINVAL;
return 0;
}

static int ivtv_enum_input(struct file *file, void *fh, struct v4l2_input *vin)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/radio/radio-si4713.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static int radio_si4713_g_audout(struct file *file, void *priv,
}

static int radio_si4713_s_audout(struct file *file, void *priv,
struct v4l2_audioout *vao)
const struct v4l2_audioout *vao)
{
return vao->index ? -EINVAL : 0;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/media/v4l2-ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ struct v4l2_ioctl_ops {
int (*vidioc_g_audout) (struct file *file, void *fh,
struct v4l2_audioout *a);
int (*vidioc_s_audout) (struct file *file, void *fh,
struct v4l2_audioout *a);
const struct v4l2_audioout *a);
int (*vidioc_g_modulator) (struct file *file, void *fh,
struct v4l2_modulator *a);
int (*vidioc_s_modulator) (struct file *file, void *fh,
Expand Down

0 comments on commit 23cf189

Please sign in to comment.