1. 13 4月, 2017 1 次提交
    • C
      HID: asus: support backlight on USB keyboards · af22a610
      Carlo Caione 提交于
      The latest USB keyboards shipped on several ASUS laptop models
      (including ROG laptop models such as GL702VMK) have the keyboards
      backlight controlled by the keyboard firmware.
      
      The firmware implements at least 3 different commands:
      - Init command (to use when the system starts)
      - Configuration command (to get keyboard status/information)
      - Backlight level control (to change the level of the keyboard light)
      
      With this patch we create the usual 'asus::kbd_backlight' led class
      entry to control the keyboard backlight.
      
      [jkosina@suse.cz: remove pointless cancel_work_sync() call while
       handling an error in asus_kbd_register_leds(), as spotted by
       Benjamin]
      Signed-off-by: NCarlo Caione <carlo@endlessm.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      af22a610
  2. 30 3月, 2017 2 次提交
  3. 21 3月, 2017 1 次提交
  4. 06 3月, 2017 1 次提交
    • D
      HID: chicony: Add support for another ASUS Zen AiO keyboard · f2f10b7e
      Daniel Drake 提交于
      Add support for media keys on the keyboard that comes with the
      Asus V221ID and ZN241IC All In One computers.
      
      The keys to support here are WLAN, BRIGHTNESSDOWN and BRIGHTNESSUP.
      
      This device is not visibly branded as Chicony, and the USB Vendor ID
      suggests that it is a JESS device. However this seems like the right place
      to put it: the usage codes are identical to the currently supported
      devices, and this driver already supports the ASUS AIO keyboard AK1D.
      Signed-off-by: NDaniel Drake <drake@endlessm.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f2f10b7e
  5. 12 1月, 2017 1 次提交
  6. 30 11月, 2016 1 次提交
  7. 29 11月, 2016 1 次提交
  8. 15 11月, 2016 1 次提交
  9. 04 11月, 2016 1 次提交
  10. 26 9月, 2016 1 次提交
  11. 17 8月, 2016 1 次提交
  12. 05 8月, 2016 1 次提交
  13. 07 7月, 2016 2 次提交
  14. 23 6月, 2016 2 次提交
  15. 18 6月, 2016 3 次提交
  16. 04 4月, 2016 1 次提交
  17. 01 4月, 2016 1 次提交
    • Y
      HID: Asus X205TA keyboard driver · eeb01a57
      Yusuke Fujimaki 提交于
      Asus X205TA built-in keyboard contains wrong
      logical maximum value in report descriptor.
      
      0x05, 0x01,  // Usage Page (Generic Desktop)
      0x09, 0x06,  // Usage (Keyboard)
      0xa1, 0x01,  // Collection (Application)
      0x85, 0x01,  // Report ID (1)
      0x05, 0x07,  // Usage Page (Keyboard/Keypad)
      0x19, 0xe0,  // Usage Minimum (224)
      0x29, 0xe7,  // Usage Maximum (231)
      0x15, 0x00,  // Logical Minimum (0)
      0x25, 0x01,  // Logical Maximum (1)
      0x75, 0x01,  // Report Size (1)
      0x95, 0x08,  // Report Count (8)
      0x81, 0x02,  // Input (Data,Array,Abs)
      0x95, 0x01,  // Report Count (1)
      0x75, 0x08,  // Report Size (8)
      0x81, 0x03,  // Input (Const,Var,Abs)
      0x95, 0x05,  // Report Count (5)
      0x75, 0x01,  // Report Size (1)
      0x05, 0x08,  // Usage (LED)
      0x19, 0x01,  // Usage Minimum (1)
      0x29, 0x05,  // Usage Maximum (5)
      0x91, 0x02,  // Output (Data,Var,Abs)
      0x95, 0x01,  // Report Count (1)
      0x75, 0x03,  // Report Size (3)
      0x91, 0x03,  // Output (Const,Var,Abs)
      0x95, 0x06,  // Report Count (6)
      0x75, 0x08,  // Report Size (8)
      0x15, 0x00,  // Logical Minimum (0)
      0x25, 0x65,  // Logical Maximum (101)  * too small *
      0x05, 0x07,  // Usage Page (Keyboard/Keypad)
      0x19, 0x00,  // Usage Minimum (0)
      0x29, 0xdd,  // Usage Maximum (221)
      0x81, 0x00,  // Input(Data,Array,Abs)
      
      In Asus X205TA japanese keyboard model,there are language
      specific keys over usage id 101.
      This patch correct wrong logical maximum in report
      descriptor.
      Signed-off-by: NYusuke Fujimaki <usk.fujimaki@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      eeb01a57
  18. 02 3月, 2016 1 次提交
  19. 26 10月, 2015 1 次提交
  20. 01 10月, 2015 1 次提交
  21. 04 9月, 2015 1 次提交
  22. 18 8月, 2015 1 次提交
  23. 24 7月, 2015 1 次提交
  24. 12 6月, 2015 1 次提交
  25. 11 4月, 2015 1 次提交
    • S
      HID: sensor: Custom and Generic sensor support · 4a7de051
      Srinivas Pandruvada 提交于
      HID Sensor Spec defines two usage ids for custom sensors
      
      	HID_USAGE_SENSOR_TYPE_OTHER_CUSTOM (0x09, 0xE1)
      	HID_USAGE_SENSOR_TYPE_OTHER_GENERIC(0x09, 0xE2)
      
      	In addition the standard also defines usage ids for custom fields.
      The purpose of these sensors is to extend the functionality or provide a way to
      obfuscate the data being communicated by a sensor. Without knowing the mapping
      between the data and its encapsulated form, it is difficult for an driver to
      determine what data is being communicated by the sensor.  This allows some
      differentiating use cases, where vendor can provide applications.  Since these
      can't be represented by standard sensor interfaces like IIO, we present these
      as fields with
      
      - type (input/output)
      - units
      - min/max
      - get/set value
      
      In addition an dev interface to transfer report events. Details about this
      interface is described in /Documentation/hid/hid-sensor.txt.  Manufacturers
      should not use these ids for any standard sensors, otherwise the the
      product/vendor id can be added to black list.
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Reviewed-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4a7de051
  26. 16 3月, 2015 2 次提交
    • S
      HID: plantronics: fix Kconfig default · f1088b38
      Stefan Richter 提交于
      This driver didn't exist until before v3.19.
      Why would suddenly everybody want to build it?
      Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f1088b38
    • J
      HID: Stop hiding options with !EXPERT · 7af05e73
      Jean Delvare 提交于
      Many HID driver options are hidden unless EXPERT is set. While I
      understand the idea of simplifying the kernel configuration for most
      users, in practice I believe it adds more confusion than it helps.
      
      One thing that worries me is that, in non-EXPERT mode, these drivers
      will be either built-in or modular based on apparent magic. For
      example, switching INPUT and HID from m to y will cause all these
      drivers to be built into the kernel when they were previously built
      as modules. Short of enabling EXPERT mode altogether, the user has no
      control over that.
      
      Generally I do not think tristate options should depend on !EXPERT.
      Of these, 11 of 15 are currently in the hid subsystem.
      
      The HID_LOGITECH option is even worse than the others. Sub-options
      depend on it, and this causes menuconfig and friends to display the
      option even though the user can't change its value. The help page for
      HID_LOGITECH will not explain why the value can't be changed. It only
      says, for example:
      
        Depends on: INPUT [=y] && HID [=y]
      
      and that leaves the user puzzled about why the option is forced to y.
      You might argue that this is a Kconfig bug, but that doesn't make it
      less annoying for the user.
      
      Even worse is that some of the sub-options of HID_LOGITECH select
      INPUT_FF_MEMLESS, which in turn gets out of control for the user. So,
      if you set INPUT=y and HID=y (something most general purpose
      distributions would do these days, as both modules would get loaded on
      a vast majority of systems otherwise), and you want support for
      force-feedback game controllers, you can't have that as a module, it
      has to be built-in, regardless of how rare these devices are.
      
      Of course, all this madness goes away once EXPERT is enabled, but then
      the rest of the kernel configuration becomes more complex, which
      totally voids the original point.
      
      For this reason, I would like all HID device tristate options to be
      displayed regardless of EXPERT being set or not. We can let the
      default settings still depend on EXPERT, that's not intrusive.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7af05e73
  27. 05 3月, 2015 1 次提交
  28. 04 3月, 2015 1 次提交
  29. 07 1月, 2015 1 次提交
  30. 22 12月, 2014 1 次提交
  31. 18 12月, 2014 1 次提交
  32. 05 11月, 2014 1 次提交
  33. 03 11月, 2014 1 次提交
  34. 29 10月, 2014 1 次提交