1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

add fallback

This commit is contained in:
rjkm 2020-10-16 14:37:25 +02:00
parent 55aec3cf72
commit d2e6c9b2cb

View File

@ -821,6 +821,8 @@ static const struct ddb_device_id ddb_device_ids[] = {
DDB_DEVID(0x0323, 0xffff, ddb_none), DDB_DEVID(0x0323, 0xffff, ddb_none),
DDB_DEVID(0x0328, 0xffff, ddb_none), DDB_DEVID(0x0328, 0xffff, ddb_none),
DDB_DEVID(0x0329, 0xffff, ddb_octopro_hdin), DDB_DEVID(0x0329, 0xffff, ddb_octopro_hdin),
DDB_DEVID(0xffff, 0xffff, ddb_none),
}; };
const struct ddb_info *get_ddb_info(u16 vendor, u16 device, const struct ddb_info *get_ddb_info(u16 vendor, u16 device,
@ -833,7 +835,8 @@ const struct ddb_info *get_ddb_info(u16 vendor, u16 device,
if (vendor == id->vendor && if (vendor == id->vendor &&
device == id->device && device == id->device &&
subvendor == id->subvendor && (subvendor == id->subvendor ||
id->subvendor == 0xffff) &&
(subdevice == id->subdevice || (subdevice == id->subdevice ||
id->subdevice == 0xffff)) id->subdevice == 0xffff))
return id->info; return id->info;