Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97720
b: refs/heads/master
c: 427aad6
h: refs/heads/master
v: v3
  • Loading branch information
Marcin Slusarz authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent a298579 commit 4270103
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 4d3437df25325d517ee310d55989ce9630ff529e
refs/heads/master: 427aad6fda607914945022e916827037d2d0db3d
10 changes: 5 additions & 5 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
case VIDIOCSAUDIO:
if (check_mode(t, "VIDIOCSAUDIO") == -EINVAL)
return 0;
if (check_v4l2(t) == EINVAL)
if (check_v4l2(t) == -EINVAL)
return 0;

/* Should be implemented, since bttv calls it */
Expand All @@ -810,7 +810,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
};
struct video_channel *vc = arg;

if (check_v4l2(t) == EINVAL)
if (check_v4l2(t) == -EINVAL)
return 0;

if (set_mode(client,t,V4L2_TUNER_ANALOG_TV, "VIDIOCSCHAN")==-EINVAL)
Expand All @@ -829,7 +829,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)

if (check_mode(t, "VIDIOCSFREQ") == -EINVAL)
return 0;
if (check_v4l2(t) == EINVAL)
if (check_v4l2(t) == -EINVAL)
return 0;

set_freq(client, *v);
Expand All @@ -841,7 +841,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)

if (check_mode(t, "VIDIOCGTUNER") == -EINVAL)
return 0;
if (check_v4l2(t) == EINVAL)
if (check_v4l2(t) == -EINVAL)
return 0;

if (V4L2_TUNER_RADIO == t->mode) {
Expand Down Expand Up @@ -885,7 +885,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)

if (check_mode(t, "VIDIOCGAUDIO") == -EINVAL)
return 0;
if (check_v4l2(t) == EINVAL)
if (check_v4l2(t) == -EINVAL)
return 0;

if (V4L2_TUNER_RADIO == t->mode) {
Expand Down

0 comments on commit 4270103

Please sign in to comment.