[Linuxwacom-devel] [PATCH 09/13] scan-build: Function call argument is an uninitialized value

2014-09-17 Thread Jason Gerecke
The isdv4ParseTouchQuery and isdv4ParseTouchData functions return 0 and -1 if errors occur. At the moment, only the -1 case is being handled, which can result in the callers using uninitialized ISDV4TouchQueryReply or ISDV4TouchData results. Signed-off-by: Jason Gerecke killert...@gmail.com

[Linuxwacom-devel] [PATCH 10/13] scan-build: Logic error: Cast region with wrong size

2014-09-17 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 5a5173d..805fba9 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1252,7 +1252,7 @@ static Bool

[Linuxwacom-devel] [PATCH 09/12] clang-warning: -Wunused-macros

2014-09-17 Thread Jason Gerecke
^ isdv4-serial-inputattach.c:22:9: warning: macro is not used [-Wunused-macros] #define WACOM_TOOLS ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/isdv4-serial-debugger.c| 1 - tools/isdv4-serial-inputattach.c | 1 - tools/tools-shared.c | 1 - tools

[Linuxwacom-devel] [PATCH 08/12] clang-warning: -Wunreachable-code-return

2014-09-17 Thread Jason Gerecke
../src/wcmUSB.c:1140:9: warning: 'return' will never be executed [-Wunreachable-code-return] return 0; ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmUSB.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wcmUSB.c b/src/wcmUSB.c index d2c8511

[Linuxwacom-devel] [PATCH 02/12] clang-warning: extra '; ' outside of a function

2014-09-17 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmUSB.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wcmUSB.c b/src/wcmUSB.c index 5332702..bb81175 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -80,9 +80,9 @@ static struct _WacomModel mname

[Linuxwacom-devel] [PATCH 01/12] Use '-isystem' instead of '-I' to quiet Clang's warnings

2014-09-17 Thread Jason Gerecke
Clang by default does not emit warnings for system headers, but most includes will be added with '-I' which doesn't count as a system header. This patch has them included with '-isystem' so that we can more easily see problems with *our* code. Signed-off-by: Jason Gerecke killert...@gmail.com

[Linuxwacom-devel] [PATCH 10/12] clang-warning: -Wmissing-field-initializers

2014-09-17 Thread Jason Gerecke
] { NULL } ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmISDV4.c | 1 + src/wcmTouchFilter.c | 12 ++-- tools/xsetwacom.c| 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c index 55439eb

[Linuxwacom-devel] [PATCH 07/12] clang-warning: -Wunreachable-code-break

2014-09-17 Thread Jason Gerecke
../src/wcmXCommand.c:439:5: warning: 'break' will never be executed [-Wunreachable-code-break] break; ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmXCommand.c | 1 - 1 file changed, 1 deletion(-) diff --git

[Linuxwacom-devel] [PATCH 06/12] clang-warning: -Wdocumentation-unknown-command

2014-09-17 Thread Jason Gerecke
True on success or False otherwise. ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmCommon.c | 2 +- src/wcmUSB.c| 2 +- src/wcmValidateDevice.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index

[Linuxwacom-devel] [PATCH 11/12] clang-warning: -Wmissing-variable-declarations

2014-09-17 Thread Jason Gerecke
-static variable 'verbose' [-Wmissing-variable-declarations] int verbose; ^ Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmConfig.c | 2 +- src/wcmXCommand.c| 44 tools/isdv4-serial-debugger.c| 1

[Linuxwacom-devel] [PATCH 03/12] clang-warning: enumeration value 'FORMAT_DEFAULT' not explicitly handled in switch

