]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
HID: sony: Update the DualShock 4 touchpad resolution
authorFrank Praznik <frank.praznik@oh.rr.com>
Wed, 24 Sep 2014 13:38:19 +0000 (09:38 -0400)
committerJiri Kosina <jkosina@suse.cz>
Thu, 25 Sep 2014 09:23:26 +0000 (11:23 +0200)
The DualShock 4 touchpad has been measured to have a resolution of
44.86 dots/mm which equates to 1920x942.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c

index 5baa311e22fca24c3ae9741fcc7c1758231acbdf..bc4269e559f119bde1a957ffd1b249c619395048 100644 (file)
@@ -1107,10 +1107,10 @@ static void sony_input_configured(struct hid_device *hdev,
 
        /*
         * The Dualshock 4 touchpad supports 2 touches and has a
-        * resolution of 1920x940.
+        * resolution of 1920x942 (44.86 dots/mm).
         */
        if (sc->quirks & DUALSHOCK4_CONTROLLER) {
-               if (sony_register_touchpad(hidinput, 2, 1920, 940) != 0)
+               if (sony_register_touchpad(hidinput, 2, 1920, 942) != 0)
                        hid_err(sc->hdev,
                                "Unable to initialize multi-touch slots\n");
        }