1. 19 5月, 2010 4 次提交
    • J
      V4L/DVB: IR/imon: convert to ir-core protocol change handling · 6718e8ad
      Jarod Wilson 提交于
      Drop the imon driver's internal protocol definitions in favor of using
      those provided by ir-core. Should make ir-keytable Just Work for
      switching protocol on the fly on the imon devices that support both the
      native imon remotes and mce remotes.
      
      The imon-no-pad-stabilize pseudo-protocol was dropped as a protocol, and
      converted to a separate modprobe option (which it probably should have
      been in the first place). On the TODO list is to convert this to an as yet
      unwritten protocol-specific options framework.
      
      While the mce remotes obviously map to IR_TYPE_RC6, I've yet to look at
      what the actual ir signals from the native imon remotes are, so for the
      moment, imon native ir is mapped to IR_TYPE_OTHER. Nailing it down more
      accurately is also on the TODO list.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6718e8ad
    • J
      V4L/DVB: ir-core: add imon pad and mce keymaps · 1159f838
      Jarod Wilson 提交于
      This adds the keymaps for the hardware decode scancodes imon
      devices create for their native imon pad (and mini) remotes,
      and the hardware scancodes generated by the imon devices when
      used with an rc6 windows media center ed. remote.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      1159f838
    • M
      V4L/DVB: ir-core: Add support for badly-implemented hardware decoders · 9dfe4e83
      Mauro Carvalho Chehab 提交于
      A few hardware Remote Controller decoders, even using a standard protocol,
      aren't able to provide the entire scancode. Due to that, the capability
      of using other IR's are limited on those hardware.
      
      Adds a way to indicate to ir-core what are the bits that the hardware
      provides, from a scancode, allowing the addition of a complete IR table
      to the kernel and allowing a limited support for changing the Remote
      Controller on those devices.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9dfe4e83
    • M
      V4L/DVB: Break Remote Controller keymaps into modules · 6686fa69
      Mauro Carvalho Chehab 提交于
      The original Remote Controller approach were very messy: a big file,
      that were part of ir-common kernel module, containing 64 different
      RC keymap tables, used by the V4L/DVB drivers.
      
      Better to break each RC keymap table into a separate module,
      registering them into rc core on a process similar to the fs/nls tables.
      
      As an userspace program is now in charge of loading those tables,
      adds an option to allow the complete removal of those tables from
      kernelspace.
      
      Yet, on embedded devices like Set Top Boxes and TV sets, maybe the
      only available input device is the IR. So, we should keep allowing
      the usage of in-kernel tables, but a latter patch should change
      the default to 'n', after giving some time for distros to add
      the v4l-utils with the ir-keytable program, to allow the table
      load via userspace.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6686fa69