Skip to content

rc: scancode filtering improvements

James Hogan linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rc-main: add generic scancode filteringdrivers/media/rc/rc-main.c+13 -76 replies
2/5rc: abstract access to allowed/enabled protocolsdrivers/hid/hid-picolcd_cir.c drivers/media/common/siano/smsir.c drivers/media/i2c/ir-kbd-i2c.c +33 more+73 -500 replies
3/5rc: add allowed/enabled wakeup protocol masksdrivers/media/rc/rc-main.c include/media/rc-core.h+29 -130 replies
4/5rc: add wakeup_protocols sysfs fileDocumentation/ABI/testing/sysfs-class-rc Documentation/DocBook/media/v4l/remote_controllers.xml drivers/media/rc/rc-main.c +1 more+90 -380 replies
5/5rc-main: automatically refresh filter on protocol changedrivers/media/rc/rc-main.c+39 -20 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAntti Seppälä
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] rc: scancode filtering improvements

These patches make some improvements relating to the recently added RC scancode filtering interface:
- Patch 1 adds generic scancode filtering. This allows filtering to also work for raw rc drivers and scancode drivers without filtering capabilities.
- Patches 2-4 future proof the sysfs API to allow a different wakeup filter protocol to be set than the current protocol. A new wakeup_protocols sysfs file is added which behaves similarly to the protocols sysfs file but applies only to wakeup filters.
- Finally patch 5 improves the driver interface so that changing either the normal or wakeup protocol automatically causes the corresponding filter to be refreshed to the driver, or failing that cleared. It also ensures that the filter is turned off (and for wakeup that means wakeup is disabled) if the protocol is set to none. This avoids the driver having to maintain the filters, or even need a change_wakeup_protocol() callback if there is only one wakeup protocol allowed at a time.

The patch "rc-main: store_filter: pass errors to userland" should probably be applied first.

An updated img-ir v4 patchset which depends on this one will follow soon.

Cc Mauro Carvalho Chehab <[email protected]>
Cc "Bruno Prémont" <[email protected]>
Cc Maxim Levitsky <[email protected]>
Cc Sean Young <[email protected]>
Cc "David Härdeman" <[email protected]>
Cc Jiri Kosina <[email protected]>
Cc "Antti Seppälä" <[email protected]>

James Hogan (5):
rc-main: add generic scancode filtering
rc: abstract access to allowed/enabled protocols
rc: add allowed/enabled wakeup protocol masks
rc: add wakeup_protocols sysfs file
rc-main: automatically refresh filter on protocol change

 Documentation/ABI/testing/sysfs-class-rc           |  23 +++-
 .../DocBook/media/v4l/remote_controllers.xml       |  20 ++-
 drivers/hid/hid-picolcd_cir.c                      |   2 +-
 drivers/media/common/siano/smsir.c                 |   2 +-
 drivers/media/i2c/ir-kbd-i2c.c                     |   4 +-
 drivers/media/pci/cx23885/cx23885-input.c          |   2 +-
 drivers/media/pci/cx88/cx88-input.c                |   2 +-
 drivers/media/rc/ati_remote.c                      |   2 +-
 drivers/media/rc/ene_ir.c                          |   2 +-
 drivers/media/rc/fintek-cir.c                      |   2 +-
 drivers/media/rc/gpio-ir-recv.c                    |   4 +-
 drivers/media/rc/iguanair.c                        |   2 +-
 drivers/media/rc/imon.c                            |   7 +-
 drivers/media/rc/ir-jvc-decoder.c                  |   2 +-
 drivers/media/rc/ir-lirc-codec.c                   |   2 +-
 drivers/media/rc/ir-mce_kbd-decoder.c              |   2 +-
 drivers/media/rc/ir-nec-decoder.c                  |   2 +-
 drivers/media/rc/ir-raw.c                          |   2 +-
 drivers/media/rc/ir-rc5-decoder.c                  |   6 +-
 drivers/media/rc/ir-rc5-sz-decoder.c               |   2 +-
 drivers/media/rc/ir-rc6-decoder.c                  |   6 +-
 drivers/media/rc/ir-sanyo-decoder.c                |   2 +-
 drivers/media/rc/ir-sharp-decoder.c                |   2 +-
 drivers/media/rc/ir-sony-decoder.c                 |  10 +-
 drivers/media/rc/ite-cir.c                         |   2 +-
 drivers/media/rc/mceusb.c                          |   2 +-
 drivers/media/rc/nuvoton-cir.c                     |   2 +-
 drivers/media/rc/rc-loopback.c                     |   2 +-
 drivers/media/rc/rc-main.c                         | 141 +++++++++++++++------
 drivers/media/rc/redrat3.c                         |   2 +-
 drivers/media/rc/st_rc.c                           |   2 +-
 drivers/media/rc/streamzap.c                       |   2 +-
 drivers/media/rc/ttusbir.c                         |   2 +-
 drivers/media/rc/winbond-cir.c                     |   2 +-
 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c        |   2 +-
 drivers/media/usb/dvb-usb/dvb-usb-remote.c         |   2 +-
 drivers/media/usb/em28xx/em28xx-input.c            |   8 +-
 drivers/media/usb/tm6000/tm6000-input.c            |   2 +-
 include/media/rc-core.h                            |  49 ++++++-
 39 files changed, 234 insertions(+), 100 deletions(-)
Signature · 1 line
1.8.3.2