Commit 73338395 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] siano: store firmware version

As there are some changes that seem to be firmware-dependent,
we need to store the firmware version, as we don't want to break
support for existing cards that use a legacy (and sometimes
custom) firmware.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 05f0ffbc
......@@ -1359,6 +1359,8 @@ void smscore_onresponse(struct smscore_device_t *coredev,
coredev->mode = ver->FirmwareId == 255 ?
DEVICE_MODE_NONE : ver->FirmwareId;
coredev->modes_supported = ver->SupportedProtocols;
coredev->fw_version = ver->RomVersionMajor << 8 |
ver->RomVersionMinor;
complete(&coredev->version_ex_done);
break;
......
......@@ -178,6 +178,7 @@ struct smscore_device_t {
/* Firmware */
u8 *fw_buf;
u32 fw_buf_size;
u16 fw_version;
/* Infrared (IR) */
struct ir_t ir;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment