1. 09 7月, 2018 5 次提交
  2. 06 3月, 2018 1 次提交
    • T
      HID: sony: Add touchpad support for NSG-MR5U and NSG-MR7U remotes · b7289cb1
      Todd Kelner 提交于
      Sony's NSG-MR5U and NSG-MR7U remote controls have a full keyboard and a
      touchpad.  The keyboard is already supported by the existing Linux
      kernel and drivers but the touchpad is not recognized.  This patch adds
      the coded needed to bring full functionality to the touchpad.
      
      Note that these remotes use the vendor code for SMK even though they are
      Sony branded.
      
      Known limitations
      - The built-in accelerometers are not supported by these changes
      - When the Drag (Fn) key is used as a mouse button, the button is
      automatically released when the key begins repeating.  There are two
        workarounds for this 1) Use the button behind the touchpad instead of
        the Drag (Fn) key or 2) Disable the key repeat functionality or
        increase the key repeat delay.
      Signed-off-by: NTodd Kelner <tsopdump@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b7289cb1
  3. 23 1月, 2018 2 次提交
  4. 09 11月, 2017 1 次提交
  5. 06 4月, 2017 7 次提交
  6. 21 3月, 2017 12 次提交
  7. 06 3月, 2017 2 次提交
  8. 19 12月, 2016 3 次提交
  9. 29 11月, 2016 1 次提交
  10. 28 11月, 2016 3 次提交
    • R
      HID: sony: Comply to Linux gamepad spec for DS4 · 9131f8cc
      Roderick Colenbrander 提交于
      The DS4 side of hid-sony used the hid-core layer to assign buttons
      and axes based on the HID report descriptors. The default mapping
      was strange e.g. right stick using ABS_Z/ABS_RZ or the physical
      'south button' being reported as BTN_EAST etcetera.
      
      This patch makes the DS4 side ofi the hid-sony driver comply to
      the Linux game controller spec as suggested in a discussion with
      Dmitry on the linux-input list.
      
      Currently the main user of the DS4 is the SDL2 library, which has
      a mapping table using vendor/device/version as a key. In order to
      not break SDL2 we discussed adjusting the version number, so it
      can have both mappings. This was discust on linux-input and we
      discussed privately with SDL2 developers.
      Signed-off-by: NRoderick Colenbrander <roderick.colenbrander@sony.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9131f8cc
    • R
      HID: sony: Make the DS4 touchpad a separate device · ac797b95
      Roderick Colenbrander 提交于
      The dualshock 4 supports both analog sticks of which one uses
      ABS_X/_Y and a touchpad. In a recent discussion with Dmitry about
      some input-mt changes we proposed for disabling pointer emulation from
      input_mt_sync_frame, Dmitry mentioned ABS_X/_Y should report the
      same data as ABS_MT_POSITION_X/_Y. The current driver is mixing axes
      for different subdevices. It was suggested to make the touchpad
      its own sub-device.
      
      This patch turns the touchpad into its own device. In addition
      this patch also moves the button underneath the touchpad into
      the new device. It felt like this button should be part of the
      device. No known user space application (not even SDL2) seems to
      be using it.
      Signed-off-by: NRoderick Colenbrander <roderick.colenbrander@sony.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ac797b95
    • R
      HID: sony: Fix memory issue when connecting device using both Bluetooth and USB · 4f967f6d
      Roderick Colenbrander 提交于
      A previous patch moved most input initialization from sony_probe to
      sony_input_configured to avoid some race conditions. The driver has some
      special logic to prevent the device to get registered twice in case the
      user connects it both over Bluetooth and USB. When this condition
      happens sony_input_configured returns a failure, but sony_probe continues
      as hid_hw_start doesn't fail. As was discussed on linux-input, it is
      acceptable for this function to fail.
      
      This patch adds a check for the HID_CLAIMED_INPUT flag within sony_probe
      to determine whether initialization succeeded correctly. The flag is
      not set by the HID layer when sony_input_configured fails.
      Signed-off-by: NRoderick Colenbrander <roderick.colenbrander@sony.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4f967f6d
  11. 10 10月, 2016 3 次提交