Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331215
b: refs/heads/master
c: f659f0e
h: refs/heads/master
i:
  331213: 07c45cd
  331211: 0693fc2
  331207: 9dd4b97
  331199: af61ee1
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent f4e3f05 commit 3775387
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: 1a806401656129e5fed10da24973e59e9f1d2e88
refs/heads/master: f659f0e7a66245295e1930ad21dfabf80c1403bf
9 changes: 9 additions & 0 deletions trunk/drivers/media/pci/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,8 @@ static int ivtv_g_input(struct file *file, void *fh, unsigned int *i)
int ivtv_s_input(struct file *file, void *fh, unsigned int inp)
{
struct ivtv *itv = fh2id(fh)->itv;
v4l2_std_id std;
int i;

if (inp < 0 || inp >= itv->nof_inputs)
return -EINVAL;
Expand All @@ -1008,6 +1010,13 @@ int ivtv_s_input(struct file *file, void *fh, unsigned int inp)
input type. */
itv->audio_input = itv->card->video_inputs[inp].audio_index;

if (itv->card->video_inputs[inp].video_type == IVTV_CARD_INPUT_VID_TUNER)
std = itv->tuner_std;
else
std = V4L2_STD_ALL;
for (i = 0; i <= IVTV_ENC_STREAM_TYPE_VBI; i++)
itv->streams[i].vdev->tvnorms = std;

/* prevent others from messing with the streams until
we're finished changing inputs. */
ivtv_mute(itv);
Expand Down

0 comments on commit 3775387

Please sign in to comment.