kopia lustrzana https://gitlab.com/sane-project/backends
add GL128 detection
rodzic
f462ab59d1
commit
de75a1b9c0
|
@ -1865,6 +1865,8 @@ check_gl841 (struct usb_device *dev)
|
||||||
|
|
||||||
result = prepare_interface (dev, &handle);
|
result = prepare_interface (dev, &handle);
|
||||||
if (!result) {
|
if (!result) {
|
||||||
|
if (dev->descriptor.bcdDevice == 0x702)
|
||||||
|
return "GL124?";
|
||||||
if (dev->descriptor.bcdDevice == 0x701)
|
if (dev->descriptor.bcdDevice == 0x701)
|
||||||
return "GL124?";
|
return "GL124?";
|
||||||
if (dev->descriptor.bcdDevice >= 0x700)
|
if (dev->descriptor.bcdDevice >= 0x700)
|
||||||
|
@ -1910,6 +1912,8 @@ check_gl841 (struct usb_device *dev)
|
||||||
}
|
}
|
||||||
finish_interface (handle);
|
finish_interface (handle);
|
||||||
|
|
||||||
|
if (dev->descriptor.bcdDevice == 0x702)
|
||||||
|
return "GL128";
|
||||||
if (dev->descriptor.bcdDevice == 0x701)
|
if (dev->descriptor.bcdDevice == 0x701)
|
||||||
return "GL124";
|
return "GL124";
|
||||||
if (dev->descriptor.bcdDevice >= 0x700)
|
if (dev->descriptor.bcdDevice >= 0x700)
|
||||||
|
@ -4038,6 +4042,8 @@ check_genesys (libusb_device_handle * handle,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* decide revision number based on bcdUsb heuristics */
|
/* decide revision number based on bcdUsb heuristics */
|
||||||
|
if (desc.bcdDevice == 0x702)
|
||||||
|
return "GL128";
|
||||||
if (desc.bcdDevice == 0x701)
|
if (desc.bcdDevice == 0x701)
|
||||||
return "GL124";
|
return "GL124";
|
||||||
if (desc.bcdDevice >= 0x700)
|
if (desc.bcdDevice >= 0x700)
|
||||||
|
|
Ładowanie…
Reference in New Issue