Skip to content

ir-core sysfs protocol selection simplification

David Härdeman linux-input linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ir-core: remove IR_TYPE_PDdrivers/media/IR/ir-sysfs.c drivers/media/video/cx88/cx88-input.c include/media/ir-kbd-i2c.h +1 more+9 -160 replies
2/4ir-core: centralize sysfs raw decoder enabling/disablingdrivers/media/IR/ir-core-priv.h drivers/media/IR/ir-jvc-decoder.c drivers/media/IR/ir-nec-decoder.c +5 more+231 -4562 replies
3/4ir-core: move decoding state to ir_raw_event_ctrldrivers/media/IR/ir-core-priv.h drivers/media/IR/ir-jvc-decoder.c drivers/media/IR/ir-nec-decoder.c +4 more+87 -46518 replies
4/4ir-core: remove ir-functions usage from cx231xxdrivers/media/video/cx231xx/cx231xx-input.c drivers/media/video/cx231xx/cx231xx.h+10 -390 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] ir-core sysfs protocol selection simplification

The following series changes the sysfs implementation in ir-core to make the protocol selection work in the same manner for hardware decoders and software decoders (the distinction between the two should be hidden from the user as much as possible IMHO).

This also allows for a nice reduction of duplicated code between the raw ir protocol decoders.

The first patch is merely preparatory and should hopefully not be controversial.

The second and third patch should be considered RFC's on the implementation of the sysfs interface.

The last patch is orthogonal to the rest of the patchset and should hopefully not be controversial (though it would be nice if someone with the actual hardware could test it).

---

David Härdeman (4):
ir-core: remove IR_TYPE_PD
ir-core: centralize sysfs raw decoder enabling/disabling
ir-core: move decoding state to ir_raw_event_ctrl
ir-core: remove ir-functions usage from cx231xx

 drivers/media/IR/ir-core-priv.h             |   40 ++++
 drivers/media/IR/ir-jvc-decoder.c           |  152 +---------------
 drivers/media/IR/ir-nec-decoder.c           |  151 +---------------
 drivers/media/IR/ir-raw-event.c             |  136 ++++++--------
 drivers/media/IR/ir-rc5-decoder.c           |  165 ++---------------
 drivers/media/IR/ir-rc6-decoder.c           |  154 +---------------
 drivers/media/IR/ir-sony-decoder.c          |  155 +---------------
 drivers/media/IR/ir-sysfs.c                 |  262 +++++++++++++++------------
 drivers/media/video/cx231xx/cx231xx-input.c |   47 +----
 drivers/media/video/cx231xx/cx231xx.h       |    2 
 drivers/media/video/cx88/cx88-input.c       |    8 -
 include/media/ir-kbd-i2c.h                  |    2 
 include/media/rc-map.h                      |    9 -
 13 files changed, 322 insertions(+), 961 deletions(-)
Signature · 5 lines
David Härdeman
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html