diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2010-08-30 00:45:50 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2010-08-30 00:45:50 +0200 |
| commit | 9c70cefed5bc44284a2cd63fc5e3b4ab3d90d0bf (patch) | |
| tree | 8e02700eeec85039fee0edd5988cd533ec535c02 | |
| parent | 73ad231ab65dcf85fc9f134a017a501a57a3c52c (diff) | |
Fix bitmask bug in position reporting
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | debian/changelog | 6 | ||||
| -rw-r--r-- | debian/postinst | 2 | ||||
| -rw-r--r-- | debian/postrm | 2 | ||||
| -rw-r--r-- | debian/prerm | 2 | ||||
| -rwxr-xr-x | debian/rules | 2 | ||||
| -rw-r--r-- | usr/src/dkms_source_tree/dkms.conf | 2 | ||||
| -rw-r--r-- | usr/src/dkms_source_tree/wacom_wac.c | 7 |
8 files changed, 17 insertions, 8 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | NAME = wacom | 1 | NAME = wacom |
| 2 | VERSION = 1.0.1 | 2 | VERSION = 1.0.2 |
| 3 | SRC = usr/src | 3 | SRC = usr/src |
| 4 | 4 | ||
| 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz | 5 | TARBALL = $(NAME)-$(VERSION).dkms.tar.gz |
diff --git a/debian/changelog b/debian/changelog index 7815159..257fe9c 100644 --- a/debian/changelog +++ b/debian/changelog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | wacom-dkms (1.0.2) maverick; urgency=low | ||
| 2 | |||
| 3 | * Fix bitmask bug in position | ||
| 4 | |||
| 5 | -- Henrik Rydberg <rydberg@bitmath.org> Mon, 30 Aug 2010 00:45:15 +0200 | ||
| 6 | |||
| 1 | wacom-dkms (1.0.1) maverick; urgency=low | 7 | wacom-dkms (1.0.1) maverick; urgency=low |
| 2 | 8 | ||
| 3 | * Improve bamboo touch resolution | 9 | * Improve bamboo touch resolution |
diff --git a/debian/postinst b/debian/postinst index 1812293..0e67711 100644 --- a/debian/postinst +++ b/debian/postinst | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | set -e | 3 | set -e |
| 4 | 4 | ||
| 5 | NAME=wacom | 5 | NAME=wacom |
| 6 | VERSION=1.0.1 | 6 | VERSION=1.0.2 |
| 7 | 7 | ||
| 8 | case "$1" in | 8 | case "$1" in |
| 9 | configure) | 9 | configure) |
diff --git a/debian/postrm b/debian/postrm index e809ff1..7a29a1e 100644 --- a/debian/postrm +++ b/debian/postrm | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | NAME=wacom | 3 | NAME=wacom |
| 4 | VERSION=1.0.1 | 4 | VERSION=1.0.2 |
| 5 | 5 | ||
| 6 | set -e | 6 | set -e |
| 7 | 7 | ||
diff --git a/debian/prerm b/debian/prerm index bc3e47d..183216e 100644 --- a/debian/prerm +++ b/debian/prerm | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | NAME=wacom | 3 | NAME=wacom |
| 4 | VERSION=1.0.1 | 4 | VERSION=1.0.2 |
| 5 | 5 | ||
| 6 | set -e | 6 | set -e |
| 7 | 7 | ||
diff --git a/debian/rules b/debian/rules index 6ee0e64..bc35587 100755 --- a/debian/rules +++ b/debian/rules | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #export DH_VERBOSE=1 | 5 | #export DH_VERBOSE=1 |
| 6 | 6 | ||
| 7 | NAME=wacom | 7 | NAME=wacom |
| 8 | VERSION=1.0.1 | 8 | VERSION=1.0.2 |
| 9 | 9 | ||
| 10 | configure: configure-stamp | 10 | configure: configure-stamp |
| 11 | configure-stamp: | 11 | configure-stamp: |
diff --git a/usr/src/dkms_source_tree/dkms.conf b/usr/src/dkms_source_tree/dkms.conf index 9d2da13..fc054d5 100644 --- a/usr/src/dkms_source_tree/dkms.conf +++ b/usr/src/dkms_source_tree/dkms.conf | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | NAME=wacom | 1 | NAME=wacom |
| 2 | VERSION=1.0.1 | 2 | VERSION=1.0.2 |
| 3 | PACKAGE_NAME="$NAME" | 3 | PACKAGE_NAME="$NAME" |
| 4 | PACKAGE_VERSION="$VERSION" | 4 | PACKAGE_VERSION="$VERSION" |
| 5 | MAKE[0]="make -C ${kernel_source_dir} | 5 | MAKE[0]="make -C ${kernel_source_dir} |
diff --git a/usr/src/dkms_source_tree/wacom_wac.c b/usr/src/dkms_source_tree/wacom_wac.c index 03a3fdc..d1c388e 100644 --- a/usr/src/dkms_source_tree/wacom_wac.c +++ b/usr/src/dkms_source_tree/wacom_wac.c | |||
| @@ -869,8 +869,11 @@ static int wacom_bbt_irq(struct wacom_wac *wacom, size_t len) | |||
| 869 | int p = data[9 * i + 2]; | 869 | int p = data[9 * i + 2]; |
| 870 | input_mt_slot(input, i); | 870 | input_mt_slot(input, i); |
| 871 | if (p) { | 871 | if (p) { |
| 872 | int x = get_unaligned_be16(&data[9 * i + 3]) << 4; | 872 | int x = get_unaligned_be16(&data[9 * i + 3]) & 0x7ff; |
| 873 | int y = get_unaligned_be16(&data[9 * i + 5]) << 4; | 873 | int y = get_unaligned_be16(&data[9 * i + 5]) & 0x7ff; |
| 874 | /* artificial scaling */ | ||
| 875 | x <<= 4; | ||
| 876 | y <<= 4; | ||
| 874 | input_report_abs(input, ABS_MT_PRESSURE, p); | 877 | input_report_abs(input, ABS_MT_PRESSURE, p); |
| 875 | input_report_abs(input, ABS_MT_POSITION_X, x); | 878 | input_report_abs(input, ABS_MT_POSITION_X, x); |
| 876 | input_report_abs(input, ABS_MT_POSITION_Y, y); | 879 | input_report_abs(input, ABS_MT_POSITION_Y, y); |