2014-09-17 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 26b3513..304f9fa 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -655,6 +655,7 @@ static void print_value(param_t

[Linuxwacom-devel] [PATCH 06/13 v2] scan-build: Logic error: Dereference of null pointer

2014-09-18 Thread Jason Gerecke
-by: Jason Gerecke killert...@gmail.com --- Changes in v2: * Changed from a pre-decrement 'while' to a 'for' loop. The former wouldn't work right with ndevices == 0 and would have required a second 'Unable to locate device' error message. tools/xsetwacom.c | 7 --- 1 file changed, 4

Re: [Linuxwacom-devel] [PATCH 11/12] clang-warning: -Wmissing-variable-declarations

2014-09-18 Thread Jason Gerecke
On Thu, Sep 18, 2014 at 3:08 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Wed, Sep 17, 2014 at 07:11:35PM -0700, Jason Gerecke wrote: ../src/wcmConfig.c:701:16: warning: no previous extern declaration for non-static variable 'WACOM' [-Wmissing-variable-declarations] InputDriverRec

Re: [Linuxwacom-devel] [PATCH 11/12] clang-warning: -Wmissing-variable-declarations

2014-09-18 Thread Jason Gerecke
On Thu, Sep 18, 2014 at 5:50 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Sep 18, 2014 at 05:30:55PM -0700, Jason Gerecke wrote: [...] diff --git a/tools/isdv4-serial-debugger.c b/tools/isdv4-serial-debugger.c index 6629cb6..03abd26 100644 --- a/tools/isdv4-serial-debugger.c

Re: [Linuxwacom-devel] [PATCH 01/12] Use '-isystem' instead of '-I' to quiet Clang's warnings

2014-09-18 Thread Jason Gerecke
On Thu, Sep 18, 2014 at 3:07 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Wed, Sep 17, 2014 at 07:11:25PM -0700, Jason Gerecke wrote: Clang by default does not emit warnings for system headers, but most includes will be added with '-I' which doesn't count as a system header

Re: [Linuxwacom-devel] [PATCH 11/12] clang-warning: -Wmissing-variable-declarations

2014-09-18 Thread Jason Gerecke
On Thu, Sep 18, 2014 at 6:15 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Sep 18, 2014 at 06:10:49PM -0700, Jason Gerecke wrote: On Thu, Sep 18, 2014 at 5:50 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Thu, Sep 18, 2014 at 05:30:55PM -0700, Jason Gerecke wrote

[Linuxwacom-devel] [PATCH] Strengthen condition that pad may never be arbitrated pointer control

2014-09-19 Thread Jason Gerecke
, and only while it remains held. This patch strengthens the condition that the pad may never be granted control by making it the first thing checked. Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmCommon.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[Linuxwacom-devel] [PATCH] Reset wcmGestureState to current device state upon gesture start

2014-09-19 Thread Jason Gerecke
and undesired catch up effect due to the large built-up delta. To work around this, when a gesture starts, we reset the wcmGestureState so that the functions are working with a clean slate and do not see the large delta. Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmTouchFilter.c | 23

[Linuxwacom-devel] [PATCH 2/3] Fix compile issues with older drivers

2014-10-03 Thread Jason Gerecke
* Add missing semicolon to 0x4004 definition (2.6.38) * Remove duplicate device definition (2.6.30) * Add missing closing brace (2.6.30) Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.30/wacom_wac.c | 3 +-- 2.6.38/wacom_wac.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions

[Linuxwacom-devel] [PATCH 1/3] Fix compile issues with 3.17 backports

2014-10-03 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.36/wacom_sys.c | 4 ++-- 2.6.38/wacom_sys.c | 6 +++--- 3.7/wacom_sys.c| 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/2.6.36/wacom_sys.c b/2.6.36/wacom_sys.c index 14962d7..6fb0d10 100644 --- a/2.6.36

[Linuxwacom-devel] [PATCH] Use backwards-compatible battery name only for first tablet

2014-10-03 Thread Jason Gerecke
only if it has not already been registered and use the new behavior otherwise. Fixes SF bug #248 Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.38/wacom_sys.c | 15 ++- 2.6.38/wacom_wac.h | 1 + 3.7/wacom_sys.c| 15 ++- 3.7/wacom_wac.h| 1 + 4 files

Re: [Linuxwacom-devel] 0.26.1 release?

2014-10-09 Thread Jason Gerecke
On Thu, Oct 9, 2014 at 6:41 AM, Ron r...@debian.org wrote: Hi, The SF downloads appear to be showing a 0.26.1 release tarball, but I'm not seeing a version bump commit, or tag in the SF git repo. Did someone just forget to push, or did the primary git tree move again while I wasn't looking

[Linuxwacom-devel] [PATCH] data: Tweak header information for 21UX2

2014-11-03 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- data/cintiq-21ux2.tablet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/cintiq-21ux2.tablet b/data/cintiq-21ux2.tablet index 6e780a2..d09461e 100644 --- a/data/cintiq-21ux2.tablet +++ b/data/cintiq-21ux2.tablet

[Linuxwacom-devel] [PATCH] data: Add Cintiq Companion

2014-11-03 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- data/cintiq-companion.tablet | 44 +++ data/layouts/cintiq-companion.svg | 234 ++ 2 files changed, 278 insertions(+) create mode 100644 data/cintiq-companion.tablet create mode 100644 data

Re: [Linuxwacom-devel] [PATCH] Prevent occasional Pen/Eraser misdetection

2014-11-17 Thread Jason Gerecke
On Fri, Nov 14, 2014 at 1:09 AM, Robert Miller yocto...@gmail.com wrote: Hi! I've never submitted a patch to anything before so I hope I'm not wasting your time, but I found a bug while using my cintiq companion hybrid and I traced it to linux_wacom. I'm on Ubuntu 14.04, and the device I'm

[Linuxwacom-devel] [PATCH] Ensure input device fd gets closed after use

2014-12-05 Thread Jason Gerecke
Fixes a minor error in commit 52fe01c which results in the driver invalidating an fd prior to (potentially) closing it. This reversed order causes us to leak the fd and can result in eventual exhasution. Fixes SF #263 Signed-off-by: Jason Gerecke killert...@gmail.com --- src/xf86Wacom.c | 2

[Linuxwacom-devel] [PATCH] Allow xsetwacom to recognize 'insert' as a key

2014-12-05 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 5a35ee8..d1b6242 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -593,6 +593,8 @@ static struct modifier specialkeys

Re: [Linuxwacom-devel] [PATCH] Ensure input device fd gets closed after use

2014-12-08 Thread Jason Gerecke
On Sun, Dec 7, 2014 at 4:59 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, Dec 05, 2014 at 01:39:26PM -0800, Jason Gerecke wrote: Fixes a minor error in commit 52fe01c which results in the driver invalidating an fd prior to (potentially) closing it. This reversed order causes us

Re: [Linuxwacom-devel] [PATCH] Allow xsetwacom to recognize 'insert' as a key

2014-12-08 Thread Jason Gerecke
On Sun, Dec 7, 2014 at 4:59 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, Dec 05, 2014 at 01:39:25PM -0800, Jason Gerecke wrote: Signed-off-by: Jason Gerecke killert...@gmail.com Reviewed-by: Peter Hutterer peter.hutte...@who-t.net --- tools/xsetwacom.c | 2 ++ 1 file

Re: [Linuxwacom-devel] Patch: Non-linear and non-parametric calibration

2014-12-15 Thread Jason Gerecke
On Sat, Dec 13, 2014 at 11:33 PM, Feng Yu rainwood...@gmail.com wrote: Greetings. Recently I purchased a x230 tablet; it has an on-screen digitizer. My first stylus computer and I was quite excited. I was pretty sad when I figured that no matter how I calibrated the stylus, in much of the

[Linuxwacom-devel] [PATCH input-wacom] Fix 2.6.36 compilation

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.36/wacom_sys.c | 2 +- 2.6.36/wacom_wac.c | 2 +- 2.6.36/wacom_wac.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/2.6.36/wacom_sys.c b/2.6.36/wacom_sys.c index 4e84089..4ea452f 100644 --- a/2.6.36/wacom_sys.c +++ b

[Linuxwacom-devel] [PATCH input-wacom 03/13] HID: wacom: Add support for the Cintiq Companion

2014-12-22 Thread Jason Gerecke
The Wacom Cintiq Companion shares the same sensor than the Cintiq Companion Hybrid, with the exception of the different PIDs. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Signed-off-by: Jiri Kosina jkos...@suse.cz --- 3.17/wacom_wac.c | 10 ++ 1 file changed, 10

[Linuxwacom-devel] [PATCH input-wacom 01/10] HID: wacom - make sure touch_input is valid before using it

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com touch_input is stored in wacom_shared for pen data to report touch switch status. It is possible, although we didn't see it happen on Linux yet, that pen data is procesed before touch interface is fully probed. As a by-product of this patch, it fixes the

[Linuxwacom-devel] [PATCH input-wacom 00/13] Updates for-3.18

2014-12-22 Thread Jason Gerecke
if !CONFIG_PM Jason Gerecke (4): HID: wacom: Add support for the Cintiq Companion Backport: Add support for the Cintiq Companion Backport: make the WL connection friendly for the desktop Backport: Fix compilation of generic HID handling patch under 3.17 Ping Cheng (1): Input: wacom

[Linuxwacom-devel] [PATCH input-wacom 06/13] Backport: make the WL connection friendly for the desktop

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.38/wacom_sys.c | 4 3.7/wacom_sys.c| 4 2 files changed, 8 insertions(+) diff --git a/2.6.38/wacom_sys.c b/2.6.38/wacom_sys.c index 51376e7..8a1a41f 100644 --- a/2.6.38/wacom_sys.c +++ b/2.6.38/wacom_sys.c @@ -1192,6

[Linuxwacom-devel] [PATCH input-wacom 01/13] Input: wacom - cleanup multitouch code when touch_max is 2

2014-12-22 Thread Jason Gerecke
-by: Ping Cheng pi...@wacom.com Reviewed-by: Jason Gerecke killert...@gmail.com Signed-off-by: Dmitry Torokhov dmitry.torok...@gmail.com --- 3.17/wacom_wac.c | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/3.17/wacom_wac.c b/3.17/wacom_wac.c index

[Linuxwacom-devel] [PATCH input-wacom 09/10] HID: wacom: Update maximum X/Y accounding to outbound offset

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com Defined outbound offset for DTU and Cintiq. But didn't update the relevant maximum values. Oops... Signed-off-by: Ping Cheng pi...@wacom.com Signed-off-by: Jiri Kosina jkos...@suse.cz --- 3.17/wacom_wac.c | 18 +- 1 file changed, 9

[Linuxwacom-devel] [PATCH input-wacom 06/10] HID: wacom: fix freeze on open when autosuspend is on

2014-12-22 Thread Jason Gerecke
From: Benjamin Tissoires benjamin.tissoi...@redhat.com Since the conversion from USB to HID (in v3.17), some people reported a freeze on boot with the wacom driver. Hans managed to get a stacktrace: [ 240.272331] Call Trace: [ 240.272338] [813de7b9] ? usb_hcd_submit_urb+0xa9/0xb10 [

[Linuxwacom-devel] [PATCH input-wacom 04/10] HID: wacom - Cleanup input_capabilities for Graphire 4 and Bamboo Fun

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com Graphire 4 only has two tablet buttons; Bamboo Fun touch ring is only for PAD. Signed-off-by: Ping Cheng pi...@wacom.com Reviewed-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Signed-off-by: Jiri Kosina jkos...@suse.cz --- 3.17/wacom_wac.c | 5 -

[Linuxwacom-devel] [PATCH input-wacom 07/10] HID: wacom: add defines for new Cintiq and DTU outbound tracking

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com There are screen to tablet offsets for newer Cintiq and DTU models. These offsets serve as outbound tracking for those display tablets. Use defines instead of hardcoded numbers for the offsets. Signed-off-by: Ping Cheng pi...@wacom.com Signed-off-by: Jiri

[Linuxwacom-devel] [PATCH input-wacom 09/13] HID: wacom: split out input allocation and registration

2014-12-22 Thread Jason Gerecke
ISDv4-5). This patch only splits the allocation and registration, but do not change where we allocate the input. This will come in a later patch. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Acked-by: Jason Gerecke killert...@gmail.com Signed-off-by: Jiri Kosina jkos...@suse.cz

[Linuxwacom-devel] [PATCH input-wacom 02/10] Backport: make sure touch_input is valid before using it

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.38/wacom_wac.c | 7 +-- 3.7/wacom_wac.c| 7 +-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/2.6.38/wacom_wac.c b/2.6.38/wacom_wac.c index 6dd2a51..c58abcc 100644 --- a/2.6.38/wacom_wac.c +++ b/2.6.38

[Linuxwacom-devel] [PATCH input-wacom 05/13] HID: wacom: make the WL connection friendly for the desktop

2014-12-22 Thread Jason Gerecke
From: Benjamin Tissoires benjamin.tissoi...@redhat.com Currently, tablets connected to the WL receiver all share the same VID/PID. There is no way for the user space to know which one is which besides parsing the name. We can force the PID to be set to the actual hardware. This way, the input

[Linuxwacom-devel] [PATCH input-wacom 00/10] Backports for-3.19

2014-12-22 Thread Jason Gerecke
Backports several bugfix patches that are destined for Linux 3.19. Benjamin Tissoires (1): HID: wacom: fix freeze on open when autosuspend is on Jason Gerecke (3): Backport: make sure touch_input is valid before using it Backport: add defines for new Cintiq and DTU outbound tracking

[Linuxwacom-devel] [PATCH input-wacom 08/10] Backport: add defines for new Cintiq and DTU outbound tracking

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.30/wacom_wac.c | 22 +- 2.6.36/wacom_wac.c | 31 ++- 2.6.38/wacom_wac.c | 37 ++--- 3.7/wacom_wac.c| 37 ++--- 4 files

[Linuxwacom-devel] [PATCH input-wacom 07/13] HID: wacom: fix timeout on probe for some wacoms

2014-12-22 Thread Jason Gerecke
From: Benjamin Tissoires benjamin.tissoi...@redhat.com Some Wacom tablets (at least the ISDv4 found in the Lenovo X230) timeout during probe while retrieving the input reports. The only time this information is valuable is during the feature_mapping stage, so we can ask for it there and discard

[Linuxwacom-devel] [PATCH input-wacom 10/13] HID: wacom: move allocation of inputs earlier

2014-12-22 Thread Jason Gerecke
From: Benjamin Tissoires benjamin.tissoi...@redhat.com This allows to have the input devices ready in while parsing the reports descriptor. Signed-off-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Acked-by: Jason Gerecke killert...@gmail.com Signed-off-by: Jiri Kosina jkos...@suse.cz

[Linuxwacom-devel] [PATCH input-wacom 04/13] Backport: Add support for the Cintiq Companion

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.38/wacom_wac.c | 9 + 3.7/wacom_wac.c| 10 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/2.6.38/wacom_wac.c b/2.6.38/wacom_wac.c index 223b744..6dd2a51 100644 --- a/2.6.38/wacom_wac.c +++ b/2.6.38

[Linuxwacom-devel] [PATCH input-wacom 13/13] HID: wacom: implement the finger part of the HID generic handling

2014-12-22 Thread Jason Gerecke
From: Benjamin Tissoires benjamin.tissoi...@redhat.com Signed-off-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Acked-by: Jason Gerecke killert...@gmail.com Signed-off-by: Jiri Kosina jkos...@suse.cz --- 3.17/wacom_sys.c | 39 -- 3.17/wacom_wac.c | 120

[Linuxwacom-devel] [PATCH input-wacom 10/10] Backport: Update maximum X/Y accounding to outbound offset

2014-12-22 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.30/wacom_wac.c | 14 +++--- 2.6.36/wacom_wac.c | 14 +++--- 2.6.38/wacom_wac.c | 18 +- 3.7/wacom_wac.c| 18 +- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/2.6.30

[Linuxwacom-devel] [PATCH input-wacom 03/10] HID: wacom - return ENODEV for failed wacom_setup_pad_input_capabilities

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com ENODEV indicates no device is added. Hence, the associated pad input device is simply freed. Signed-off-by: Ping Cheng pi...@wacom.com Reviewed-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Signed-off-by: Jiri Kosina jkos...@suse.cz ---

[Linuxwacom-devel] [PATCH input-wacom 05/10] HID: wacom - Bamboo pen-only tablet does not support PAD

2014-12-22 Thread Jason Gerecke
From: Ping Cheng pingli...@gmail.com Bamboo models do not support HID_DG_CONTACTMAX. Plus, Bamboo pen-only has touch descriptor. This leads to some complications in the code. This patch also fixes duplicated PAD interfeaces for Intuos Pen models. Signed-off-by: Ping Cheng pi...@wacom.com

[Linuxwacom-devel] [PATCH input-wacom 02/13] Input: wacom - fix compiler warning if !CONFIG_PM

2014-12-22 Thread Jason Gerecke
From: Geert Uytterhoeven ge...@linux-m68k.org If CONFIG_PM is not set: drivers/hid/wacom_sys.c:1436: warning: ‘wacom_reset_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM to fix this. Signed-off-by: Geert Uytterhoeven ge...@linux-m68k.org Reviewed-by: Benjamin

[Linuxwacom-devel] [PATCH input-wacom 08/13] HID: wacom: rename failN with some meaningful information

2014-12-22 Thread Jason Gerecke
benjamin.tissoi...@redhat.com Acked-by: Jason Gerecke killert...@gmail.com Signed-off-by: Jiri Kosina jkos...@suse.cz --- 3.17/wacom_sys.c | 49 + 1 file changed, 29 insertions(+), 20 deletions(-) diff --git a/3.17/wacom_sys.c b/3.17/wacom_sys.c index 2508628

[Linuxwacom-devel] [PATCH input-wacom 12/13] Backport: Fix compilation of generic HID handling patch under 3.17

2014-12-22 Thread Jason Gerecke
From: Jason Gerecke killert...@gmail.com As suggested in the prior patch, we manually set hdev-claimed with the necessary flag value (which is hardcoded since HID_CLAIMED_DRIVER is not available in 3.17) Signed-off-by: Jason Gerecke killert...@gmail.com --- 3.17/wacom.h | 1 + 3.17

[Linuxwacom-devel] [PATCH 2/5] xsetwacom: Print proper names of xorg.conf options

2015-01-26 Thread Jason Gerecke
an error will be printed. Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 2460659..75305e8 100644 --- a/tools/xsetwacom.c +++ b/tools

[Linuxwacom-devel] [PATCH 4/5] xsetwacom: Add print_button_value function

2015-01-26 Thread Jason Gerecke
Setting a button value requires a slightly different format than most other properties. In particular, they require the presence of a button number either concatenated onto the prefix 'Button' (for xorg.conf format) or as a seperate parameter (for shell format). Signed-off-by: Jason Gerecke

[Linuxwacom-devel] [PATCH 3/5] xsetwacom: Don't try to print set commands for readonly properties

2015-01-26 Thread Jason Gerecke
Both FORMAT_XORG_CONF and FORMAT_SHELL are formatted for setting in xorg.conf or xsetwacom. It makes no sense to bother printing out the value of readonly values for these two cases though since it is impossible to set them. Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c

[Linuxwacom-devel] [PATCH 5/5] xsetwacom: Allow get id all to iterate over all available buttons

2015-01-26 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 402cc09..6b4189f 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -2570,7

[Linuxwacom-devel] [PATCH 1/5] xsetwacom: Print error/warning messages on stderr

2015-01-26 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index ec5d24e..2460659 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c

[Linuxwacom-devel] [PATCH 3/7] configure: Replace multiple kernel search paths with just one

2015-01-16 Thread Jason Gerecke
To prevent the situation like the prior from occuring again, define a list once up front and reference it elsewhere. Signed-off-by: Jason Gerecke killert...@gmail.com --- configure.ac | 50 +++--- 1 file changed, 23 insertions(+), 27 deletions(-) diff

[Linuxwacom-devel] [PATCH 4/7] configure: Stop with an error if the kernel sources can't be found

2015-01-16 Thread Jason Gerecke
If the kernel sources cannot be found (or --with-kernel=no), then the 'make' later on has no chance of finishing successfully. Just produce a warning and exit as soon as possible. Signed-off-by: Jason Gerecke killert...@gmail.com --- configure.ac | 15 ++- 1 file changed, 6

[Linuxwacom-devel] [PATCH 2/7] configure: Add missing kernel source search path

2015-01-16 Thread Jason Gerecke
Adds '/lib/modules/`uname -r`/source' to the first loop's list of search paths. This path is already used by the rest of the code. Signed-off-by: Jason Gerecke killert...@gmail.com --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b

[Linuxwacom-devel] [PATCH 5/7] configure: Remove no-longer-necessary state checks

2015-01-16 Thread Jason Gerecke
Since configure now exits if the kernel sources could not be found, it is no longer necessary to surround the kernel version check or final message with 'if' blocks. Signed-off-by: Jason Gerecke killert...@gmail.com --- configure.ac | 96

[Linuxwacom-devel] [PATCH 0/7] Cleanup configure/make

2015-01-16 Thread Jason Gerecke
in an automated environment. Jason Gerecke (7): configure: Remove vestigal AC_SUBST configure: Add missing kernel source search path configure: Replace multiple kernel search paths with just one configure: Stop with an error if the kernel sources can't be found configure: Remove no-longer-necessary

[Linuxwacom-devel] [PATCH input-wacom] Report ABS_MISC event for Cintiq Companion Hybrid

2015-01-16 Thread Jason Gerecke
It appears that the Cintiq Companion Hybrid does not send an ABS_MISC event to userspace when any of its ExpressKeys are pressed. This causes problems for xf86-input-wacom beginning with its 8f44f35 commit. Fixes: https://sourceforge.net/p/linuxwacom/bugs/272/ Signed-off-by: Jason Gerecke killert

[Linuxwacom-devel] [PATCH] xsetwacom: Use effective XKB group number in keysym_to_keycode

2015-01-12 Thread Jason Gerecke
://sourceforge.net/p/linuxwacom/bugs/269/ Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 46 ++ 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 3d6b417..ec5d24e 100644 --- a/tools

[Linuxwacom-devel] [PATCH input-wacom 01/11] HID: wacom: Report ABS_TILT_{X, Y} as signed values

2015-01-12 Thread Jason Gerecke
to support signed tilt values in late-2012 (2f2acec). Signed-off-by: Jason Gerecke killert...@gmail.com Reviewed-by: Ping Cheng pi...@wacom.com Signed-off-by: Jiri Kosina jkos...@suse.cz Signed-off-by: Jason Gerecke killert...@gmail.com --- 3.17/wacom_wac.c | 16 1 file changed

[Linuxwacom-devel] [PATCH input-wacom 11/11] HID: wacom: Report input events for each finger on generic devices

2015-01-12 Thread Jason Gerecke
contact; when such a field is encountered all the stored contact data will be reported. Signed-off-by: Jason Gerecke killert...@gmail.com Reviewed-by: Benjamin Tissoires benjamin.tissoi...@redhat.com Signed-off-by: Jiri Kosina jkos...@suse.cz Signed-off-by: Jason Gerecke killert...@gmail.com

[Linuxwacom-devel] [PATCH input-wacom 07/11] HID: wacom: re-add accidentally dropped Lenovo PID

2015-01-12 Thread Jason Gerecke
...@redhat.com Signed-off-by: Jiri Kosina jkos...@suse.cz Signed-off-by: Jason Gerecke killert...@gmail.com --- 3.17/wacom_wac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/3.17/wacom_wac.c b/3.17/wacom_wac.c index 9e46288..734c223 100644 --- a/3.17/wacom_wac.c +++ b/3.17/wacom_wac.c @@ -3061,6

[Linuxwacom-devel] [PATCH input-wacom 06/11] Backport: make hid_report_len as a static inline function in hid.h

2015-01-12 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- 3.17/wacom_sys.c | 12 1 file changed, 12 insertions(+) diff --git a/3.17/wacom_sys.c b/3.17/wacom_sys.c index 8b841e5..40a70f3 100644 --- a/3.17/wacom_sys.c +++ b/3.17/wacom_sys.c @@ -1321,6 +1321,14 @@ static void

[Linuxwacom-devel] [PATCH input-wacom 09/11] Backport: Add support for DTU-1031X

2015-01-12 Thread Jason Gerecke
From: Jason Gerecke jason.gere...@wacom.com Signed-off-by: Jason Gerecke killert...@gmail.com --- 2.6.30/wacom_wac.c | 5 + 2.6.30/wacom_wac.h | 1 + 2.6.36/wacom_wac.c | 7 +++ 2.6.36/wacom_wac.h | 1 + 2.6.38/wacom_wac.c | 7 +++ 2.6.38/wacom_wac.h | 1 + 3.7/wacom_wac.c| 7

[Linuxwacom-devel] [PATCH input-wacom 02/11] HID: wacom: Add angular resolution data to some ABS axes

2015-01-12 Thread Jason Gerecke
the values and range by at least 10x would reduce the error in the resolution to acceptable levels, but the xf86-input-wacom driver is not able to use pre-scaled values for these axes at this time. Signed-off-by: Jason Gerecke killert...@gmail.com Reviewed-by: Ping Cheng pi...@wacom.com Signed-off

[Linuxwacom-devel] [PATCH input-wacom 00/11] Linux 3.19 backports

2015-01-12 Thread Jason Gerecke
The following patches have been merged by linus into his 3.19 tree and need to be applied to input-wacom as well. Benjamin Tissoires (1): HID: wacom: re-add accidentally dropped Lenovo PID Jason Gerecke (7): HID: wacom: Report ABS_TILT_{X,Y} as signed values HID: wacom: Add angular

Re: [Linuxwacom-devel] [PATCH input-wacom 04/11] HID: wacom: Consult the application usage when determining field type

2015-01-12 Thread Jason Gerecke
,/ So you look at the sixty-fours On Mon, Jan 12, 2015 at 11:48 AM, Jason Gerecke killert...@gmail.com wrote: It is not necessarily sufficient to look only at the physical and logical usages when determining if a field is for the pen or touch. Some fields are not contained in a sub

Re: [Linuxwacom-devel] Wacom Bamboo PAD CTH-301 (0x318)

2015-01-08 Thread Jason Gerecke
I do not have a Bamboo Pad, but I've heard that people have had success getting it to work using the steps described at [1]. Unfortunately, the workaround stopped working in Linux 3.17, so please check that first. [1]: http://thottingal.in/blog/2014/10/26/howto-wacom-bamboo-cth301k-in-debian/

[Linuxwacom-devel] [PATCH input-wacom 1/2] Fix fixed release script

2015-03-17 Thread Jason Gerecke
Apparently xf86-input-wacom and input-wacom have a slightly different notion of the project root. Signed-off-by: Jason Gerecke killert...@gmail.com --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 78c40f4..622eee9 100755

[Linuxwacom-devel] [PATCH input-wacom 2/2] Stop generating/uploading .tar.gz files

2015-03-17 Thread Jason Gerecke
xf86-input-wacom hasn't used them for years now, and they're far less popular to download anyway. Signed-off-by: Jason Gerecke killert...@gmail.com --- configure.ac | 2 +- release.sh | 11 ++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac

Re: [Linuxwacom-devel] [PATCH input-wacom 1/2] Fix fixed release script

2015-03-20 Thread Jason Gerecke
On 3/17/2015 4:51 PM, Peter Hutterer wrote: On Tue, Mar 17, 2015 at 04:23:38PM -0700, Jason Gerecke wrote: Apparently xf86-input-wacom and input-wacom have a slightly different notion of the project root. Signed-off-by: Jason Gerecke killert...@gmail.com --- release.sh | 2 +- 1 file

Re: [Linuxwacom-devel] [PATCH] Allow PAD only interfaces without EV_ABS and/or EV_X/Y to report events

2015-03-20 Thread Jason Gerecke
On Wed, Mar 18, 2015 at 4:22 PM, Ping Cheng pingli...@gmail.com wrote: On Wed, Mar 18, 2015 at 3:22 PM, Benjamin Tissoires benjamin.tissoi...@gmail.com wrote: On Sun, Mar 15, 2015 at 10:01 PM, Peter Hutterer peter.hutte...@who-t.net wrote: On Fri, Mar 13, 2015 at 11:24:27AM -0400, Benjamin

Re: [Linuxwacom-devel] [PATCH] Fix release script

2015-03-11 Thread Jason Gerecke
the final release (when re-point the default download location to the new file). Acked-by: Jason Gerecke killert...@gmail.com Jason --- Now instead of four in the eights place / you’ve got three, ‘Cause you added one / (That is to say, eight) to the two, / But you can’t take seven from three

Re: [Linuxwacom-devel] [PATCH 1/6] Coverity: fix potential NULL-pointer dereferences

2015-03-12 Thread Jason Gerecke
On 3/11/2015 6:15 PM, Peter Hutterer wrote: Signed-off-by: Peter Hutterer peter.hutte...@who-t.net --- src/wcmCommon.c | 3 +++ src/wcmTouchFilter.c | 8 +--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 7d56ba5..92f8cf8

Re: [Linuxwacom-devel] [PATCH v2] Coverity: fix potential NULL-pointer dereferences

2015-03-12 Thread Jason Gerecke
at the moment with patch 2 where you explicitly ignore the return value, but for everything else in the set: Reviewed-by: Jason Gerecke killert...@gmail.com -- Jason --- Now instead of four in the eights place / you’ve got three, ‘Cause you added one / (That is to say, eight) to the two

[Linuxwacom-devel] [PATCH input-wacom] Adjust LINUX_VERSION_CODE checks for 3.17 tree

2015-02-20 Thread Jason Gerecke
The HID_CONNECT_DRIVER flag was added in Linux 3.18, while the 'hid_report_len' function was added in Linux 3.19. Signed-off-by: Jason Gerecke killert...@gmail.com --- 3.17/wacom_sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/3.17/wacom_sys.c b/3.17/wacom_sys.c

[Linuxwacom-devel] [PATCH 3/8] xsetwacom: Fix format string provided used by 'get_button'

2015-01-29 Thread Jason Gerecke
xsetwacom.c: In function ‘get_button’: xsetwacom.c:2080:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘Atom’ [-Wformat=] print_button_value(param, offset, %d, prop); Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 2 +- 1 file

[Linuxwacom-devel] [PATCH 6/8] tools: Fix up const warnings

2015-01-29 Thread Jason Gerecke
than originally existed in new_words[0]). Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/tools-shared.c | 2 +- tools/tools-shared.h | 2 +- tools/xsetwacom.c| 33 + 3 files changed, 15 insertions(+), 22 deletions(-) diff --git a/tools/tools

