Commit 75dcd3a4 authored by Peter Osterlund's avatar Peter Osterlund Committed by Dmitry Torokhov

[PATCH] synaptics powerpro fix

Made the packet checking code less strict, so that the driver works also for
touchpads that don't strictly follow the synaptics absolute protocol. 
Problem reported by Anders Kaseorg using a PowerPro C 3:16 laptop.
parent 2b07066d
...@@ -599,7 +599,7 @@ static void synaptics_process_packet(struct psmouse *psmouse) ...@@ -599,7 +599,7 @@ static void synaptics_process_packet(struct psmouse *psmouse)
static int synaptics_validate_byte(struct psmouse *psmouse) static int synaptics_validate_byte(struct psmouse *psmouse)
{ {
static unsigned char newabs_mask[] = { 0xC8, 0x00, 0x00, 0xC8, 0x00 }; static unsigned char newabs_mask[] = { 0xC0, 0x00, 0x00, 0xC0, 0x00 };
static unsigned char newabs_rslt[] = { 0x80, 0x00, 0x00, 0xC0, 0x00 }; static unsigned char newabs_rslt[] = { 0x80, 0x00, 0x00, 0xC0, 0x00 };
static unsigned char oldabs_mask[] = { 0xC0, 0x60, 0x00, 0xC0, 0x60 }; static unsigned char oldabs_mask[] = { 0xC0, 0x60, 0x00, 0xC0, 0x60 };
static unsigned char oldabs_rslt[] = { 0xC0, 0x00, 0x00, 0x80, 0x00 }; static unsigned char oldabs_rslt[] = { 0xC0, 0x00, 0x00, 0x80, 0x00 };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment