Skip to content

RFC rc: Add generic sysfs interface for handling wakeup codes

Antti Seppälä linux-media 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest5 patches 2 repliesIn review
  2. v1 RFC4 patches 17 repliesSuperseded

Changes in v2 from the cover letter

- Added wakeup_protocols file to control which protocol to use with
wakeup
- Renamed interface to wakeup_code
- Clean-up device attribute registration
- Ported winbond-cir to use this interface
- Brought interface closer to
https://patchwork.linuxtv.org/patch/21625/

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rc-core: Add defintions needed for sysfs callbackinclude/media/rc-core.h+17 -00 replies
2/5rc-core: Add support for reading/writing wakeup codes via sysfsdrivers/media/rc/rc-main.c+165 -140 replies
3/5rc-loopback: Add support for reading/writing wakeup scancodes via sysfsdrivers/media/rc/rc-loopback.c+40 -00 replies
4/5nuvoton-cir: Add support for reading/writing wakeup samples via sysfsdrivers/media/rc/nuvoton-cir.c drivers/media/rc/nuvoton-cir.h+120 -00 replies
5/5winbond-cir: Add support for reading/writing wakeup scancodes via sysfsdrivers/media/rc/winbond-cir.c+48 -182 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/5] rc: Add generic sysfs interface for handling wakeup codes

I'm resending the patch series as it seems that my initial attempt was not delivered to patchwork or linux-media list. Apologies for duplicate emails to people who may have received the first attempt.

Patches 1 & 2 in this series introduce a simple sysfs file interface for reading and writing wakeup scancodes or ir samples to rc drivers.

The interface is designed to be flexible yet easy enough to adapt to. It can support almost any kind of known wakeup scancode and sample formats.

Patches 3-5 in the series port some existing drivers to use this interface.

Changes in v2:
- Added wakeup_protocols file to control which protocol to use with
wakeup
- Renamed interface to wakeup_code
- Clean-up device attribute registration
- Ported winbond-cir to use this interface
- Brought interface closer to
https://patchwork.linuxtv.org/patch/21625/

Antti Seppälä (5):
rc-core: Add defintions needed for sysfs callback
rc-core: Add support for reading/writing wakeup codes via sysfs
rc-loopback: Add support for reading/writing wakeup scancodes via
sysfs
nuvoton-cir: Add support for reading/writing wakeup samples via sysfs
winbond-cir: Add support for reading/writing wakeup scancodes via
sysfs

 drivers/media/rc/nuvoton-cir.c | 118 +++++++++++++++++++++++++++
 drivers/media/rc/nuvoton-cir.h |   2 +
 drivers/media/rc/rc-loopback.c |  40 +++++++++
 drivers/media/rc/rc-main.c     | 179 +++++++++++++++++++++++++++++++++++++----
 drivers/media/rc/winbond-cir.c |  66 ++++++++++-----
 include/media/rc-core.h        |  17 ++++
 6 files changed, 390 insertions(+), 32 deletions(-)
Signature · 1 line
1.8.3.2