From: Sean Young <sean@mess.org>
To: "Mauro Carvalho Chehab" <mchehab@s-opensource.com>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Andy Walls" <awalls.cx18@gmail.com>,
"David Härdeman" <david@hardeman.nu>,
linux-media@vger.kernel.org
Subject: [PATCH 00/28] lirc scancode interface, and more
Date: Sun, 29 Oct 2017 20:58:18 +0000 [thread overview]
Message-ID: <cover.1509309834.git.sean@mess.org> (raw)
Port lirc_zilog to rc-core, introduce lirc scancode mode for
sending and receiving, and then remove the lirc kernel api.
Note that the ported zilog driver needs the scancode interface,
since without it the RC_DRIVER_SCANCODE type IR driver would not
have a lirc chardev.
In summary:
- This removes the lirc staging directory.
- lirc IR TX can use in-kernel encoders for scancode encoding
- lirc_zilog now can transmit raw IR (or scancodes using above interface)
- lirc kapi (not uapi!) is gone
- The reading lirc scancode interface gives more information (e.g. protocol,
toggle, repeat). So you can determine what protocol variant a remotes uses
- Line count is actually down and code cleaner (imo)
v2:
- Add MAINTAINERS entries
- Fixes for nec repeat
- Validate scancode for tx
- Minor bugfixes
v3:
- Review comments from Hans Verkuil
- Documented and fixed rc_validate_scancode()
- Fix a bug in kfifo on arm 32-bit
- this inferface won't be used for cec remote control passthrough
v4:
- Rewrote zilog driver to send raw IR rather than codes from database
- Minor ir-kbd-i2c improvements
Sean Young (28):
media: rc: i2c: set parent of rc device and improve name
media: rc: i2c: use dev_dbg rather hand-rolled debug
media: rc: i2c: only poll if the rc device is opened
media: merge ir_tx_z8f0811_haup and ir_rx_z8f0811_haup i2c devices
media: rc: implement zilog transmitter
media: i2c: enable i2c IR for hardware which isn't HD-PVR
media: staging: remove lirc_zilog driver
media: MAINTAINERS: remove lirc staging area
media: lirc: remove LIRCCODE and LIRC_GET_LENGTH
media: lirc: implement scancode sending
media: lirc: use the correct carrier for scancode transmit
media: rc: auto load encoder if necessary
media: lirc: lirc interface should not be a raw decoder
media: lirc: validate scancode for transmit
media: rc: document and fix rc_validate_scancode()
media: lirc: merge lirc_dev_fop_ioctl and ir_lirc_ioctl
media: lirc: use kfifo rather than lirc_buffer for raw IR
media: lirc: move lirc_dev->attached to rc_dev->registered
media: lirc: do not call rc_close() on unregistered devices
media: lirc: create rc-core open and close lirc functions
media: lirc: remove name from lirc_dev
media: lirc: remove last remnants of lirc kapi
media: lirc: implement reading scancode
media: rc: ensure lirc device receives nec repeats
media: lirc: document LIRC_MODE_SCANCODE
media: lirc: introduce LIRC_SET_POLL_MODES
media: lirc: scancode rc devices should have a lirc device too
kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit
Documentation/media/kapi/rc-core.rst | 5 -
Documentation/media/lirc.h.rst.exceptions | 31 +
Documentation/media/uapi/rc/lirc-dev-intro.rst | 68 +-
Documentation/media/uapi/rc/lirc-func.rst | 2 +-
Documentation/media/uapi/rc/lirc-get-features.rst | 17 +-
Documentation/media/uapi/rc/lirc-get-length.rst | 44 -
Documentation/media/uapi/rc/lirc-get-rec-mode.rst | 5 +-
Documentation/media/uapi/rc/lirc-get-send-mode.rst | 2 +-
Documentation/media/uapi/rc/lirc-read.rst | 15 +-
.../media/uapi/rc/lirc-set-poll-modes.rst | 52 +
Documentation/media/uapi/rc/lirc-write.rst | 19 +-
MAINTAINERS | 6 -
drivers/media/i2c/ir-kbd-i2c.c | 540 ++++++-
drivers/media/pci/cx18/cx18-cards.h | 8 +-
drivers/media/pci/cx18/cx18-i2c.c | 13 +-
drivers/media/pci/ivtv/ivtv-cards.h | 22 +-
drivers/media/pci/ivtv/ivtv-i2c.c | 20 +-
drivers/media/pci/saa7134/saa7134-input.c | 3 +-
drivers/media/rc/Kconfig | 29 +-
drivers/media/rc/Makefile | 5 +-
drivers/media/rc/ir-jvc-decoder.c | 1 +
drivers/media/rc/ir-lirc-codec.c | 559 ++++---
drivers/media/rc/ir-mce_kbd-decoder.c | 12 +-
drivers/media/rc/ir-nec-decoder.c | 1 +
drivers/media/rc/ir-rc5-decoder.c | 1 +
drivers/media/rc/ir-rc6-decoder.c | 1 +
drivers/media/rc/ir-sanyo-decoder.c | 1 +
drivers/media/rc/ir-sharp-decoder.c | 1 +
drivers/media/rc/ir-sony-decoder.c | 1 +
drivers/media/rc/lirc_dev.c | 487 +-----
drivers/media/rc/rc-core-priv.h | 54 +-
drivers/media/rc/rc-ir-raw.c | 56 +-
drivers/media/rc/rc-main.c | 166 +-
drivers/media/usb/hdpvr/hdpvr-core.c | 11 +-
drivers/media/usb/hdpvr/hdpvr-i2c.c | 23 +-
drivers/media/usb/hdpvr/hdpvr.h | 3 +-
drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c | 13 +-
drivers/staging/media/Kconfig | 3 -
drivers/staging/media/Makefile | 1 -
drivers/staging/media/lirc/Kconfig | 21 -
drivers/staging/media/lirc/Makefile | 6 -
drivers/staging/media/lirc/TODO | 36 -
drivers/staging/media/lirc/lirc_zilog.c | 1653 --------------------
include/linux/kfifo.h | 3 +-
include/media/i2c/ir-kbd-i2c.h | 6 +-
include/media/lirc_dev.h | 192 ---
include/media/rc-core.h | 53 +-
include/media/rc-map.h | 54 +-
include/uapi/linux/lirc.h | 91 ++
49 files changed, 1479 insertions(+), 2937 deletions(-)
delete mode 100644 Documentation/media/uapi/rc/lirc-get-length.rst
create mode 100644 Documentation/media/uapi/rc/lirc-set-poll-modes.rst
delete mode 100644 drivers/staging/media/lirc/Kconfig
delete mode 100644 drivers/staging/media/lirc/Makefile
delete mode 100644 drivers/staging/media/lirc/TODO
delete mode 100644 drivers/staging/media/lirc/lirc_zilog.c
delete mode 100644 include/media/lirc_dev.h
--
2.13.6
next reply other threads:[~2017-10-29 20:58 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-29 20:58 Sean Young [this message]
2017-10-29 20:58 ` [PATCH 01/28] media: rc: i2c: set parent of rc device and improve name Sean Young
2017-10-29 20:58 ` [PATCH 02/28] media: rc: i2c: use dev_dbg rather hand-rolled debug Sean Young
2017-10-29 20:58 ` [PATCH 03/28] media: rc: i2c: only poll if the rc device is opened Sean Young
2017-10-29 20:58 ` [PATCH 04/28] media: merge ir_tx_z8f0811_haup and ir_rx_z8f0811_haup i2c devices Sean Young
2017-10-29 20:58 ` [PATCH 05/28] media: rc: implement zilog transmitter Sean Young
2017-10-29 20:58 ` [PATCH 06/28] media: i2c: enable i2c IR for hardware which isn't HD-PVR Sean Young
2017-10-29 20:58 ` [PATCH 07/28] media: staging: remove lirc_zilog driver Sean Young
2017-10-29 20:58 ` [PATCH 08/28] media: MAINTAINERS: remove lirc staging area Sean Young
2017-10-29 20:58 ` [PATCH 09/28] media: lirc: remove LIRCCODE and LIRC_GET_LENGTH Sean Young
2017-10-29 20:58 ` [PATCH 10/28] media: lirc: implement scancode sending Sean Young
2017-10-29 20:58 ` [PATCH 11/28] media: lirc: use the correct carrier for scancode transmit Sean Young
2017-10-29 20:58 ` [PATCH 12/28] media: rc: auto load encoder if necessary Sean Young
2017-10-29 20:59 ` [PATCH 13/28] media: lirc: lirc interface should not be a raw decoder Sean Young
2017-10-29 20:59 ` [PATCH 14/28] media: lirc: validate scancode for transmit Sean Young
2017-10-29 20:59 ` [PATCH 15/28] media: rc: document and fix rc_validate_scancode() Sean Young
2017-10-29 20:59 ` [PATCH 16/28] media: lirc: merge lirc_dev_fop_ioctl and ir_lirc_ioctl Sean Young
2017-10-29 20:59 ` [PATCH 17/28] media: lirc: use kfifo rather than lirc_buffer for raw IR Sean Young
2017-10-29 20:59 ` [PATCH 18/28] media: lirc: move lirc_dev->attached to rc_dev->registered Sean Young
2017-10-29 20:59 ` [PATCH 19/28] media: lirc: do not call rc_close() on unregistered devices Sean Young
2017-10-29 20:59 ` [PATCH 20/28] media: lirc: create rc-core open and close lirc functions Sean Young
2017-10-29 20:59 ` [PATCH 21/28] media: lirc: remove name from lirc_dev Sean Young
2017-10-29 20:59 ` [PATCH 22/28] media: lirc: remove last remnants of lirc kapi Sean Young
2017-10-29 20:59 ` [PATCH 23/28] media: lirc: implement reading scancode Sean Young
2017-10-29 20:59 ` [PATCH 24/28] media: rc: ensure lirc device receives nec repeats Sean Young
2017-10-29 20:59 ` [PATCH 25/28] media: lirc: document LIRC_MODE_SCANCODE Sean Young
2017-10-29 20:59 ` [PATCH 26/28] media: lirc: introduce LIRC_SET_POLL_MODES Sean Young
2017-10-29 20:59 ` [PATCH 27/28] media: lirc: scancode rc devices should have a lirc device too Sean Young
2017-10-29 20:59 ` [PATCH 28/28] kfifo: DECLARE_KIFO_PTR(fifo, u64) does not work on arm 32 bit Sean Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1509309834.git.sean@mess.org \
--to=sean@mess.org \
--cc=awalls.cx18@gmail.com \
--cc=david@hardeman.nu \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@s-opensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).