1. 03 5月, 2016 1 次提交
  2. 13 4月, 2016 1 次提交
  3. 29 3月, 2016 1 次提交
  4. 17 2月, 2016 1 次提交
  5. 19 1月, 2016 4 次提交
  6. 08 1月, 2016 1 次提交
  7. 18 12月, 2015 5 次提交
  8. 08 12月, 2015 1 次提交
  9. 03 12月, 2015 7 次提交
  10. 17 11月, 2015 1 次提交
  11. 13 11月, 2015 1 次提交
  12. 03 11月, 2015 2 次提交
  13. 21 10月, 2015 4 次提交
    • J
      HID: wacom: Expect 'touch_max' touches if HID_DG_CONTACTCOUNT not present · df707938
      Jason Gerecke 提交于
      When introduced in commit 1b5d514a, the check 'if (hid_data->cc_index >= 0)'
      in 'wacom_wac_finger_pre_report' was intended to switch where the driver
      got the expected number of contacts from: HID_DG_CONTACTCOUNT if the usage
      was present, or 'touch_max' otherwise. Unfortunately, an oversight worthy
      of a brown paper bag (specifically, that 'cc_index' could never be negative)
      meant that the latter 'else' clause would never be entered.
      
      The patch prior to this one introduced a way for 'cc_index' to be negative,
      but only if HID_DG_CONTACTCOUNT is present in some report _other_ than the
      one being processed. To ensure the 'else' clause is also entered for devices
      which don't have HID_DG_CONTACTCOUNT on _any_ report, we add the additional
      constraint that 'cc_report' be non-zero (which is true only if the usage is
      present in some report).
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      df707938
    • J
      HID: wacom: Tie cached HID_DG_CONTACTCOUNT indices to report ID · 499522c8
      Jason Gerecke 提交于
      The cached indicies 'cc_index' and 'cc_value_index' introduced in 1b5d514a
      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: NJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      499522c8
    • J
      HID: wacom: Report full pressure range for Intuos, Cintiq 13HD Touch · 8d515fda
      Jason Gerecke 提交于
      The new Intuos tablets added in eda01dab and the Cintiq 13HD Touch added
      in b4bf2120 are capable of reporting 2048 levels of pressure. Although the
      kernel reports the correct range to userspace, an oversight has resulted
      in the driver ingoring the 11th pressure bit and only sending pressures
      of 0 through 1023.
      
      We could fix this issue by expanding the type check to include these
      devices, but it makes much more sense to just have the driver look at
      the device's maximum pressure when determining if it should read the
      11th bit.
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Reviewed-by: NPing Cheng <pingc@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      8d515fda
    • J
      HID: wacom: Add support for Cintiq Companion 2 · f7acb55c
      Jason Gerecke 提交于
      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: NJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: NClifford Jolly <expiredpopsicle@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f7acb55c
  14. 24 9月, 2015 2 次提交
  15. 29 8月, 2015 3 次提交
  16. 18 8月, 2015 1 次提交
  17. 11 8月, 2015 1 次提交
    • J
      HID: wacom: Simplify 'wacom_pl_irq' · 025bcc15
      Jason Gerecke 提交于
      Unlike other IRQ functions, 'wacom_pl_irq' uses the second element of
      the 'tool' array to store information about its single pen. This makes
      the function more difficult to understand (since it doesn't follow the
      general pattern of other IRQ functions) and prevents the possibility of
      refactoring how pen state is stored.
      
      This patch rewrites 'wacom_pl_irq' to follow the usual IRQ conventions,
      including storing tool type in 'tool[0]' and implicitly tracking prox
      with the 'id[0]' variable.
      Signed-off-by: NJason Gerecke <jason.gerecke@wacom.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      025bcc15
  18. 04 8月, 2015 2 次提交
  19. 23 7月, 2015 1 次提交