43 lines · plain
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later2 3.. _cec-intro:4 5Introduction6============7 8HDMI connectors provide a single pin for use by the Consumer Electronics9Control protocol. This protocol allows different devices connected by an10HDMI cable to communicate. The protocol for CEC version 1.4 is defined11in supplements 1 (CEC) and 2 (HEAC or HDMI Ethernet and Audio Return12Channel) of the HDMI 1.4a (:ref:`hdmi`) specification and the13extensions added to CEC version 2.0 are defined in chapter 11 of the14HDMI 2.0 (:ref:`hdmi2`) specification.15 16The bitrate is very slow (effectively no more than 36 bytes per second)17and is based on the ancient AV.link protocol used in old SCART18connectors. The protocol closely resembles a crazy Rube Goldberg19contraption and is an unholy mix of low and high level messages. Some20messages, especially those part of the HEAC protocol layered on top of21CEC, need to be handled by the kernel, others can be handled either by22the kernel or by userspace.23 24In addition, CEC can be implemented in HDMI receivers, transmitters and25in USB devices that have an HDMI input and an HDMI output and that26control just the CEC pin.27 28Drivers that support CEC will create a CEC device node (/dev/cecX) to29give userspace access to the CEC adapter. The30:ref:`CEC_ADAP_G_CAPS` ioctl will tell userspace what it is allowed to do.31 32In order to check the support and test it, it is suggested to download33the `v4l-utils <https://git.linuxtv.org/v4l-utils.git/>`_ package. It34provides three tools to handle CEC:35 36- cec-ctl: the Swiss army knife of CEC. Allows you to configure, transmit37 and monitor CEC messages.38 39- cec-compliance: does a CEC compliance test of a remote CEC device to40 determine how compliant the CEC implementation is.41 42- cec-follower: emulates a CEC follower.43