Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118707
b: refs/heads/master
c: 8182ff6
h: refs/heads/master
i:
  118705: 3619da3
  118703: fd92e96
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Nov 11, 2008
1 parent 73c3deb commit 383977b
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 0d0f1e0a1d6ef2d0ea249930c5ea71d990fc0b6e
refs/heads/master: 8182ff69f8675fc1847a399be4eea5e8118a8dd3
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/saa7110.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module_param(debug, int, 0);
MODULE_PARM_DESC(debug, "Debug level (0-1)");

#define SAA7110_MAX_INPUT 9 /* 6 CVBS, 3 SVHS */
#define SAA7110_MAX_OUTPUT 0 /* its a decoder only */
#define SAA7110_MAX_OUTPUT 1 /* 1 YUV */

#define SAA7110_NR_REG 0x35

Expand Down Expand Up @@ -327,7 +327,7 @@ saa7110_command (struct i2c_client *client,

case DECODER_SET_INPUT:
v = *(int *) arg;
if (v < 0 || v > SAA7110_MAX_INPUT) {
if (v < 0 || v >= SAA7110_MAX_INPUT) {
v4l_dbg(1, debug, client, "input=%d not available\n", v);
return -EINVAL;
}
Expand Down

0 comments on commit 383977b

Please sign in to comment.