public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode
@ 2014-02-06 19:59 James Hogan
  2014-02-06 19:59 ` [RFC 1/4] rc: ir-raw: add scancode encoder callback James Hogan
                   ` (4 more replies)
  0 siblings, 5 replies; 25+ messages in thread
From: James Hogan @ 2014-02-06 19:59 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Antti Seppälä; +Cc: linux-media, James Hogan

A recent discussion about proposed interfaces for setting up the
hardware wakeup filter lead to the conclusion that it could help to have
the generic capability to encode and modulate scancodes into raw IR
events so that drivers for hardware with a low level wake filter (on the
level of pulse/space durations) can still easily implement the higher
level scancode interface that is proposed.

This patchset is just a quick experiment to suggest how it might work.
I'm not familiar with the hardware that could use it so it could well be
a bit misdesigned in places (e.g. what sort of buffer length would the
hardware have, do we need to support any kind of partial encoding, can
the hardware/driver easily take care of allowing for a margin of
error?).


The first patch adds an encode callback to the existing raw ir handler
struct and a helper function to encode a scancode for a given protocol.

The third patch implements encode for NEC. The modulation is abstracted
to use functions in patch 2 (pulse-distance is used by multiple
protocols).

Finally for debug purposes patch 4 modifies img-ir-raw to loop back the
encoded data when a filter is altered. Should be pretty easy to apply
similarly to any raw ir driver to try it out.

James Hogan (4):
  rc: ir-raw: add scancode encoder callback
  rc: ir-raw: add modulation helpers
  rc: ir-nec-decoder: add encode capability
  DEBUG: rc: img-ir: raw: Add loopback on s_filter

 drivers/media/rc/img-ir/img-ir-raw.c | 30 ++++++++++++
 drivers/media/rc/ir-nec-decoder.c    | 91 ++++++++++++++++++++++++++++++++++++
 drivers/media/rc/ir-raw.c            | 70 +++++++++++++++++++++++++++
 drivers/media/rc/rc-core-priv.h      | 46 ++++++++++++++++++
 include/media/rc-core.h              |  3 ++
 5 files changed, 240 insertions(+)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-02-27 22:43 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 19:59 [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode James Hogan
2014-02-06 19:59 ` [RFC 1/4] rc: ir-raw: add scancode encoder callback James Hogan
2014-02-06 19:59 ` [RFC 2/4] rc: ir-raw: add modulation helpers James Hogan
2014-02-06 19:59 ` [RFC 3/4] rc: ir-nec-decoder: add encode capability James Hogan
2014-02-06 19:59 ` [RFC 4/4] DEBUG: rc: img-ir: raw: Add loopback on s_filter James Hogan
2014-02-08 11:30 ` [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode Antti Seppälä
2014-02-08 12:07   ` [RFC PATCH 0/3] rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir Antti Seppälä
2014-02-08 12:07     ` [RFC PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core Antti Seppälä
2014-02-10 10:25       ` James Hogan
2014-02-10 19:56         ` Antti Seppälä
2014-02-08 12:07     ` [RFC PATCH 2/3] ir-rc5-sz: Add ir encoding support Antti Seppälä
2014-02-10 10:30       ` James Hogan
2014-02-10 20:09         ` Antti Seppälä
2014-02-10 20:50           ` James Hogan
2014-02-11 18:14             ` Antti Seppälä
2014-02-11 23:39               ` James Hogan
2014-02-16 17:04                 ` Antti Seppälä
2014-02-27 22:43                   ` James Hogan
2014-02-16 16:45               ` [RFCv2 PATCH 0/3] rc: add RC5-SZ encoder and utilize encoders in nuvoton-cir Antti Seppälä
2014-02-16 16:45                 ` [RFCv2 PATCH 1/3] rc-core: Add Manchester encoder (phase encoder) support to rc-core Antti Seppälä
2014-02-16 16:45                 ` [RFCv2 PATCH 2/3] ir-rc5-sz: Add ir encoding support Antti Seppälä
2014-02-16 16:45                 ` [RFCv2 PATCH 3/3] nuvoton-cir: Add support for writing wakeup samples via sysfs filter callback Antti Seppälä
2014-02-08 12:07     ` [RFC " Antti Seppälä
2014-02-10  9:58   ` [RFC 0/4] rc: ir-raw: Add encode, implement NEC encode James Hogan
2014-02-10 19:45     ` Antti Seppälä

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox