libusb-based USB backend (STR #4549)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12878
a1ca3aef-8c08-0410-bb20-
df032aa958be
-CHANGES.txt - 2.1.0 - 2015-08-31
---------------------------------
+CHANGES-2.1.txt
+---------------
+
+CHANGES IN CUPS V2.1.1
+
+ - Some older HP LaserJet printers need a delayed close when printing
+ using the libusb-based USB backend (STR #4549)
+ - The libusb-based USB backend did not unload the kernel usblp module
+ if it was preventing the backend from accessing the printer
+ (STR #4707)
+ - Current Primera printers were incorrectly reported as Fargo printers
+ (STR #4708)
+ - Updated localizations (STR #4709)
+
# product ID (omit for all vendor products), and a list of known issues:
#
# blacklist The printer is not functional with the USB backend.
# product ID (omit for all vendor products), and a list of known issues:
#
# blacklist The printer is not functional with the USB backend.
+# delay-close Delay close/reset of selected interface
# no-reattach Do no re-attach usblp kernel module after printing.
# soft-reset Do a soft reset after printing for cleanup.
# unidir Only supported unidirectional I/O
# no-reattach Do no re-attach usblp kernel module after printing.
# soft-reset Do a soft reset after printing for cleanup.
# unidir Only supported unidirectional I/O
# All Intermec devices (STR #4553)
0x067e no-reattach
# All Intermec devices (STR #4553)
0x067e no-reattach
+
+# HP LaserJet 1150 (STR #4549)
+0x03f0 0x0f17 delay-close
+
+# HP LaserJet 1300 (STR #4549)
+0x03f0 0x1017 delay-close
+0x03f0 0x1117 delay-close
+
+# HP LaserJet 1320 (STR #4549)
+0x03f0 0x1d17 delay-close
*
* LIBUSB interface code for CUPS.
*
*
* LIBUSB interface code for CUPS.
*
- * Copyright 2007-2014 by Apple Inc.
+ * Copyright 2007-2015 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
#define USB_QUIRK_USB_INIT 0x0010 /* Needs vendor USB init string */
#define USB_QUIRK_VENDOR_CLASS 0x0020 /* Descriptor uses vendor-specific
Class or SubClass */
#define USB_QUIRK_USB_INIT 0x0010 /* Needs vendor USB init string */
#define USB_QUIRK_VENDOR_CLASS 0x0020 /* Descriptor uses vendor-specific
Class or SubClass */
+#define USB_QUIRK_DELAY_CLOSE 0x0040 /* Delay close */
#define USB_QUIRK_WHITELIST 0x0000 /* no quirks */
#define USB_QUIRK_WHITELIST 0x0000 /* no quirks */
* Close the connection and input file and general clean up...
*/
* Close the connection and input file and general clean up...
*/
+ if (g.printer.quirks & USB_QUIRK_DELAY_CLOSE)
+ sleep(1);
+
close_device(g.printer);
/*
close_device(g.printer);
/*
if (strstr(line, " blacklist"))
quirk->quirks |= USB_QUIRK_BLACKLIST;
if (strstr(line, " blacklist"))
quirk->quirks |= USB_QUIRK_BLACKLIST;
+ if (strstr(line, " delay-close"))
+ quirk->quirks |= USB_QUIRK_DELAY_CLOSE;
+
if (strstr(line, " no-reattach"))
quirk->quirks |= USB_QUIRK_NO_REATTACH;
if (strstr(line, " no-reattach"))
quirk->quirks |= USB_QUIRK_NO_REATTACH;