Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142394
b: refs/heads/master
c: 9fc4d21
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent 38e25a2 commit d737f16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 80801da83389b2c6e55e1f8f5d17f923ce54f7c8
refs/heads/master: 9fc4d219b93ca0222f342fb3ca75bb62cc8be05c
9 changes: 7 additions & 2 deletions trunk/drivers/media/video/v4l1-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,8 @@ static noinline long v4l1_compat_get_input_info(
chan->norm = VIDEO_MODE_NTSC;
if (sid & V4L2_STD_SECAM)
chan->norm = VIDEO_MODE_SECAM;
if (sid == V4L2_STD_ALL)
chan->norm = VIDEO_MODE_AUTO;
}
done:
return err;
Expand All @@ -601,6 +603,9 @@ static noinline long v4l1_compat_set_input(
case VIDEO_MODE_SECAM:
sid = V4L2_STD_SECAM;
break;
case VIDEO_MODE_AUTO:
sid = V4L2_STD_ALL;
break;
}
if (0 != sid) {
err = drv(file, VIDIOC_S_STD, &sid);
Expand Down Expand Up @@ -804,9 +809,9 @@ static noinline long v4l1_compat_select_tuner(

t.index = tun->tuner;

err = drv(file, VIDIOC_S_INPUT, &t);
err = drv(file, VIDIOC_S_TUNER, &t);
if (err < 0)
dprintk("VIDIOCSTUNER / VIDIOC_S_INPUT: %ld\n", err);
dprintk("VIDIOCSTUNER / VIDIOC_S_TUNER: %ld\n", err);
return err;
}

Expand Down

0 comments on commit d737f16

Please sign in to comment.