1. 19 5月, 2010 5 次提交
    • J
      V4L/DVB: IR/imon: add proper auto-repeat support · db190fc1
      Jarod Wilson 提交于
      Simplified from version 1, in that hacks heisted from ati_remote2.c
      aren't actually necessary, the real fix for too many repeats was
      from setting too long a timer release value (200ms) on repeats in
      mce mode -- this patch drops the release timeout to 33ms, matching
      the input subsystem default input_dev->rep[REP_PERIOD].
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      db190fc1
    • J
      V4L/DVB: IR/imon: minor change_protocol fixups · 666a9ed8
      Jarod Wilson 提交于
      This is a follow-up to my prior patch implementing ir-core's
      change_protocol functionality in the imon driver, which eliminates
      a false warning when change_protocol is called without a specific
      protocol selected yet (i.e., still IR_TYPE_UNKNOWN). It also removes
      some extraneous blank lines getting spewn into dmesg.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      666a9ed8
    • 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
    • M
      V4L/DVB: irmon: Cleanup some warning noise · 1f71baef
      Mauro Carvalho Chehab 提交于
      Driver is not properly initializing u64 constants on 32 bit systems:
      drivers/media/IR/imon.c:301: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:302: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:304: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:305: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:308: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:309: warning: integer constant is too large for ‘long’ type
      drivers/media/IR/imon.c:310: warning: integer constant is too large for ‘long’ type
      
      Fix also a few troubles at error printk handling:
      drivers/media/IR/imon.c: In function ‘imon_init_intf0’:
      drivers/media/IR/imon.c:1909: warning: ‘ret’ may be used uninitialized in this function
      drivers/media/IR/imon.c: In function ‘imon_init_intf1’:
      drivers/media/IR/imon.c:1989: warning: ‘ret’ may be used uninitialized in this function
      
      Cc: Jarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      1f71baef
    • J
      V4L/DVB: ir-core: add imon driver · 21677cfc
      Jarod Wilson 提交于
      This is a new driver for the SoundGraph iMON and Antec Veris IR/display
      devices commonly found in many home theater pc cases and as after-market
      case additions.
      
      [mchehab@redhat.com: add KERN_CONT on line 2098 to shutup checkpatc.pl]
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      21677cfc