1. 04 4月, 2012 1 次提交
    • S
      HID: usbhid: Check HID report descriptor contents after device reset · dc3c78e4
      Simon Haggett 提交于
      When a USB device reset occurs, usbcore will refetch the device and configuration
      descriptors and compare them with those retrieved before the reset to ensure
      that they have not changed. For USB HID devices, this implicitly includes the
      HID class descriptor (as this is fetched with the configuration descriptor).
      However, the HID report descriptor is not checked again.
      
      Whilst a change in the size of the HID report descriptor will be detected (as
      this is held in the class descriptor), content changes to the report descriptor
      which do not result in a change in its size will be missed. If a firmware update
      were applied to a USB HID device which resulted in such a change to the report
      descriptor after device reset, then this would not be picked up by usbhid.
      
      This patch fixes this issue by allowing usbhid to check the contents of the
      report descriptor after the device reset, and trigger a rebind of the device
      if there is a mismatch.
      Reviewed-by: NToby Gray <toby.gray@realvnc.com>
      Signed-off-by: NSimon Haggett <simon.haggett@realvnc.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      dc3c78e4
  2. 30 3月, 2012 2 次提交
  3. 20 3月, 2012 1 次提交
    • A
      HID: multitouch: add PID for Fructel product · 4d5df5d1
      Andreas Nielsen 提交于
      Adds multitouch support for the Gametel Android game controller.
      
      The multitouch events are emulated by the Gametel device. Each physical button
      is configured to generate a MT event on a specific coordinate. This seems to be
      the only way for us to support Android games that doesn't support HID gamepads.
      It is possible to inject MT events at Android level, but this requires root on
      the phone.
      Signed-off-by: NAndreas Nielsen <eas@svep.se>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4d5df5d1
  4. 16 3月, 2012 2 次提交
  5. 13 3月, 2012 1 次提交
  6. 12 3月, 2012 4 次提交
  7. 09 3月, 2012 2 次提交
  8. 06 3月, 2012 7 次提交
  9. 05 3月, 2012 1 次提交
    • N
      HID: hid-input: allow array fields out of range · 883e0e36
      Nikolai Kondrashov 提交于
      Allow array field values out of range as per HID 1.11 specification,
      section 6.2.25:
      
      	Rather than returning a single bit for each button in the group, an
      	array returns an index in each field that corresponds to the pressed
      	button (like keyboard scan codes). An out-of range value in and array
      	field is considered no controls asserted.
      
      Apparently, "and" above is a typo and should be "an".
      
      This fixes at least Waltop tablet pen clicks - otherwise BTN_TOUCH is never
      released.
      
      The relevant part of Waltop tablet report descriptors is this:
      
      	0x09, 0x42,         /*          Usage (Tip Switch),         */
      	0x09, 0x44,         /*          Usage (Barrel Switch),      */
      	0x09, 0x46,         /*          Usage (Tablet Pick),        */
      	0x15, 0x01,         /*          Logical Minimum (1),        */
      	0x25, 0x03,         /*          Logical Maximum (3),        */
      	0x75, 0x04,         /*          Report Size (4),            */
      	0x95, 0x01,         /*          Report Count (1),           */
      	0x80,               /*          Input,                      */
      
      This is a regression fix for commit b4b583d4 ("HID: be more strict when
      ignoring out-of-range fields").
      Signed-off-by: NNikolai Kondrashov <spbnick@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      883e0e36
  10. 01 3月, 2012 2 次提交
  11. 28 2月, 2012 2 次提交
  12. 27 2月, 2012 2 次提交
  13. 23 2月, 2012 1 次提交
  14. 22 2月, 2012 1 次提交
  15. 21 2月, 2012 7 次提交
  16. 07 2月, 2012 4 次提交
    • N
      HID: waltop: Add support for Waltop Q Pad · 4fdc18d1
      Nikolai Kondrashov 提交于
      Add support for Waltop Q Pad by fixing its report descriptor.
      
      This tablet is also sold as Aiptek HyperPen Mini. Other possible names
      include: NGS Flexi Style, VisTablet PenPad, iVistaTablet Q Flex Pad, Bravod
      Q-PD65-S.
      Signed-off-by: NNikolai Kondrashov <spbnick@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4fdc18d1
    • J
      HID: wiimote: fix invalid power_supply_powers call · 217c8b2b
      Jiri Kosina 提交于
      Analogically to d7cb3dbd ("HID: wacom: Fix invalid power_supply_powers
      calls"), fix also the same occurence in wiimote driver.
      
      Reported-by: przemo@firszt.eu
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      217c8b2b
    • J
      HID: tivo: fix broken build · 2701eaab
      Jiri Kosina 提交于
      Fix mismatch between Kconfig name and Makefile expectation.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      2701eaab
    • J
      HID: add support for tivo slide remote · 44ea35c1
      Jarod Wilson 提交于
      This patch finishes off adding full support for the TiVo Slide remote,
      which is a mostly pure HID device from the perspective of the kernel.
      There are a few mappings that use a vendor-specific usage page, and a
      few keys in the consumer usage page that I think make sense to remap
      slightly, to better fit their key labels' intended use. Doing this in a
      stand-alone hid-tivo.c makes the modifications only matter for this
      specific device.
      
      What's actually connected to the computer is a Broadcom-made usb dongle,
      which has an embedded hub, bluetooth adapter, mouse and keyboard
      devices. You pair with the dongle, then the remote sends data that its
      converted into HID on the keyboard interface (the mouse interface
      doesn't do anything interesting, so far as I can tell).
      
      lsusb for this device:
      Bus 004 Device 005: ID 0a5c:2190 Broadcom Corp.
      Bus 004 Device 004: ID 0a5c:4503 Broadcom Corp.
      Bus 004 Device 003: ID 150a:1201
      Bus 004 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
      
      Speaking of the keyboard interface, the remote actually does contain a
      keyboard as well. The top slides away, revealing a reasonably functional
      qwerty keyboard (not unlike many slide cell phones), thus the product
      name.
      
      CC: Jiri Kosina <jkosina@suse.cz>
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      44ea35c1