1. 15 10月, 2007 36 次提交
  2. 14 10月, 2007 4 次提交
    • J
      HID: add hidraw interface · 86166b7b
      Jiri Kosina 提交于
      hidraw is an interface that is going to obsolete hiddev one
      day.
      
      Many userland applications are using libusb instead of using
      kernel-provided hiddev interface. This is caused by various
      reasons - the HID parser in kernel doesn't handle all the
      HID hardware on the planet properly, some devices might require
      its own specific quirks/drivers, etc.
      
      hiddev interface tries to do its best to parse all the received
      reports properly, and presents only parsed usages into userspace.
      This is however often not enough, and that's the reason why
      many userland applications just don't use hiddev at all, and
      rather use libusb to read raw USB events and process them on
      their own.
      
      Another drawback of hiddev is that it is USB-specific.
      
      hidraw interface provides userspace readers with really raw HID
      reports, no matter what the low-level transport layer is (USB/BT),
      and gives the userland applications all the freedom to process
      the HID reports in a way they wish to.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      86166b7b
    • K
      Input: add KEY_LOGOFF · e2bca074
      Khelben Blackstaff 提交于
      HUT 1.12 defines Logoff usage 0x19c in Consumer page. There are
      keyboards out there emitting this usage code (for example Microsoft
      Wireless Laser Keyboard 6000). Add this key so that HID code could
      map usages to it.
      Signed-off-by: NKhelben Blackstaff <eye.of.the.8eholder@gmail.com>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      e2bca074
    • T
      USBHID: report descriptor fix for MacBook JIS keyboard · 08f06177
      Tomoya Adachi 提交于
      This patch fixes the problem, that Japanese MacBook doesn't recognize some keys
      like '\'(yen, or backslash), '|'(pipe), and '_'(underscore).
      
      It is due to that MacBook JIS keyboard (jp106) sends wrong report descriptor.
      It saids "logical maximum = 0x65", so Keyboard.0089 is mapped to Key.Unknown,
      while it should be accepted as Key.Yen.
      Signed-off-by: NTomoya Adachi <adachi@il.is.s.u-tokyo.ac.jp>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      08f06177
    • 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