From 74a558b1f441c03b025cd6c11e79a94e99368856 Mon Sep 17 00:00:00 2001 From: Alan Young Date: Mon, 26 Jul 2010 08:30:06 -0300 Subject: [media] hdpvr: print firmware date Hauppauge released different firmwares using the same version number. The firmware date can be used to identify the exact driver/firmware combination. Signed-off-by: Janne Grunau Signed-off-by: Mauro Carvalho Chehab --- drivers/media/video/hdpvr/hdpvr-core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/media') diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c index 0cae5b82e1a2..baddbcfd276f 100644 --- a/drivers/media/video/hdpvr/hdpvr-core.c +++ b/drivers/media/video/hdpvr/hdpvr-core.c @@ -152,6 +152,10 @@ static int device_authorization(struct hdpvr_device *dev) ret, print_buf); } #endif + + v4l2_info(&dev->v4l2_dev, "firmware version 0x%x dated %s\n", + dev->usbc_buf[1], &dev->usbc_buf[2]); + if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION) { dev->flags &= ~HDPVR_FLAG_AC3_CAP; } else if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION_AC3) { -- cgit v1.2.3