]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
[media] hdpvr: print firmware date
authorAlan Young <ayoung@teleport.com>
Mon, 26 Jul 2010 11:30:06 +0000 (08:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 09:56:03 +0000 (07:56 -0200)
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 <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/hdpvr/hdpvr-core.c

index 0cae5b82e1a2e6eb84859dc4c49de40ef68ec5e3..baddbcfd276fde4ba78d1f35f6d8737138f3c025 100644 (file)
@@ -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) {