1. 18 5月, 2010 2 次提交
    • M
      V4L/DVB: saa7134: don't wait too much to generate an IR event on raw_decode · 9f154782
      Mauro Carvalho Chehab 提交于
      At raw_decode mode, the key is processed after the end of a timer. The
      previous code resets the timer every time something is received at the IR
      port. While this works fine with IR's that don't implement repeat, like
      Avermedia RM-JX IR, it keeps waiting until keydown, on IR's that implement
      NEC repeat command, like the Terratec yellow.
      
      The solution is to change the behaviour to do the timeout after the first
      received data.
      
      The timeout is currently set to 15 ms, as it works fine with NEC protcocol.
      It may need some adjustments to support other protocols and to better handle
      spurious detections that may happen with some IR sensors.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9f154782
    • M
      V4L/DVB: ir-core: Add logic to decode IR protocols at the IR core · a3572c34
      Mauro Carvalho Chehab 提交于
      Adds a method to pass IR raw pulse/code events into ir-core. This is
      needed in order to support LIRC. It also helps to move common code
      from the drivers into the core.
      
      In order to allow testing, it implements a simple NEC protocol decoder
      at ir-nec-decoder.c file. The logic is about the same used at saa7134
      driver that handles Avermedia M135A and Encore FM53 boards.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a3572c34