aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/hdpvr
diff options
context:
space:
mode:
authorAlan Young <ayoung@teleport.com>2010-07-26 07:30:06 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 05:56:03 -0400
commit74a558b1f441c03b025cd6c11e79a94e99368856 (patch)
treee50c7c33a3064a9a5cbee2c36c14bd282f5d8da1 /drivers/media/video/hdpvr
parent1f33d61b149f6672d7784023cb464cf7a09e0d72 (diff)
[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 <j@jannau.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/hdpvr')
-rw-r--r--drivers/media/video/hdpvr/hdpvr-core.c4
1 files changed, 4 insertions, 0 deletions
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)
152 ret, print_buf); 152 ret, print_buf);
153 } 153 }
154#endif 154#endif
155
156 v4l2_info(&dev->v4l2_dev, "firmware version 0x%x dated %s\n",
157 dev->usbc_buf[1], &dev->usbc_buf[2]);
158
155 if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION) { 159 if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION) {
156 dev->flags &= ~HDPVR_FLAG_AC3_CAP; 160 dev->flags &= ~HDPVR_FLAG_AC3_CAP;
157 } else if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION_AC3) { 161 } else if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION_AC3) {