[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: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab 2013-03-09 09:56:27 -03:00
parent 05f0ffbc48
commit 7333839505
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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;