]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7459): Test cmd, not definition in decoder_command(), drivers/media/video...
authorRoel Kluin <12o3l@tiscali.nl>
Fri, 28 Mar 2008 02:51:05 +0000 (23:51 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:56 +0000 (14:07 -0300)
include/linux/video_decoder.h:
34:#define DECODER_SET_NORM _IOW('d', 3, int)
35:#define DECODER_SET_INPUT _IOW('d', 4, int)

untested, please confirm it's right.

Test cmd value, not definition of DECODER_SET_INPUT

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/zoran_device.c

index 10686c68a65b0e543f76a114e9709f8e9bbf78a0..05b16a254cb3cc8b9a6626ebf45e05e19f843970 100644 (file)
@@ -1727,7 +1727,7 @@ decoder_command (struct zoran *zr,
                return -EIO;
 
        if (zr->card.type == LML33 &&
-           (cmd == DECODER_SET_NORM || DECODER_SET_INPUT)) {
+           (cmd == DECODER_SET_NORM || cmd == DECODER_SET_INPUT)) {
                int res;
 
                // Bt819 needs to reset its FIFO buffer using #FRST pin and