Skip to contentSkip to conversation

video: Test cmd, not definition in decoder_command(), drivers/media/video/zoran_device.c

PATCH RESEND New Roel Kluin 1 participant 1 message Mar 27, 2008 Media (V4L/DVB)

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH RESEND 1/1 video: Test cmd, not definition in decoder_command(), drivers/media/video/zoran_device.c

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

---

drivers/media/video/zoran_device.c +1 -1
index 68c7c50..adf3f41 100644
@@ -1726,7 +1726,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