diff options
author | Wei-Han Chen <stimim@google.com> | 2018-10-02 18:10:41 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-04 00:36:57 -0700 |
commit | 96b93724e423a51bb5171d7599a28f9992390b09 (patch) | |
tree | 5bedd4134c61cc278d8b7cc50197ea4edb098d7d /driver | |
parent | 68b430bef114ba021f751543a650e19d6fec2bdf (diff) | |
download | chrome-ec-96b93724e423a51bb5171d7599a28f9992390b09.tar.gz |
touchpad_st: scale major & minor
Pressure, major, minor values are adjusted in v25.0 firmware.
This should reduce the chance of dropping a tap.
BRANCH=nocturne
BUG=b:116321493
TEST=manual on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: Ia9345f7a624e7db9b73926ee29e5e5631d63998a
Reviewed-on: https://chromium-review.googlesource.com/1256306
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/touchpad_st.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/touchpad_st.c b/driver/touchpad_st.c index 1b304e1a3b..2a0d35d86b 100644 --- a/driver/touchpad_st.c +++ b/driver/touchpad_st.c @@ -194,9 +194,9 @@ static int st_tp_parse_finger(struct usb_hid_touchpad_report *report, report->finger[i].id = event->finger.touch_id; report->finger[i].pressure = event->finger.z; report->finger[i].width = (event->finger.minor | - (event->minor_high << 4)) << 4; + (event->minor_high << 4)) << 5; report->finger[i].height = (event->finger.major | - (event->major_high << 4)) << 4; + (event->major_high << 4)) << 5; report->finger[i].x = (CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X - event->finger.x); |