Skip to contentSkip to conversation

cx23885: Silence unknown command warnings

PATCH New Anton Blanchard 1 participant 1 message Jul 2, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cx23885: Silence unknown command warnings

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.

---

drivers/media/video/cx23885/cx23885-cards.c +1 -1
index 13739e0..fa7e851 100644
@@ -900,7 +900,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) {