media: cec: add support for the Extron DA HD 4K Plus HDMI Splitter
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | media: videodev2.h: add V4L2_CAP_EDIDinclude/ | +1 | 4 replies | |
| 2/6 | media: v4l2-dev: handle V4L2_CAP_EDIDdrivers/ | +15 | 2 replies | |
| 3/6 | media: docs: Add V4L2_CAP_EDIDDocumentation/ Documentation/ Documentation/ | +23 | 2 replies | |
| 4/6 | input: serio.h: add SERIO_EXTRON_DA_HD_PLUSinclude/ | +1 | 3 replies | |
| 5/6 | media: cec: move cec_get/put_device to headerdrivers/ drivers/ drivers/ +1 more | +33 | 0 replies | |
| 6/6 | media: cec: extron-da-hd-4k-plus: add the Extron DA HD 4K Plus CEC driverDocumentation/ MAINTAINERS drivers/ +7 more | +2780 | 0 replies |
Reviews trailers per patch
4 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Sebastian Fricke | Dmitry Torokhov | Ricardo Ribalda |
|---|---|---|---|
| 1/6 | R-b | R-b | |
| 2/6 | R-b | R-b | |
| 3/6 | R-b | R-b | |
| 4/6 | A-b | ||
| 5/6 | |||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/6] media: cec: add support for the Extron DA HD 4K Plus HDMI Splitter
This series adds support for the Extron DA HD 4K Plus HDMI Splitter:
https://www.extron.com/product/dahd4kplusseries
This HDMI Splitter supports CEC and reading (HDMI outputs) and writing (HDMI input) of EDIDs.
This driver adds support for this device, allowing full control of the CEC functionality (each HDMI input or output has its own /dev/cecX device) and EDIDs (each HDMI input or output has its own /dev/videoX device).
By using module options you can configure the driver to be fully transparent, i.e. it will pass on CEC messages between input and outputs and automatically configure EDIDs based on the detected displays, or leave it in manual mode, requiring userspace to configure everything manually.
Since the V4L2 API is only used to read/write the EDID and no video streaming takes place (that's all handled by the HDMI Splitter), a new capability CAP_EDID is added (first three patches). Next SERIO_EXTRON_DA_HD_PLUS is added to serio.h (this driver uses the USB serial port of the Extron device to control it). Then a small patch for the cec framework is applied that makes it possible for the extron driver to use the cec_get/put_device() functions. And finally the driver itself is added.
Note: this requires an update to the inputattach utility as well, once the SERIO_EXTRON_DA_HD_PLUS is added. There will also be a v4l2-compliance patch to test the new capability. I hope to post that in 1-2 weeks (it needs a bit more testing).
Note that I placed most of the generic CEC handling in cec-splitter.c. While this is currently part of this driver, it can be moved to media/cec/core if support for other HDMI Splitters is ever added, so it can be reused.
Regards,
Hans
Erling Ljunggren (3):
media: videodev2.h: add V4L2_CAP_EDID
media: v4l2-dev: handle V4L2_CAP_EDID
media: docs: Add V4L2_CAP_EDID
Hans Verkuil (3):
input: serio.h: add SERIO_EXTRON_DA_HD_PLUS
media: cec: move cec_get/put_device to header
media: cec: extron-da-hd-4k-plus: add the Extron DA HD 4K Plus CEC
driver
Documentation/admin-guide/media/cec.rst | 87 + .../userspace-api/media/v4l/biblio.rst | 11 + .../media/v4l/vidioc-querycap.rst | 11 + .../media/videodev2.h.rst.exceptions | 1 + MAINTAINERS | 7 + drivers/media/cec/core/cec-api.c | 4 +- drivers/media/cec/core/cec-core.c | 29 - drivers/media/cec/core/cec-priv.h | 2 - drivers/media/cec/usb/Kconfig | 1 + drivers/media/cec/usb/Makefile | 1 + .../cec/usb/extron-da-hd-4k-plus/Kconfig | 14 + .../cec/usb/extron-da-hd-4k-plus/Makefile | 8 + .../usb/extron-da-hd-4k-plus/cec-splitter.c | 657 ++++++ .../usb/extron-da-hd-4k-plus/cec-splitter.h | 51 + .../extron-da-hd-4k-plus.c | 1836 +++++++++++++++++ .../extron-da-hd-4k-plus.h | 118 ++ drivers/media/v4l2-core/v4l2-dev.c | 15 + include/media/cec.h | 31 + include/uapi/linux/serio.h | 1 + include/uapi/linux/videodev2.h | 1 + 20 files changed, 2853 insertions(+), 33 deletions(-) create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/Kconfig create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/Makefile create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/cec-splitter.c create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/cec-splitter.h create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.c create mode 100644 drivers/media/cec/usb/extron-da-hd-4k-plus/extron-da-hd-4k-plus.h
Signature · 1 line
2.43.0