[PATCH 0/6] media: cec: add support for the Extron DA HD 4K Plus HDMI Splitter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
2.43.0





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux