ads7846 touchscreen: fix pressure
Subsystems (2)
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
drivers/input/touchscreen/ads7846.c renamed from drivers/input.ofic/touchscreen/ads7846.c +1 -1
@@ -608,12 +609,12 @@input_report_abs (input,ABS_X , x);input_report_abs (input,ABS_Y , y); -input_report_abs (input,ABS_PRESSURE , Rt); +input_report_abs (input,ABS_PRESSURE , ts->pressure_max-Rt);input_sync (input);#ifdef VERBOSE dev_dbg (&ts->spi->dev,"%4d/%4d/%4d\n" , x, y, Rt);#endif } hrtimer_start(&ts->timer, ktime_set(0, TS_POLL_PERIOD),
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi Pavel,
Quoted 9 lines · Pavel Machek
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
Signed-off-by Pavel Machek <[email protected]>
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 line 612
Quoted 5 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +1
-1@@ -608,12 +609,12 @@ input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_Y, y); - input_report_abs(input, ABS_PRESSURE, Rt); + input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);
but same behavior is seen by others using this chip on different boards? If not, this has to be done through platform data.
Signature · 7 lines
---Trilok Soni http://triloksoni.wordpress.com http://www.linkedin.com/in/triloksoni -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 13 lines · Trilok Soni
Hi Pavel,
Quoted 10 lines · Pavel Machek
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
Signed-off-by Pavel Machek <[email protected]>drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +0
-0@@ -608,12 +609,12 @@
Quoted 7 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 line 612
Quoted 4 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +1
-1input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_Y, y); - input_report_abs(input, ABS_PRESSURE, Rt); + input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);but same behavior is seen by others using this chip on different boards? If not, this has to be done through platform data.
Well, I'd expect the chip to behave in similar way on all platforms. Of course, it would be good if someone with different hw tested it, but I do not have that hw...
So I guess the best way is to make it go in early and see how it does in testing....
Pavel
Signature · 6 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Dmitry Torokhov
maintainerQuoted 22 lines · Pavel Machek
Quoted 13 lines · Trilok Soni
Hi Pavel,
Quoted 10 lines · Pavel Machek
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
Signed-off-by Pavel Machek <[email protected]>drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +0
-0@@ -608,12 +609,12 @@Quoted 7 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 line 612
Quoted 4 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +1
-1input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_Y, y); - input_report_abs(input, ABS_PRESSURE, Rt); + input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);but same behavior is seen by others using this chip on different boards? If not, this has to be done through platform data.
Quoted 6 lines
Well, I'd expect the chip to behave in similar way on all platforms. Of course, it would be good if someone with different hw tested it, but I do not have that hw...
So I guess the best way is to make it go in early and see how it does in testing....
No, this is not how it works. Please do
git log -- drivers/input/touchscreen/ads7846.c
and try to check with people who were working on this driver. I somehow doubt that they'd overlook such obvious issue as inverted pressure readings.
Signature · 1 line
Dmitry
Quoted 30 lines · Dmitry Torokhov
Quoted 22 lines · Pavel Machek
Quoted 13 lines · Trilok Soni
Hi Pavel,
Quoted 10 lines · Pavel Machek
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
Signed-off-by Pavel Machek <[email protected]>drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +0
-0@@ -608,12 +609,12 @@Quoted 7 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 line 612
Quoted 4 lines
drivers/input/touchscreen/ads7846.c 2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c 2009-10-06 13:49:56.000000000 +0200 +1
-1input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_Y, y); - input_report_abs(input, ABS_PRESSURE, Rt); + input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);but same behavior is seen by others using this chip on different boards? If not, this has to be done through platform data.
Quoted 6 lines
Well, I'd expect the chip to behave in similar way on all platforms. Of course, it would be good if someone with different hw tested it, but I do not have that hw...
So I guess the best way is to make it go in early and see how it does in testing....
Quoted 7 lines
No, this is not how it works. Please do
git log --
drivers/input/touchscreen/ads7846.cand try to check with people who were working on this driver. I somehow doubt that they'd overlook such obvious issue as inverted pressure readings.
Well, it was certainly not obvious to the one who switched zaurus to ads7846, thus causing regression.
Anyway, people, can you please test ads7846, to see if it has normal or inverted pressure readings? I could only find 3 people contributing to ads7846 in last year or so, and Eric was one of them...
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 39 lines · Pavel Machek
Quoted 30 lines · Dmitry Torokhov
Quoted 22 lines · Pavel Machek
Quoted 13 lines · Trilok Soni
Hi Pavel,
Quoted 10 lines · Pavel Machek
On Zaurus, pressure is reported inverted -- the lighter the pressure, the bigger numerical value. This should fix it.
Signed-off-by Pavel Machek <[email protected]>drivers/input/touchscreen/ads7846.c ? ? ? ?2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c ? 2009-10-06 13:49:56.000000000 +0200 +0
-0@@ -608,12 +609,12 @@Quoted 7 lines
drivers/input/touchscreen/ads7846.c ? ? ? ?2009-10-06 21:18:25.000000000 +0200 line 612
Quoted 4 lines
drivers/input/touchscreen/ads7846.c ? ? ? ?2009-10-06 21:18:25.000000000 +0200 renamed from drivers/input.ofic/touchscreen/ads7846.c ? 2009-10-06 13:49:56.000000000 +0200 +1
-1? ? ? ? ? ? ? ?input_report_abs(input, ABS_X, x); ? ? ? ? ? ? ? ?input_report_abs(input, ABS_Y, y); - ? ? ? ? ? ? ? input_report_abs(input, ABS_PRESSURE, Rt); + ? ? ? ? ? ? ? input_report_abs(input, ABS_PRESSURE, ts->pressure_max-Rt);but same behavior is seen by others using this chip on different boards? If not, this has to be done through platform data.
Quoted 6 lines
Well, I'd expect the chip to behave in similar way on all platforms. Of course, it would be good if someone with different hw tested it, but I do not have that hw...
So I guess the best way is to make it go in early and see how it does in testing....
Quoted 7 lines
No, this is not how it works. Please do
git log --
drivers/input/touchscreen/ads7846.cand try to check with people who were working on this driver. I somehow doubt that they'd overlook such obvious issue as inverted pressure readings.
Quoted 6 lines
Well, it was certainly not obvious to the one who switched zaurus to ads7846, thus causing regression.
Anyway, people, can you please test ads7846, to see if it has normal or inverted pressure readings? I could only find 3 people contributing to ads7846 in last year or so, and Eric was one of them...
So... what is the plan here? Can we just make the fix go in? ...it seems noone will test it otherwise.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html