An error occurred fetching the project authors.
  1. 19 Oct, 2017 1 commit
  2. 05 May, 2017 2 commits
    • Jason Gerecke's avatar
      HID: wacom: generic: Refactor generic battery handling · 5ac3d4ae
      Jason Gerecke authored
      Generic battery handling code is spread between the pen and pad codepaths
      since battery usages may appear in reports for either. This makes it
      difficult to concisely see the logic involved. Since battery data is
      not treated like other data (i.e., we report it through the power_supply
      subsystem rather than through the input subsystem), it makes reasonable
      sense to split the functionality out into its own functions.
      
      This commit has the generic battery handling duplicate the same pattern
      that is used by the pen, pad, and touch interfaces. A "mapping" function
      is provided to set up the battery, an "event" function is provided to
      update the battery data, and a "report" function is provided to notify
      the power_supply subsystem after all the data has been read. We look at
      the usage itself rather than its collection to determine if one of the
      battery functions should handle it. Additionally, we unconditionally
      call the "report" function since there is no particularly good way to
      know if a report contained a battery usage; 'wacom_notify_battery()'
      will filter out any duplicate updates, however.
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Reviewed-by: default avatarPing Cheng <ping.cheng@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      5ac3d4ae
    • Jason Gerecke's avatar
      HID: wacom: Add ability to provide explicit battery status info · 16e45989
      Jason Gerecke authored
      At the moment, our driver relies on 'wacom_battery_get_property()' to
      determine the most likely battery state (e.g charging, discharging, or
      full) based on the information available. It is not always possible
      for the function to properly determine this, however. For instance,
      whenever an AES pen leaves proximity the battery state becomes
      indeterminite. This commit adds the ability to provide it with explict
      state information if desired. Whenever explicit state is not required
      (the majority of circumstances), WACOM_POWER_SUPPLY_STATUS_AUTO can
      be used in its place.
      
      Three uses of explicit battery status are added: two wireless disconnect
      paths and the AES case mentioned above.
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Reviewed-by: default avatarPing Cheng <ping.cheng@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      16e45989
  3. 06 Apr, 2017 1 commit
  4. 06 Mar, 2017 3 commits
  5. 26 Jan, 2017 6 commits
  6. 09 Dec, 2016 1 commit
  7. 20 Oct, 2016 12 commits
  8. 11 Aug, 2016 1 commit
    • Jason Gerecke's avatar
      HID: wacom: Update last_slot_field during pre_report phase · 003f50ab
      Jason Gerecke authored
      If a touchscreen contains both multitouch and single-touch reports in its
      descriptor in that order, the driver may overwrite information it saved
      about the format of the multitouch report. This can cause the report
      processing code to get tripped up and send an incorrect event stream to
      userspace.
      
      In particular, this can cause last_slot_field to be overwritten with the
      result that the driver prematurely assumes it has finished processing a
      slot and sending the ABS_MT_SLOT event at the wrong point in time,
      associating events for the current contact with the following contact
      instead.
      
      To prevent this from occurring, we update the value of last_slot_field
      durring the pre_report phase to ensure that it is correct for the report
      that is to be processed.
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Reviewed-by: default avatarPing Cheng <pingc@wacom.com>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      003f50ab
  9. 10 Aug, 2016 1 commit
  10. 05 Aug, 2016 5 commits
  11. 03 May, 2016 1 commit
    • Jason Gerecke's avatar
      HID: wacom: Add fuzz factor to distance and tilt axes · bef7e200
      Jason Gerecke authored
      The fuzz present on the distance and tilt axes is noticable when a puck is
      present, and userspace (specifically libinput) would like the ability to
      filter out the noise. To facilitate this, we assign a fuzz value of '1'
      for the distance and tilt axes. This is large enough to cover most of the
      natural variation in distance value as the puck is moved around, and
      enough to cover the jitter in rotation (reported through tilt axes) when
      the puck is left alone.
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      bef7e200
  12. 05 Apr, 2016 1 commit
  13. 08 Jan, 2016 1 commit
  14. 02 Dec, 2015 1 commit
  15. 02 Nov, 2015 1 commit
  16. 21 Oct, 2015 2 commits
    • Jason Gerecke's avatar
      HID: wacom: Tie cached HID_DG_CONTACTCOUNT indices to report ID · 499522c8
      Jason Gerecke authored
      The cached indicies 'cc_index' and 'cc_value_index' introduced in 1b5d514
      are only valid for a single report ID. If a touchscreen has multiple
      reports with a HID_DG_CONTACTCOUNT usage, its possible that the values
      will not be correct for the report we're handling, resulting in an
      incorrect value for 'num_expected'. This has been observed with the Cintiq
      Companion 2.
      
      To address this, we store the ID of the report those indicies are valid
      for in a new  'cc_report' variable. Before using them to get the expected
      contact count, we first check if the ID of the report we're processing
      matches 'cc_report'. If it doesn't, we update the indicies to point to
      the HID_DG_CONTACTCOUNT usage of the current report (if it has one).
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      499522c8
    • Jason Gerecke's avatar
      HID: wacom: Add support for Cintiq Companion 2 · f7acb55c
      Jason Gerecke authored
      Adds support for the EMR (pen+pad) and touchscreen devices used by the
      Wacom Cintiq Companion 2. This applies both to using the device as a
      standalone system, as well as when operating in "Cintiq mode" (where
      the EMR/touchscreen are simply exposed as USB devices to the system
      its connected to).
      Signed-off-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: default avatarClifford Jolly <expiredpopsicle@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      f7acb55c