]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] cx23885: Silence unknown command warnings
authorAnton Blanchard <anton@samba.org>
Mon, 2 Jul 2012 00:38:03 +0000 (21:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 20:03:33 +0000 (17:03 -0300)
I am seeing a constant stream of warnings on my cx23885 based card:
cx23885_tuner_callback(): Unknown command 0x2.

Add a check in cx23885_tuner_callback to silence it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cx23885-cards.c

index bf79003bd8f6d170b89233a18f4234b8bf47fc38..080e11157e5fe89afdb384c702376d80528daf5d 100644 (file)
@@ -963,7 +963,7 @@ int cx23885_tuner_callback(void *priv, int component, int command, int arg)
        struct cx23885_dev *dev = port->dev;
        u32 bitmask = 0;
 
-       if (command == XC2028_RESET_CLK)
+       if ((command == XC2028_RESET_CLK) || (command == XC2028_I2C_FLUSH))
                return 0;
 
        if (command != 0) {