summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES6
-rw-r--r--bcm5974.c4
-rw-r--r--dkms.conf2
-rwxr-xr-xscripts/bcm5974-post-install20
4 files changed, 20 insertions, 12 deletions
diff --git a/CHANGES b/CHANGES
index bcb0867..8512d87 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
108JUL2008 version 0.54
2----------------------
3
4And another one... finally got the bright idea to test it by emulating
5the different product ids.
6
107JUL2008 version 0.53 707JUL2008 version 0.53
2---------------------- 8----------------------
3 9
diff --git a/bcm5974.c b/bcm5974.c
index e1876c6..4d9dd45 100644
--- a/bcm5974.c
+++ b/bcm5974.c
@@ -192,8 +192,8 @@ static const struct atp_config atp_config_table[] = {
192 0x81, sizeof(struct tp_data), 192 0x81, sizeof(struct tp_data),
193 { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 256 }, 193 { DIM_PRESSURE, DIM_PRESSURE / SN_PRESSURE, 0, 256 },
194 { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 }, 194 { DIM_WIDTH, DIM_WIDTH / SN_WIDTH, 0, 2048 },
195 { DIM_X, DIM_X / SN_COORD, -4824, 5342 }, 195 { DIM_X, DIM_X / SN_COORD, -4824, 4824 },
196 { DIM_Y, DIM_Y / SN_COORD, -172, 5820 } 196 { DIM_Y, DIM_Y / SN_COORD, -172, 4290 }
197 }, 197 },
198 {} 198 {}
199}; 199};
diff --git a/dkms.conf b/dkms.conf
index 35e8af8..cb169d6 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -1,5 +1,5 @@
1PACKAGE_NAME="bcm5974" 1PACKAGE_NAME="bcm5974"
2PACKAGE_VERSION="0.53" 2PACKAGE_VERSION="0.54"
3MAKE[0]="make -C ${kernel_source_dir} 3MAKE[0]="make -C ${kernel_source_dir}
4 SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules" 4 SUBDIRS=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build modules"
5BUILT_MODULE_NAME[0]="bcm5974" 5BUILT_MODULE_NAME[0]="bcm5974"
diff --git a/scripts/bcm5974-post-install b/scripts/bcm5974-post-install
index 8c71be0..5674d40 100755
--- a/scripts/bcm5974-post-install
+++ b/scripts/bcm5974-post-install
@@ -25,17 +25,19 @@ ETCPATH=/etc/modprobe.d/$DRIVER
25echo ----------------------------------------------------------------------- 25echo -----------------------------------------------------------------------
26 26
27DIR=`dirname $0` 27DIR=`dirname $0`
28LSUSB=/usr/sbin/lsusb
29
28PAT_HEAD="options usbhid quirks=" 30PAT_HEAD="options usbhid quirks="
29PAT_MBA="0x05ac:0x022" 31PAT[0]="05ac:022"
30PAT_MBP="0x05ac:0x023" 32PAT[1]="05ac:023"
31MATCH_MBA=$PAT_HEAD$PAT_MBA 33MATCH[0]=${PAT_HEAD}0x05ac:0x022
32MATCH_MBP=$PAT_HEAD$PAT_MBP 34MATCH[1]=${PAT_HEAD}0x05ac:0x023
33 35
34if [ -x /usr/sbin/lsusb ]; then 36if [ -x $LSUSB ]; then
35 if [ "lsusb|grep $PAT_MBA" != "" ]; then 37 if [ "`$LSUSB|grep ${PAT[0]}`" != "" ]; then
36 SED="s/#$MATCH_MBA/$MATCH_MBA/" 38 SED="s/#${MATCH[0]}/${MATCH[0]}/"
37 elif [ "lsusb|grep $PAT_MBP" != "" ]; then 39 elif [ "`$LSUSB|grep ${PAT[1]}`" != "" ]; then
38 SED="s/#$MATCH_MBP/$MATCH_MBP/" 40 SED="s/#${MATCH[1]}/${MATCH[1]}/"
39 else 41 else
40 echo No suitable device found 42 echo No suitable device found
41 exit 1 43 exit 1