1. 10 Sep, 2010 2 commits
    • Dmitry Torokhov's avatar
      Input: sparse-keymap - switch to using new keycode interface · 67127f30
      Dmitry Torokhov authored
      Switch sparse keymap library to use new style of getkeycode and
      setkeycode methods to allow retrieving and setting keycodes not
      only by their scancodes but also by index.
      Acked-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      67127f30
    • Mauro Carvalho Chehab's avatar
      Input: add support for large scancodes · 8613e4c2
      Mauro Carvalho Chehab authored
      Several devices use a high number of bits for scancodes. One important
      group is the Remote Controllers. Some new protocols like RC-6 define a
      scancode space of 64 bits.
      
      The current EVIO[CS]GKEYCODE ioctls allow replace the scancode/keycode
      translation tables, but it is limited to up to 32 bits for scancode.
      
      Also, if userspace wants to clean the existing table, replacing it by
      a new one, it needs to run a loop calling the ioctls over the entire
      sparse scancode space.
      
      To solve those problems, this patch extends the ioctls to allow drivers
      handle scancodes up to 32 bytes long (the length could be extended in
      the future should such need arise) and allow userspace to query and set
      scancode to keycode mappings not only by scancode but also by index.
      
      Compatibility code were also added to handle the old format of
      EVIO[CS]GKEYCODE ioctls.
      
      Folded fixes by:
      - Dan Carpenter: locking fixes for the original implementation
      - Jarod Wilson: fix crash when setting keycode and wiring up get/set
                      handlers in original implementation.
      - Dmitry Torokhov: rework to consolidate old and new scancode handling,
                         provide options to act either by index or scancode.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      8613e4c2
  2. 06 Sep, 2010 1 commit
  3. 05 Sep, 2010 11 commits
  4. 03 Sep, 2010 5 commits
  5. 02 Sep, 2010 7 commits
  6. 01 Sep, 2010 1 commit
  7. 29 Aug, 2010 7 commits
  8. 25 Aug, 2010 2 commits
  9. 21 Aug, 2010 4 commits