[Linuxwacom-devel] [PATCH 5/8] xsetwacom: Use 'fabs' instead of 'abs' where necessary

2015-01-29 Thread Jason Gerecke
Fixes multiple clang warnings about the use of 'abs' with a floating- point argument. Signed-off-by: Jason Gerecke killert...@gmail.com --- src/wcmCommon.c | 2 +- src/wcmTouchFilter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c

[Linuxwacom-devel] [PATCH 8/8] doc: Fix doxygen.conf warnings

2015-01-29 Thread Jason Gerecke
Remove the obsolete XML_SCHEMA and XML_DTD definitions, as well as clear the definition of DOT_FONTNAME. Signed-off-by: Jason Gerecke killert...@gmail.com --- doc/doxygen.conf.in | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/doc/doxygen.conf.in b/doc

[Linuxwacom-devel] [PATCH 4/8] xsetwacom: Remove unused variable from 'strjoinsplit'

2015-01-29 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 284e6e2..db3a776 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -1285,7 +1285,7 @@ static int

[Linuxwacom-devel] [PATCH 7/8] xsetwacom: Ease static analysis of get_mapped_area

2015-01-29 Thread Jason Gerecke
to be more straightforward and analyzable. Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 22b47de..1fd70c8 100644 --- a/tools

[Linuxwacom-devel] [PATCH 1/8] tools: Build with CWARNFLAGS

