Skip to content

Commit

Permalink
[media] hdpvr: print firmware date
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alan Young authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 1f33d61 commit 74a558b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/video/hdpvr/hdpvr-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 74a558b

Please sign in to comment.