[simple-scan/gnome-3-4: 14/25] Add support for the Samsung Unified Driver (SUD) which enables ADF Duplex and correct colour mode se
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/gnome-3-4: 14/25] Add support for the Samsung Unified Driver (SUD) which enables ADF Duplex and correct colour mode se
- Date: Thu, 27 Apr 2017 09:17:59 +0000 (UTC)
commit e1d949bab201b68b92d3fd64de0607663b80da5b
Author: Robert Ancell <robert ancell canonical com>
Date: Fri Aug 29 13:43:55 2014 +1200
Add support for the Samsung Unified Driver (SUD) which enables ADF Duplex and correct colour
mode selection. Note that SUD's document source is not the standard SANE NAME_SCAN_SOURCE so
the SUD-specific "doc-source" is queried if the SANE "source" fails to find an option.
Tested on Samsung CLX-6220FX with ADL Duplex.
src/scanner.vala | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/src/scanner.vala b/src/scanner.vala
index 722f308..efbce28 100644
--- a/src/scanner.vala
+++ b/src/scanner.vala
@@ -841,6 +841,11 @@ public class Scanner
{
/* Pick source */
option = get_option_by_name (handle, Sane.NAME_SCAN_SOURCE, out index);
+ if (option == null)
+ {
+ debug ("SCAN_SOURCE not available, trying alternative \"doc-source\"");
+ option = get_option_by_name (handle, "doc-source", out index); /* Samsung unified driver.
LP: #892915 */
+ }
if (option != null)
{
string[] flatbed_sources =
@@ -860,7 +865,8 @@ public class Scanner
Sane.I18N ("Automatic Document Feeder"),
"ADF",
"Automatic Document Feeder(left aligned)", /* Seen in the proprietary brother3 driver */
- "Automatic Document Feeder(centrally aligned)" /* Seen in the proprietary brother3
driver */
+ "Automatic Document Feeder(centrally aligned)", /* Seen in the proprietary brother3
driver */
+ "ADF Simplex" /* Samsung unified driver. LP: # 892915 */
};
string[] adf_front_sources =
@@ -878,7 +884,9 @@ public class Scanner
string[] adf_duplex_sources =
{
"ADF Duplex",
- Sane.I18N ("ADF Duplex")
+ Sane.I18N ("ADF Duplex"),
+ "ADF Duplex - Long-Edge Binding", /* Samsung unified driver. LP: # 892915 */
+ "ADF Duplex - Short-Edge Binding"
};
switch (job.type)
@@ -915,7 +923,8 @@ public class Scanner
{
Sane.VALUE_SCAN_MODE_COLOR,
"Color",
- "24bit Color" /* Seen in the proprietary brother3 driver */
+ "24bit Color", /* Seen in the proprietary brother3 driver */
+ "Color - 16 Million Colors" /* Samsung unified driver. LP: 892915 */
};
string[] gray_scan_modes =
{
@@ -923,7 +932,8 @@ public class Scanner
"Gray",
"Grayscale",
Sane.I18N ("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "Grayscale - 256 Levels" /* Samsung unified driver. LP: 892915 */
};
string[] lineart_scan_modes =
{
@@ -940,7 +950,9 @@ public class Scanner
"Gray",
"Grayscale",
Sane.I18N ("Grayscale"),
- "True Gray" /* Seen in the proprietary brother3 driver */
+ "True Gray", /* Seen in the proprietary brother3 driver */
+ "Black and White - Line Art", /* Samsung unified driver. LP: 892915 */
+ "Black and White - Halftone"
};
switch (job.scan_mode)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]