2015-01-29 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/Makefile.am b/tools/Makefile.am index 0aad526..5622362 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -20,7 +20,8 @@ bin_PROGRAMS

[Linuxwacom-devel] [PATCH 2/8] xsetwacom: Declare printf attribute on print_{, button_}value

2015-01-29 Thread Jason Gerecke
Signed-off-by: Jason Gerecke killert...@gmail.com --- tools/xsetwacom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index 97f572d..bc22be0 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -661,6 +661,7 @@ static param_t* find_parameter(char

Re: [Linuxwacom-devel] [PATCH 4/5] xsetwacom: Add print_button_value function

2015-01-29 Thread Jason Gerecke
On 1/27/2015 4:35 PM, Peter Hutterer wrote: On Mon, Jan 26, 2015 at 01:27:59PM -0800, Jason Gerecke wrote: Setting a button value requires a slightly different format than most other properties. In particular, they require the presence of a button number either concatenated onto the prefix

[Linuxwacom-devel] [PATCH 2/7] afl: xsetwacom: Do not allow negative button numbers

2015-04-28 Thread Jason Gerecke
Currently its possible to provide a negative (or zero) button number on the commandline, which will be dutifully translated into a negative offset. Detect this and throw an error if encountered. Signed-off-by: Jason Gerecke jason.jgere...@wacom.com --- tools/xsetwacom.c | 4 ++-- 1 file changed

[Linuxwacom-devel] [PATCH] xsetwacom: Fix 'get_mapped_area' (maptooutput next) on 64-bit

2015-04-28 Thread Jason Gerecke
by the server to take up only 4 bytes of memory. This is the case on 32-bit systems, but not on 64-bit ones. This was partially addressed in bc5fd9e, but not here. Signed-off-by: Jason Gerecke jason.gere...@wacom.com --- tools/xsetwacom.c | 30 ++ 1 file changed, 18

[Linuxwacom-devel] [PATCH 1/7] xsetwacom: Add ability to read args from stdin for fuzzing

2015-04-28 Thread Jason Gerecke
Add a new --enable-fuzz-interface configuration option which will cause xsetwacom to read NUL-separated arguments from stdin (for example: `echo -en 'list\0devices' | xsetwacom`). This makes it easier to plug into fuzzing software for debugging. Signed-off-by: Jason Gerecke jason.gere

[Linuxwacom-devel] [PATCH 7/7] asan: xsetwacom: Cleanup xsetwacom memory leaks

2015-04-28 Thread Jason Gerecke
Address several leaks present in the code, as well as two uses of 'free' where 'XFree' should have been used instead. Signed-off-by: Jason Gerecke jason.gere...@wacom.com --- tools/xsetwacom.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff

[Linuxwacom-devel] [PATCH 3/7] afl: xsetwacom: Check that argc is in range before dereferencing argv

2015-04-28 Thread Jason Gerecke
These functions access argv[0] before checking that argc is at least 1. In the interest of correctness, swap it around so that the check occurs before the dereference. Signed-off-by: Jason Gerecke jason.gere...@wacom.com --- tools/xsetwacom.c | 9 + 1 file changed, 5 insertions(+), 4

[Linuxwacom-devel] [PATCH 4/7] ubsan: Fix alignment issues

2015-04-28 Thread Jason Gerecke
: AddressSanitizer: undefined-behavior ../src/wcmUSB.c:1000 Signed-off-by: Jason Gerecke jason.gere...@wacom.com --- src/wcmUSB.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wcmUSB.c b/src/wcmUSB.c index c15cd4a..5ceba95 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -815,11

[Linuxwacom-devel] [PATCH 5/7] ubsan: Prevent out-of-bounds array write

2015-04-28 Thread Jason Gerecke
as written (valuators[6] = v6) won't do anything (since valuators[6] == v6). Even stil... Signed-off-by: Jason Gerecke jason.gere...@wacom.com --- src/wcmCommon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 92f8cf8..4dd537c 100644

<    1   2   3   4   5   6   7   8   9   10   >