Skip to content

RFC rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir

Antti Seppälä linux-media 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 0 repliesNew
  2. v1 RFC3 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- (Hopefully) fixed all buffer indexing issues
- Write samples to fifo even if if encoded result won't completely fit
- Check filter mask in encoder
- Append some trailing ir silence to the encoded result
- Some cleanups and readability improvements

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rc-core: Add Manchester encoder (phase encoder) support to rc-coredrivers/media/rc/ir-raw.c drivers/media/rc/rc-core-priv.h+72 -00 replies
2/3ir-rc5-sz: Add ir encoding supportdrivers/media/rc/ir-rc5-sz-decoder.c+39 -00 replies
3/3nuvoton-cir: Add support for writing wakeup samples via sysfs filter callbackdrivers/media/rc/nuvoton-cir.c drivers/media/rc/nuvoton-cir.h include/media/rc-core.h+121 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFCv2 PATCH 0/3] rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir

This patchset is an improved version of an earlier attempt to add RC5-SZ encoder to ir-core. The set is based on a series posted by James Hogan (rc: ir-raw: Add encode, implement NEC encode).

This set extends the series by adding a generic RC-5 encoder and adds support for it to RC-5-SZ protocol.

In addition nuvoton-cir driver is modified to read wakeup filters from sysfs and utilize encoding to convert the scancodes to format understood by the underlying hardware.

Changes in v2:
- (Hopefully) fixed all buffer indexing issues
- Write samples to fifo even if if encoded result won't completely fit
- Check filter mask in encoder
- Append some trailing ir silence to the encoded result
- Some cleanups and readability improvements

Antti Seppälä (3):
rc-core: Add Manchester encoder (phase encoder) support to rc-core
ir-rc5-sz: Add ir encoding support
nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback

 drivers/media/rc/ir-raw.c            |  56 +++++++++++++++++
 drivers/media/rc/ir-rc5-sz-decoder.c |  39 ++++++++++++
 drivers/media/rc/nuvoton-cir.c       | 119 +++++++++++++++++++++++++++++++++++
 drivers/media/rc/nuvoton-cir.h       |   1 +
 drivers/media/rc/rc-core-priv.h      |  16 +++++
 include/media/rc-core.h              |   1 +
 6 files changed, 232 insertions(+)
Signature · 1 line
1.8.3.2