1. 29 12月, 2010 4 次提交
  2. 21 12月, 2010 1 次提交
  3. 21 10月, 2010 4 次提交
    • M
      [media] IR: extend ir_raw_event and do refactoring · 4651918a
      Maxim Levitsky 提交于
      Add new event types for timeout & carrier report
      Move timeout handling from ir_raw_event_store_with_filter to
      ir-lirc-codec, where it is really needed.
      Now lirc bridge ensures proper gap handling.
      Extend lirc bridge for carrier & timeout reports
      
      Note: all new ir_raw_event variables now should be initialized
      like that: DEFINE_IR_RAW_EVENT(ev);
      
      To clean an existing event, use init_ir_raw_event(&ev);
      Signed-off-by: NMaxim Levitsky <maximlevitsky@gmail.com>
      Acked-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4651918a
    • J
      [media] IR/nuvoton: address all checkpatch.pl issues · 4e6e29ad
      Jarod Wilson 提交于
      The driver was missing KERN_ facilities on a number of printks. The
      register dump functions have been updated to use KERN_INFO, so that the
      register dump gets logged in syslog (they only run on driver load, and
      only when debug is enabled). The buffer dump routine now uses
      KERN_DEBUG, as that spew will happen quite frequently (several times
      every IR signal), and shouldn't need to be logged.
      
      Also split up the small handful of lines that were just over 80
      characaters, and fixed the ioctl.h include.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      4e6e29ad
    • J
      [media] nuvoton-cir: add proper rx fifo overrun handling · fbdc781c
      Jarod Wilson 提交于
      Per discussion with Andy Walls on irc, rx fifo overruns are not all that
      uncommon on a busy system, and the initial posting of the nuvoton-cir
      driver doesn't handle them well enough. With this addition, we'll drain
      the hw fifo, attempt to process any ir pulse trains completed with that
      flush, then we'll issue a hw rx fifo clear and reset the raw ir sample
      kfifo and start over collecting raw ir data.
      
      Also slightly refactors the cir interrupt enabling so that we always get
      consistent flags set and only have to modify them in one place, should
      they need to be altered.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      fbdc781c
    • J
      [media] IR: add driver for Nuvoton w836x7hg integrated CIR · 6d2f5c27
      Jarod Wilson 提交于
      This is a new ir-core pnp driver for the Nuvoton w836x7hg integrated CIR
      function. The chip is found on at least the ASRock ION 330HT boxes and
      apparently, on a number of Intel DP55-series motherboards:
      
      http://www.asrock.com/nettop/overview.asp?Model=ION%20330HT
      http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=17685&lang=eng
      
      This driver was made possible by a hardware donation from Nuvoton, along
      with sample code (in the form of an lirc driver) and datasheet, so huge
      thanks to them for supporting this effort. Note that this driver
      constitutes a massive rewrite, porting from the lirc interfaces to the
      ir-core interfaces, and restructuring the driver to look more like Maxim
      Levitsky's ene_ir driver (as well as generally making it look more like
      kernel code).
      
      There's some work left to be done on this driver, to fully support the
      range of functionality possible, but receive and IR power-on/wake are
      both functional (may require setting wake key under another OS atm). The
      hardware I've got (one of the ASRock boxes) only supports RX, so TX is
      completely untested as of yet. Certain RX parameters, like sample
      resolution and RX IRQ sample length trigger level could possibly stand
      to be made tweakable via modparams or sysfs nodes, but the current
      values work well enough for me w/an MCE RC6A remote.
      
      The original lirc driver carried support for the Windows MCE IR
      keyboard/mouse device, which I plan to add back generically, in a way
      that should be usable by any raw IR receiver (or at least by this driver
      and the mceusb driver).
      
      Suspend and resume have also been tested, the power button on my remote
      can be used to wake the machine, and CIR functionality resumes just
      fine. Module unload/reload has also been tested, though not extensively
      or repetitively. Also tested to work with the lirc bridge plugin for
      userspace decoding.
      Signed-off-by: NJarod Wilson <jarod@redhat.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      6d2f5c27