Skip to content

Commit

Permalink
V4L/DVB (7459): Test cmd, not definition in decoder_command(), driver…
Browse files Browse the repository at this point in the history
…s/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

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent 95a2fdb commit 7bf9746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/zoran_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bf9746

Please sign in to comment.