[RFC 0/7] Add support for IR transmitters

From: Andi Shyti
Date: Tue Jul 19 2016 - 11:57:17 EST


this is an RFCset that follows this patch:


and after Sean's review and recommendations:


The main goal is to add support in the rc framework for IR
transmitters, which currently is only supported by lirc but that
is not the preferred way.

with this RFCset I'm trying to gather some opinions as I'm not
really aware of other use cases other than the simple ir
transmitter in the last patch. As it is, the code to me looks
quite forced in order to achieve "my" goal by abusing on the
driver type check.

The last rfc-patch adds support for an IR transmitter driven by
the MOSI line of an SPI controller, it's the case of the Samsung
TM2(e) board which support is going to come soon.

Please let me know if there is anything to improve.


Andi Shyti (7):
[media] rc-main: assign driver type during allocation
[media] rc-main: split setup and unregister functions
[media] rc-core: add support for IR raw transmitters
[media] rc-ir-raw: do not generate any receiving thread for raw
[media] ir-lirc-codec: do not handle any buffer for raw transmitters
Documentation: bindings: add documentation for ir-spi device driver
[media] rc: add support for IR LEDs driven through SPI

Documentation/devicetree/bindings/media/spi-ir.txt | 20 +++
drivers/media/rc/Kconfig | 9 ++
drivers/media/rc/Makefile | 1 +
drivers/media/rc/ir-lirc-codec.c | 30 ++--
drivers/media/rc/ir-spi.c | 133 +++++++++++++++
drivers/media/rc/rc-ir-raw.c | 17 +-
drivers/media/rc/rc-main.c | 179 ++++++++++++---------
include/media/rc-core.h | 3 +-
8 files changed, 299 insertions(+), 93 deletions(-)
create mode 100644 Documentation/devicetree/bindings/media/spi-ir.txt
create mode 100644 drivers/media/rc/ir-spi.c