提交 74a558b1 编写于 作者: A Alan Young 提交者: Mauro Carvalho Chehab

[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: NJanne Grunau <j@jannau.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 1f33d61b
...@@ -152,6 +152,10 @@ static int device_authorization(struct hdpvr_device *dev) ...@@ -152,6 +152,10 @@ static int device_authorization(struct hdpvr_device *dev)
ret, print_buf); ret, print_buf);
} }
#endif #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) { if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION) {
dev->flags &= ~HDPVR_FLAG_AC3_CAP; dev->flags &= ~HDPVR_FLAG_AC3_CAP;
} else if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION_AC3) { } else if (dev->usbc_buf[1] == HDPVR_FIRMWARE_VERSION_AC3) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册