All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] rc: scancode filtering improvements
@ 2014-02-28 23:17 James Hogan
  2014-02-28 23:17 ` [PATCH 1/5] rc-main: add generic scancode filtering James Hogan
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: James Hogan @ 2014-02-28 23:17 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, linux-media
  Cc: James Hogan, Bruno Prémont, Maxim Levitsky, Sean Young,
	David Härdeman, Jiri Kosina, Antti Seppälä

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 <m.chehab@samsung.com>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Sean Young <sean@mess.org>
Cc: "David Härdeman" <david@hardeman.nu>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: "Antti Seppälä" <a.seppala@gmail.com>

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(-)

-- 
1.8.3.2


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

end of thread, other threads:[~2014-03-26 15:54 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 23:17 [PATCH 0/5] rc: scancode filtering improvements James Hogan
2014-02-28 23:17 ` [PATCH 1/5] rc-main: add generic scancode filtering James Hogan
2014-03-24 23:51   ` David Härdeman
2014-03-25  9:12     ` James Hogan
2014-03-25 23:21       ` David Härdeman
2014-03-26  7:08         ` Antti Seppälä
2014-03-26 13:44           ` David Härdeman
2014-03-26 15:54             ` James Hogan
2014-02-28 23:17 ` [PATCH 2/5] rc: abstract access to allowed/enabled protocols James Hogan
2014-02-28 23:17 ` [PATCH 3/5] rc: add allowed/enabled wakeup protocol masks James Hogan
2014-02-28 23:17 ` [PATCH 4/5] rc: add wakeup_protocols sysfs file James Hogan
2014-02-28 23:17 ` [PATCH 5/5] rc-main: automatically refresh filter on protocol change James Hogan
2014-03-05 18:12 ` [PATCH 0/5] rc: scancode filtering improvements Antti Seppälä
2014-03-05 23:17   ` James Hogan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.