1. 09 3月, 2010 1 次提交
  2. 17 2月, 2010 1 次提交
  3. 09 2月, 2010 1 次提交
  4. 03 2月, 2010 1 次提交
  5. 04 1月, 2010 1 次提交
    • J
      HID: handle joysticks with large number of buttons · cf2f765f
      Jiri Kosina 提交于
      Current HID code doesn't properly handle HID joysticks which have
      larger number of buttons than what fits into current range reserved
      for BTN_JOYSTICK.
      
      One such joystick reported to not work properly is Saitek X52 Pro
      Flight System.
      
      We can't extend the range to fit more buttons in, because of backwards
      compatibility reasons.
      
      Therefore this patch introduces a new BTN_TRIGGER_HAPPY range, and
      uses these to map the buttons which are over BTN_JOYSTICK limit.
      
      Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> [for the input.h part]
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      cf2f765f
  6. 12 6月, 2009 1 次提交
    • J
      HID: use debugfs for report dumping descriptor · a635f9dd
      Jiri Kosina 提交于
      It is a little bit inconvenient for people who have some non-standard
      HID hardware (usually violating the HID specification) to have to
      recompile kernel with CONFIG_HID_DEBUG to be able to see kernel's perspective
      of the HID report descriptor and observe the parsed events. Plus the messages
      are then mixed up inconveniently with the rest of the dmesg stuff.
      
      This patch implements /sys/kernel/debug/hid/<device>/rdesc file, which
      represents the kernel's view of report descriptor (both the raw report
      descriptor data and parsed contents).
      
      With all the device-specific debug data being available through debugfs, there
      is no need for keeping CONFIG_HID_DEBUG, as the 'debug' parameter to the
      hid module will now only output only driver-specific debugging options, which has
      absolutely minimal memory footprint, just a few error messages and one global
      flag (hid_debug).
      
      We use the current set of output formatting functions. The ones that need to be
      used both for one-shot rdesc seq_file and also for continuous flow of data
      (individual reports, as being sent by the device) distinguish according to the
      passed seq_file parameter, and if it is NULL, it still output to kernel ringbuffer,
      otherwise the corresponding seq_file is used for output.
      
      The format of the output is preserved.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      a635f9dd
  7. 15 10月, 2008 10 次提交
  8. 23 7月, 2008 2 次提交
  9. 20 5月, 2008 2 次提交
    • A
      HID: remove CVS keywords · f8dea7a3
      Adrian Bunk 提交于
      This patch removes CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f8dea7a3
    • D
      HID: split Numlock emulation quirk from HID_QUIRK_APPLE_HAS_FN. · 6e704599
      Diego 'Flameeyes' Petteno 提交于
      Since 2.6.25 the HID_QUIRK_APPLE_HAS_FN quirk is enabled even for
      non-laptop Apple keyboards of the Aluminium series. The USB version of
      these don't need Numlock emulation, like the laptop (and Aluminium
      Wireless) do, as they have a proper keypad.
      
      This patch splits the Numlock emulation for Apple keyboards in a
      different quirk flag, so that it can be enabled for all the keyboards
      but the Aluminium USB ones.
      
      If the Numlock emulation is enabled for Aluminium USB keyboards, the
      JKL and UIO keys become the numeric pad, and the rest of the keyboard
      is disabled, included the key used to disable Numlock.
      
      Additionally, these keyboard should not have a Numlock at all, as the
      Numlock key is instead replaced by the 'Clear' key as usual for Apple
      USB keyboards.
      Signed-off-by: NDiego 'Flameeyes' Petteno <flameeyes@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      6e704599
  10. 18 3月, 2008 1 次提交
    • M
      HID: update key codes for Apple aluminium · 07146648
      Michael Hanselmann 提交于
      F5 and F6 have no second function printed on them. Thus their definitions have
      been removed from the table.
      
      KEY_CYCLEWINDOWS doesn't name the function of Mac OS X' Expose properly and
      because we couldn't find a better key code, we decided to use KEY_FN_F4
      instead.
      
      We also changed KEY_BACK and KEY_FORWARD, which apply to browser functions, to
      KEY_PREVIOUSSONG and KEY_NEXTSONG, since the keys are intended to control a
      music player.
      Signed-off-by: NMichael Hanselmann <linux-kernel@hansmi.ch>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      07146648
  11. 14 2月, 2008 1 次提交
  12. 11 2月, 2008 1 次提交
    • J
      HID: fix processing of event quirks · 68a1f2cc
      Jiri Kosina 提交于
      The old code (before move) stopped further processing of the
      event after it has been already processed by the quirk handler.
      
      The new code didn't propagate the return value properly, and
      therefore the processing always proceeded, which was wrong.
      
      This patch fixes it. Pointed out in kernel.org bugzilla #9842
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      68a1f2cc
  13. 28 1月, 2008 8 次提交
  14. 31 10月, 2007 2 次提交
  15. 15 10月, 2007 1 次提交
  16. 14 10月, 2007 6 次提交
    • K
      HID: add support for Microsoft Wireless Laser Keyboard 6000 · 3cc5f916
      Khelben Blackstaff 提交于
      This keyboard emits a few usages that are not handled properly by
      hid-input.
      
      Changed IS_MS_NEK4K macro to IS_MS_KB to reflect the addition
      of another keyboard.
      Signed-off-by: NKhelben Blackstaff <eye.of.the.8eholder@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3cc5f916
    • J
      HID: fix input mapping for Microsoft Ergonomic Keyboard · f14d5d20
      Jiri Kosina 提交于
      Special keys 1-5 on Microsoft Ergonomic Keyboard were mistakenly
      mapped to buttons, which doesn't make a lot of sense. Fix this
      mapping to KEY_F{13,18}.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f14d5d20
    • S
      HID: enable hiddev for the SantaRosa MacBookPro IR receiver · 0ce91cf9
      Stelian Pop 提交于
      The infrared remote receiver found in the SantaRosa MacBookPro
      laptops (MacBookPro3,1) need to be forced to expose a HIDDEV
      interface (instead of HIDINPUT) so that lirc can access it using
      the 'macmini' driver.
      
      The patch below adds the required quirk for forcing the HIDDEV
      interface to be activated (HID_QUIRK_HIDDEV) and introduces a new
      quirk which forces the HIDINPUT interface to be ignored
      (HID_QUIRK_IGNORE_HIDINPUT).
      
      Note that Apple calls this receiver 'IRController4' (info taken
      from Apple's driver Info.plist). Older Mac{Book,Mini,Pro}s seem
      to all use the 'IRController1' device (USB id 05ac:8240) which
      doesn't need those quirks.
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      0ce91cf9
    • J
      HID: Report usage codes of keys as EV_MSC scancode events · c01d50d1
      Jiri Kosina 提交于
      Current HID layer does not report usage codes to the input layer. This feature
      was previously removed, because it caused unnecessary storm of events in cases
      of positioning devices, etc.
      
      This patch adds reporting of usage codes as EV_MSC events only for key events.
      We issue the EV_MSC event only if the state of the key corresponding to the
      given code has changed, so that we don't report usages that are sent in every
      report even if the state hasn't changed (for example Shift/Caps Lock/...
      states as sent by various keyboards).
      
      This functionality is required at least by KeyTouch in order to provide
      convenient means for remapping the usage codes.
      
      Cc: Marvin Raaijmakers <marvin.nospam@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c01d50d1
    • J
      HID: ignore all non-LED usages in output fields in hid-input · 82eb1219
      Jiri Kosina 提交于
      We have to ignore all non-LED usages in output fields if the
      report descriptor of the device specifies any. If we don't do
      so, the devices which contain the same usages both in input and
      output reports with different parameters will mess things up. In
      hid-input, we currently care only for the input usages, with exception
      for LEDs. All other output usages should be properly handled by
      appropriate force-feedback driver.
      
      Fixes auto-calibration for Saitek Cyborg Evo Force joystick.
      Reported-by: NRenato Golin <rengolin@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      82eb1219
    • J
      HID: fix whitespace damage · 77b29662
      Jiri Kosina 提交于
      Fixes some trivial whitespace damage in hid-input.c
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      77b29662