Workaround for SCR3320

This commit is contained in:
Werner Koch 2009-07-24 11:01:17 +00:00
parent 65b2edc202
commit 5bae927e49
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-07-24 Werner Koch <wk@g10code.com>
* ccid-driver.c (parse_ccid_descriptor): Enable hack for SCR 3320.
2009-07-21 Werner Koch <wk@g10code.com>
* ccid-driver.c [HAVE_PTH]: Include pth.h.

View File

@ -944,6 +944,11 @@ parse_ccid_descriptor (ccid_driver_t handle,
0x5111 - SCR 331-DI
0x5115 - SCR 335
0xe003 - SPR 532
The
0x5117 - SCR 3320 USB ID-000 reader
seems to be very slow but enabling this workaround boosts the
performance to a a more or less acceptable level (tested by David).
*/
if (handle->id_vendor == VENDOR_SCM
&& handle->max_ifsd > 48
@ -951,6 +956,7 @@ parse_ccid_descriptor (ccid_driver_t handle,
||(handle->id_product == 0x5111 && handle->bcd_device < 0x0620)
||(handle->id_product == 0x5115 && handle->bcd_device < 0x0514)
||(handle->id_product == 0xe003 && handle->bcd_device < 0x0504)
||(handle->id_product == 0x5117 && handle->bcd_device < 0x0522)
))
{
DEBUGOUT ("enabling workaround for buggy SCM readers\n");