The patch number 9372 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Jean Delvare  <[EMAIL PROTECTED]>
Minor fixes to the saa7110 driver


* Apparently the author of the saa7110 driver was confused by the
  number of outputs returned by DECODER_GET_CAPABILITIES. Of course a
  decoder chip has no analog ouputs, but it must have at least one
  digital output.

* Fix an off-by-one error when checking the input value of
  DECODER_SET_INPUT.

Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>


---

 linux/drivers/media/video/saa7110.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -r 237f2528f9a3 -r d948a33de8ed linux/drivers/media/video/saa7110.c
--- a/linux/drivers/media/video/saa7110.c       Fri Oct 24 20:45:34 2008 +0000
+++ b/linux/drivers/media/video/saa7110.c       Fri Oct 24 18:08:28 2008 +0000
@@ -48,7 +48,7 @@ MODULE_PARM_DESC(debug, "Debug level (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
 
@@ -328,7 +328,7 @@ saa7110_command (struct i2c_client *clie
 
        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;
                }


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d948a33de8ed92dc69509c7167ba232aea769fc7

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to